Описание
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
A flaw was found in Bouncy Castle for Java. The Java Secure Socket Extension (JSSE) hostname verifier incorrectly enables the Common Name (CN) fallback by default, despite it being documented as an opt-in feature. This misconfiguration could allow a remote attacker to bypass proper hostname validation by presenting a specially crafted certificate during a TLS (Transport Layer Security) handshake. As a result, an attacker might be able to impersonate a legitimate server, leading to potential man-in-the-middle attacks and information disclosure.
Отчет
A flaw was found in Bouncy Castle for Java's JSSE provider (bctls). The hostname verifier improperly enables Common Name (CN) fallback by default during TLS certificate validation, contrary to documented opt-in requirements. A remote attacker capable of intercepting TLS traffic could exploit this by presenting a specially crafted certificate with a matching CN, bypassing hostname verification. This allows the attacker to impersonate a trusted server, leading to potential Man-in-the-Middle (MitM) attacks and exposure of sensitive encrypted data.
Меры по смягчению последствий
Explicitly configure the Bouncy Castle JSSE hostname verifier to disable CN fallback programmatically in application initialization code, or restrict TLS connections to trusted endpoints using explicit SAN (Subject Alternative Name) validation parameters.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| OpenShift Developer Tools and Services | jenkins | Not affected | ||
| OpenShift Developer Tools and Services | jenkins-2-plugins | Not affected | ||
| OpenShift Developer Tools and Services | ocp-tools-4/jenkins-rhel9 | Not affected | ||
| Red Hat AMQ Broker 7 | bcprov-jdk18on | Not affected | ||
| Red Hat AMQ Clients | bcpg-jdk18on | Not affected | ||
| Red Hat AMQ Clients | bcprov-jdk15on | Not affected | ||
| Red Hat AMQ Clients | bcprov-jdk18on | Not affected | ||
| Red Hat AMQ Clients | bcutil-jdk18on | Not affected | ||
| Red Hat Ansible Automation Platform 2 | ansible-automation-platform-27/de-minimal-rhel9 | Not affected | ||
| Red Hat build of Apache Camel 4 for Quarkus 3 | bcpg-jdk18on | Not affected |
Показывать по
Ссылки на источники
Дополнительная информация
Статус:
EPSS
7.4 High
CVSS3
Связанные уязвимости
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallb ...
In Bouncy Castle for Java before 1.85, JSSE hostname verifier CN-fallback enabled by default despite documented opt-in. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bctls-fips 1.0.24 (1.0.X series), 2.0.24 (2.0.X series) and 2.1.24 (2.1.X series).
EPSS
7.4 High
CVSS3