CVE-2018-5382
publishedBouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle | — | Bouncy Castleall to < 1.47 | Affected | Not stated | certcc |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Legion of the Bouncy Castle | Bouncy Castle | all to < 1.47 (affected · custom) | certcc · cna |
Weaknesses
1- CWE-327 CWE-327: Use of a Broken or Risky Cryptographic Algorithm
References
5- 103453 http://www.securityfocus.com/bid/103453
- RHSA-2018:2927 https://access.redhat.com/errata/RHSA-2018:2927
- https://www.bouncycastle.org/releasenotes.html
- VU#306792 https://www.kb.cert.org/vuls/id/306792
- https://www.oracle.com/security-alerts/cpuoct2020.html
Provider assertions
2certcc · cna
Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ad702e742abbfb0abc6dcd916f989db4558d7d28d6450fac38fb6b20877dfff5
- Ingested
- 23 Sep 2026, 07:44:52 UTC
- Source record
- Official CVE record