
CVE catalog
CVE-2018-5382
bouncycastle: CVE-2018-5382
- Severity
- Medium · CVSS 5.1
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.26% · Oct 27, 2026
The default BKS keystore use an HMAC that is only 16 bits long, which can allow an attacker to compromise the integrity of a BKS keystore. Bouncy Castle release 1.47 changes the BKS format to a format which uses a 160 bit HMAC instead. This applies to any BKS keystore generated prior to BC 1.47. For situations where people need to create the files for legacy reasons a specific keystore type "BKS-V1" was introduced in 1.49. It should be noted that the use of "BKS-V1" is discouraged by the library authors and should only be used where it is otherwise safe to do so, as in where the use of a 16 bit checksum for the file integrity check is not going to cause a security issue in itself.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | bouncycastle | sid | 1.86.2-1 | fixed |
| Debian | bouncycastle | forky | 1.86-1 | fixed |
| Debian | bouncycastle | trixie | 1.80-3 | fixed |
| Debian | bouncycastle | bookworm | 1.72-2 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | bouncycastle | source | sid | 1.48+dfsg-2 | not yet assigned | Not reported | Not reported |
| Debian | bouncycastle | source | forky | 1.48+dfsg-2 | not yet assigned | Not reported | Not reported |
| Debian | bouncycastle | source | trixie | 1.48+dfsg-2 | not yet assigned | Not reported | Not reported |
| Debian | bouncycastle | source | bookworm | 1.48+dfsg-2 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libbcjmail-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbcmail-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbcpg-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbcpkix-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbcprov-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbctls-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
- [libbcutil-java]Fixed
Source package: [bouncycastle]
Details (2)
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
1.72-2· all · bookwormFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · bookworm; dsa · bouncycastle · debian · 12
[Debian 13 (Trixie)]
- [libbcjmail-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbcmail-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbcpg-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbcpkix-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbcprov-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbctls-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
- [libbcutil-java]Fixed
Source package: [bouncycastle]
Details (2)
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
1.80-3· all · trixieFixed · Fixed:
1.48+dfsg-2dsa · bouncycastle · debian · 13
Observed:
References
- [https://osv.dev/vulnerability/DEBIAN-CVE-2018-5382]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-5382]
- [https://security-tracker.debian.org/tracker/CVE-2018-5382]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-5382.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]