Quadratic-time escaping when stringifying X.500 distinguished names
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 21 fixed, 7 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat. Impact type from CWE-407.
Summary
In Bouncy Castle for Java before 1.85, Quadratic-time escaping when stringifying X.500 distinguished names. This issue also affects Bouncy Castle for Java LTS before 2.73.12, and Bouncy Castle for Java FIPS (BC-FJA) before bc-fips 1.0.2.7 (1.0.X series), 2.0.2 (2.0.X series) and 2.1.3 (2.1.X series).
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle Inc. | BC-JAVA | before 1.85 | 1.85 | Patch available | CNA |
| Legion of the Bouncy Castle Inc. | BC-LTS-JAVA | 2.73.0 to before 2.73.12 | 2.73.12 | Patch available | CNA |
| Legion of the Bouncy Castle Inc. | BC-FJA | 1.0.0 to before 1.0.2.7; 2.0.0 to before 2.0.2; 2.1.0 to before 2.1.3 | 1.0.2.7, 2.0.2, 2.1.3 | Patch available | CNA |
- BC-JAVA VendorLegion of the Bouncy Castle Inc. Affected before 1.85 Fixed in 1.85 Patch available CNA
- BC-LTS-JAVA VendorLegion of the Bouncy Castle Inc. Affected 2.73.0 to before 2.73.12 Fixed in 2.73.12 Patch available CNA
- BC-FJA VendorLegion of the Bouncy Castle Inc. Affected 1.0.0 to before 1.0.2.7; 2.0.0 to before 2.0.2; 2.1.0 to before 2.1.3 Fixed in 1.0.2.7, 2.0.2, 2.1.3 Patch available CNA
CPE configurations NVD · 3
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:* | before 1.85 | Vulnerable | Legion of the Bouncy Castle Inc. |
| cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:* | up to 2.73.11 | Vulnerable | Legion of the Bouncy Castle Inc. |
| cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:* | 1.0.0 to before 1.0.2.7; 2.0.0 to before 2.0.2; 2.1.0 to before 2.1.3 | Vulnerable | Legion of the Bouncy Castle Inc. |
- cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:* Versions before 1.85 Vulnerable ·Legion of the Bouncy Castle Inc.
- cpe:2.3:a:bouncycastle:bouncy_castle_for_java_lts:*:*:*:*:*:*:*:* Versions up to 2.73.11 Vulnerable ·Legion of the Bouncy Castle Inc.
- cpe:2.3:a:bouncycastle:fips_java_api:*:*:*:*:*:*:*:* Versions 1.0.0 to before 1.0.2.7; 2.0.0 to before 2.0.2; 2.1.0 to before 2.1.3 Vulnerable ·Legion of the Bouncy Castle Inc.
Remediation
- Fix · CNA BC-JAVA (Legion of the Bouncy Castle Inc.) Fixed in 1.85
- Fix · CNA BC-LTS-JAVA (Legion of the Bouncy Castle Inc.) Fixed in 2.73.12
- Fix · CNA BC-FJA (Legion of the Bouncy Castle Inc.) Fixed in 1.0.2.7, 2.0.2, 2.1.3
Red Hat 21 advisories
- RHSA-2026:95762 Released 2026-11-06 · Red Hat rating ImportantRed Hat build of Keycloak 26.6.8 Images Security Update
- Red Hat build of Keycloak 26.6 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2026:95760 Released 2026-11-06 · Red Hat rating ImportantRed Hat build of Keycloak 26.4.17 Images Security Update
- Red Hat build of Keycloak 26.4 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2026:95761 Released 2026-11-06 · Red Hat rating ImportantRed Hat build of Keycloak 26.6.8 Security Update
- Red Hat build of Keycloak 26.6.8
Show 18 more Red Hat advisories
- RHSA-2026:95759 Released 2026-11-06 · Red Hat rating ImportantRed Hat build of Keycloak 26.4.17 Security Update
- Red Hat build of Keycloak 26.4.17
- RHSA-2026:88159 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.17 security update.
- OpenShift Developer Tools and Services 4.17 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88158 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.19 security update.
- OpenShift Developer Tools and Services 4.19 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88157 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.20 security update.
- OpenShift Developer Tools and Services 4.20 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88156 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.16 security update.
- OpenShift Developer Tools and Services 4.16 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88155 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.21 security update.
- OpenShift Developer Tools and Services 4.21 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88154 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.22 security update.
- OpenShift Developer Tools and Services 4.22 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88153 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.18 security update.
- OpenShift Developer Tools and Services 4.18 registry.redhat.io/ocp-tools-4/jenkins-rhel9
- RHSA-2026:88151 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.14 security update.
- OpenShift Developer Tools and Services 4.14 registry.redhat.io/ocp-tools-4/jenkins-rhel8
- RHSA-2026:88152 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.12 security update.
- OpenShift Developer Tools and Services 4.12 registry.redhat.io/ocp-tools-4/jenkins-rhel8
- RHSA-2026:88149 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.13 security update.
- OpenShift Developer Tools and Services 4.13 registry.redhat.io/ocp-tools-4/jenkins-rhel8
- RHSA-2026:88150 Released 2026-10-22 · Red Hat rating CriticalRelease of Red Hat OpenShift Developer Tools - Openshift Jenkins 4.15 security update.
- OpenShift Developer Tools and Services 4.15 registry.redhat.io/ocp-tools-4/jenkins-rhel8
- RHSA-2026:87410 Released 2026-10-21 · Red Hat rating CriticalRHOAI 2.25.12 - Red Hat OpenShift AI
- Red Hat OpenShift AI 2.25 registry.redhat.io/rhoai/odh-built-in-detector-rhel9, registry.redhat.io/rhoai/odh-caikit-nlp-rhel9, registry.redhat.io/rhoai/odh-codeflare-operator-rhel9 +47
- RHSA-2026:71675 Released 2026-09-24 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.18.4 for Spring Boot release.
- Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16
- RHSA-2026:70277 Released 2026-09-22 · Red Hat rating ImportantRed Hat JBoss Enterprise Application Platform 8.1.8 security update
- Red Hat JBoss Enterprise Application Platform 8.1.8.GA com.fasterxml.jackson.core.jackson-core-2.18.9.redhat-00003.jar, com.fasterxml.jackson.core.jackson-databind-2.18.9.redhat-00003.jar, io.netty.netty-codec-4.1.136.Final-redhat-00001.jar +17
- RHSA-2026:70257 Released 2026-09-22 · Red Hat rating ImportantRed Hat Build of Apache Camel 4.18 for Quarkus 3.33 update is now available (RHBQ 3.33.3.SP2)
- Red Hat Build of Apache Camel 3.33.3.SP2 com.github.luben.zstd-jni-1.5.7.16-rhel8-redhat-00001.jar, com.squareup.wire.wire-runtime-6.4.7.jar, com.squareup.wire.wire-runtime-jvm-6.4.7.jar +7
- RHSA-2026:69440 Released 2026-09-21 · Red Hat rating ImportantRed Hat build of Quarkus 3.33.3.SP2 release and security update
- Red Hat build of Quarkus 3.33.3.SP2
- RHSA-2026:69470 Released 2026-09-21 · Red Hat rating ImportantRed Hat build of Quarkus 3.27.5.SP2 release and security update
- Red Hat build of Quarkus 3.27.5.SP2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
Legion of the Bouncy Castle BC-JAVA 1.85
32 records Highest priority Priority MEDIUM 23 MEDIUM, 9 LOW
Other records, highest priority first
- TI-2026-42545 MTI/A0 DH agreement exponentiates unvalidated peer valuePriority MEDIUM 48
- TI-2026-42533 JSSE hostname verifier CN-fallback enabled by default despite documented opt-inPriority MEDIUM 48
- TI-2026-41816 Stapled OCSP response accepted without binding to the checked certificatePriority MEDIUM 48
- Release ·
Legion of the Bouncy Castle BC-LTS-JAVA 2.73.12
28 records Highest priority Priority MEDIUM 20 MEDIUM, 8 LOW
Other records, highest priority first
- TI-2026-42545 MTI/A0 DH agreement exponentiates unvalidated peer valuePriority MEDIUM 48
- TI-2026-42533 JSSE hostname verifier CN-fallback enabled by default despite documented opt-inPriority MEDIUM 48
- TI-2026-41816 Stapled OCSP response accepted without binding to the checked certificatePriority MEDIUM 48
Show 1 more group
- Release ·
Legion of the Bouncy Castle BC-FJA 1.0.2.7, 2.0.2, 2.1.3
7 records Highest priority Priority MEDIUM 5 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-07701 Name Constraints bypass via trailing dot in rfc822Name and URIPriority MEDIUM 48
- TI-2026-12374 Possible OOM from unbounded up-front allocation on a definite-length readPriority MEDIUM 44
- TI-2026-11431 Lazy ASN.1 sequence forcing resets nesting-depth guardPriority MEDIUM 44
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| OpenShift Developer Tools and Services | Affected | No fix yet |
| Red Hat AMQ Broker 7 | Affected | No fix yet |
| Red Hat JBoss Enterprise Application Platform 7 | Affected | No fix planned: Will not fix |
| Red Hat JBoss Enterprise Application Platform 8 | Affected | No fix yet |
| Red Hat Single Sign-On 7 | Affected | No fix planned: Will not fix |
| Red Hat build of Apache Camel 4 for Quarkus 3 | Affected | No fix yet |
| Red Hat build of Apicurio Registry 3 | Affected | No fix yet |
| OpenShift Developer Tools and Services 4.12 | Fixed | RHSA-2026:88152 |
| OpenShift Developer Tools and Services 4.13 | Fixed | RHSA-2026:88149 |
| OpenShift Developer Tools and Services 4.14 | Fixed | RHSA-2026:88151 |
| OpenShift Developer Tools and Services 4.15 | Fixed | RHSA-2026:88150 |
| OpenShift Developer Tools and Services 4.16 | Fixed | RHSA-2026:88156 |
| OpenShift Developer Tools and Services 4.17 | Fixed | RHSA-2026:88159 |
| OpenShift Developer Tools and Services 4.18 | Fixed | RHSA-2026:88153 |
| OpenShift Developer Tools and Services 4.19 | Fixed | RHSA-2026:88158 |
| OpenShift Developer Tools and Services 4.20 | Fixed | RHSA-2026:88157 |
| OpenShift Developer Tools and Services 4.21 | Fixed | RHSA-2026:88155 |
| OpenShift Developer Tools and Services 4.22 | Fixed | RHSA-2026:88154 |
| Red Hat Build of Apache Camel 3.33.3.SP2 | Fixed | RHSA-2026:70257 |
| Red Hat JBoss Enterprise Application Platform 8.1.8.GA | Fixed | RHSA-2026:70277 |
| Red Hat OpenShift AI 2.25 | Fixed | RHSA-2026:87410 |
| Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16 | Fixed | RHSA-2026:71675 |
| Red Hat build of Keycloak 26.4 | Fixed | RHSA-2026:95760 |
| Red Hat build of Keycloak 26.4.17 | Fixed | RHSA-2026:95759 |
| Red Hat build of Keycloak 26.6 | Fixed | RHSA-2026:95762 |
| Red Hat build of Keycloak 26.6.8 | Fixed | RHSA-2026:95761 |
| Red Hat build of Quarkus 3.27.5.SP2 | Fixed | RHSA-2026:69470 |
| Red Hat build of Quarkus 3.33.3.SP2 | Fixed | RHSA-2026:69440 |
Not affected: 32 products
- OpenShift Developer Tools and Services 4.12
- OpenShift Developer Tools and Services 4.13
- OpenShift Developer Tools and Services 4.14
- OpenShift Developer Tools and Services 4.15
- OpenShift Developer Tools and Services 4.16
- OpenShift Developer Tools and Services 4.17
- OpenShift Developer Tools and Services 4.18
- OpenShift Developer Tools and Services 4.19
- OpenShift Developer Tools and Services 4.20
- OpenShift Developer Tools and Services 4.21
- OpenShift Developer Tools and Services 4.22
- Red Hat AMQ Clients
- Red Hat Ansible Automation Platform 2
- Red Hat Build of Apache Camel 3.33.3.SP2
- Red Hat Ceph Storage 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Fuse 7
- Red Hat JBoss Enterprise Application Platform 7
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform 8.1.8.GA
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift AI 2.25
- Red Hat OpenShift Dev Spaces
- Red Hat OpenStack Platform 13 (Queens)
- Red Hat Satellite 6
- Red Hat Single Sign-On 7
- Red Hat build of Apache Camel 4 for Quarkus 3
- Red Hat build of Apache Camel for Spring Boot 4
- Red Hat build of Apicurio Registry 3
- Red Hat build of Quarkus
Timeline
- 2026-10-02 Threatist record created from CVE-2026-58059
- 2026-10-03 Alias added: GHSA-4mwx-9cgq-h2wp
- 2026-10-09 Fix available: RHSA-2026:69440 · Red Hat
- 2026-10-09 Fix available: RHSA-2026:69470 · Red Hat
- 2026-10-09 Fix available: RHSA-2026:70257 · Red Hat
- 2026-10-09 Fix available: Red Hat Build of Apache Camel 3.33 for Quarkus 3.33.3.SP2, Red Hat build of Quarkus 3.27.5.SP2, Red Hat build of Quarkus 3.33.3.SP2 · Red Hat
- 2026-10-10 Fix available: Red Hat Build of Apache Camel 3.33.3.SP2 · Red Hat
- 2026-10-13 Affected versions changed · Red Hat
- 2026-10-16 Affected versions changed · Red Hat
- 2026-10-21 Fix available: RHSA-2026:70277 · Red Hat
- 2026-10-21 Fix available: Red Hat JBoss Enterprise Application Platform 8.1.8.GA · Red Hat
- 2026-10-22 Fix available: RHSA-2026:87410 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88149 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88152 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88150 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88156 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88153 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88154 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88157 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88155 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88151 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88158 · Red Hat
- 2026-10-23 Fix available: RHSA-2026:88159 · Red Hat
- 2026-10-23 Fix available: OpenShift Developer Tools and Services 4.12, OpenShift Developer Tools and Services 4.13, OpenShift Developer Tools and Services 4.14 +9 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95761 · Red Hat
- 2026-11-06 Fix available: Red Hat build of Keycloak 26.6.8 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95760 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95762 · Red Hat
- 2026-11-06 Fix available: RHSA-2026:95759 · Red Hat
- 2026-11-06 Fix available: Red Hat build of Keycloak 26.4, Red Hat build of Keycloak 26.4.17, Red Hat build of Keycloak 26.6 · Red Hat
References
More Legion of the Bouncy Castle Inc. Bc-java vulnerabilities
- TI-2018-15967 Legion of the Bouncy Castle Legion of the Bouncy Castle Java Cryptography APIs 1.58 up to… CVSS 3.1CRITICAL 9.8
- TI-2017-09736 BouncyCastle JCE TLS Bleichenbacher/ROBOT CVSS 3.0HIGH 7.5
- TI-2026-42545 MTI/A0 DH agreement exponentiates unvalidated peer value CVSS 4.0CRITICAL 9.3
- TI-2026-42533 JSSE hostname verifier CN-fallback enabled by default despite documented opt-in CVSS 4.0CRITICAL 9.3
- TI-2026-41816 Stapled OCSP response accepted without binding to the checked certificate CVSS 4.0CRITICAL 9.3
- TI-2026-07701 Name Constraints bypass via trailing dot in rfc822Name and URI CVSS 4.0CRITICAL 9.3
Sources
- CVE-2026-58059 · CVE Program
- CVE-2026-58059 · NVD
- FIRST EPSS
- GHSA-4mwx-9cgq-h2wp · GitHub Advisory Database · CC BY 4.0
- CVE-2026-58059 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences