bouncycastle — security advisory
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).
- Products
- bouncycastle
- Affected versions
- 1.49+dfsg-3ubuntu1, 1.51-4ubuntu1, 1.51-4ubuntu1+esm1, 1.57-1, 1.58-1, 1.59-1, 1.59-1ubuntu0.1~esm1, 1.61-1, 1.61-1ubuntu0.1~esm1, 1.68-2, 1.68-4, 1.68-5, 1.68-5ubuntu0.1~esm1, 1.72-2, 1.77-1, 1.77-1ubuntu0.1~esm1, 1.80-3
- Fixed versions
- Not specified
- CVEs
- CVE-2026-58059
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:48 UTC · Revision 1
Source evidence
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).
osv:UBUNTU-CVE-2026-58059
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
bouncycastle
Fixed versions: Not specified
Complete source record
{
"id": "7ad018136bd245b6fbf0d7e4d469ad8f7f520525b08bc87d0684a56fafff8809",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-58059",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-58059",
"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).",
"evidence": "osv:UBUNTU-CVE-2026-58059",
"products": [
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.49+dfsg-3ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.51-4ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.51-4ubuntu1+esm1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.57-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.58-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.59-1",
"evidence": "/affected/1/versions"
},
{
"value": "1.59-1ubuntu0.1~esm1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.61-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.61-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.68-2",
"evidence": "/affected/3/versions"
},
{
"value": "1.68-4",
"evidence": "/affected/3/versions"
},
{
"value": "1.68-5",
"evidence": "/affected/3/versions"
},
{
"value": "1.68-5ubuntu0.1~esm1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.72-2",
"evidence": "/affected/4/versions"
},
{
"value": "1.77-1",
"evidence": "/affected/4/versions"
},
{
"value": "1.77-1ubuntu0.1~esm1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.80-3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "bouncycastle",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.80-3",
"evidence": "/affected/6/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-58059",
"aliases": [
"UBUNTU-CVE-2026-58059"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/U:Amber"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=esm-apps%2Fxenial",
"ecosystem": "Ubuntu:Pro:16.04:LTS"
},
"versions": [
"1.49+dfsg-3ubuntu1",
"1.51-4ubuntu1",
"1.51-4ubuntu1+esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcmail-java",
"binary_version": "1.51-4ubuntu1+esm1"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.51-4ubuntu1+esm1"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.51-4ubuntu1+esm1"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.51-4ubuntu1+esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=esm-apps%2Fbionic",
"ecosystem": "Ubuntu:Pro:18.04:LTS"
},
"versions": [
"1.57-1",
"1.58-1",
"1.59-1",
"1.59-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcmail-java",
"binary_version": "1.59-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.59-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.59-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.59-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.61-1",
"1.61-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcmail-java",
"binary_version": "1.61-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.61-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.61-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.61-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=esm-apps%2Fjammy",
"ecosystem": "Ubuntu:Pro:22.04:LTS"
},
"versions": [
"1.68-2",
"1.68-4",
"1.68-5",
"1.68-5ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcmail-java",
"binary_version": "1.68-5ubuntu0.1~esm1"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.68-5ubuntu0.1~esm1"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.68-5ubuntu0.1~esm1"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.68-5ubuntu0.1~esm1"
},
{
"binary_name": "libbctls-java",
"binary_version": "1.68-5ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=esm-apps%2Fnoble",
"ecosystem": "Ubuntu:Pro:24.04:LTS"
},
"versions": [
"1.72-2",
"1.77-1",
"1.77-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcjmail-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcmail-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbctls-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
},
{
"binary_name": "libbcutil-java",
"binary_version": "1.77-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"1.80-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcjmail-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcmail-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbctls-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcutil-java",
"binary_version": "1.80-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "bouncycastle",
"purl": "pkg:deb/ubuntu/bouncycastle?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1.80-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-58059.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbcjmail-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcmail-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcpg-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcpkix-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcprov-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbctls-java",
"binary_version": "1.80-3"
},
{
"binary_name": "libbcutil-java",
"binary_version": "1.80-3"
}
]
}
}
],
"modified": "2026-10-17T12:59:13.365234903Z",
"provider": "osv",
"upstream": [
"CVE-2026-58059"
],
"references": [
"https://ubuntu.com/security/CVE-2026-58059",
"https://www.cve.org/CVERecord?id=CVE-2026-58059",
"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9058059",
"https://github.com/bcgit/bc-java/commit/7bf20eea8c1b71a4d3574b75ba20ccf26ffff36b"
]
},
"related_cves": [
{
"value": "CVE-2026-58059",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359458,
"published_at": "2026-08-03T03:16:00+00:00"
}