Advisory details:
gitlab / maven/org.bouncycastle/bcprov-jdk18on/CVE-2026-58059
| Advisory ID | gitlab/maven/org.bouncycastle/bcprov-jdk18on/CVE-2026-58059 |
| Aliases |
CVE-2026-58059
|
| Summary | Quadratic-time escaping when stringifying X.500 distinguished names Affects Bouncy Castle for Java before 1.85. IETFUtils.valueToString() escapes special characters by inserting into the same buffer while iterating it, so each insertion shifts the remaining characters and a value of N escapable bytes costs on the order of N^2/2 moves. A single 60 KB RDN of commas or plus signs in a certificate, CSR, CRL or CMS structure pins a CPU core for seconds to minutes whenever the resulting X500Name is printed, compared or hashed, including through the standard JCA principal accessor. |
| Status | Published |
| Exploitability | 0.5 |
| Weighted Severity | 0.0 |
| Risk | |
| Affected and Fixed Packages | Package Details |
| Introduced and Fixed Package Commit Patches | Package Commit Patches Details |
| System | Score | Found at |
|---|---|---|
| cvssv3.1 | https://gitlab.com/gitlab-org/advisories-community/-/blob/main/maven/org.bouncycastle/bcprov-jdk18on/CVE-2026-58059.yml |
| Reference id | Reference type | URL |
|---|---|---|
| https://github.com/bcgit/bc-java/commit/7bf20eea8c1b71a4d3574b75ba20ccf26ffff36b | ||
| https://github.com/bcgit/bc-java/wiki/CVE-2026-58059 | ||
| CVE-2026-58059 | https://nvd.nist.gov/vuln/detail/CVE-2026-58059 |
No EPSS data available for this advisory.
| Patch URL | |
|---|---|
| There are no known patches. | |
| Attack Vector (AV) | Attack Complexity (AC) | Privileges Required (PR) | User Interaction (UI) | Scope (S) | Confidentiality Impact (C) | Integrity Impact (I) | Availability Impact (A) |
|---|---|---|---|---|---|---|---|
network adjacent_network local physical |
low high |
none low high |
none required |
unchanged changed |
high low none |
high low none |
high low none |
There are no SSVC decisions available.