CVE-2018-5382
CVE-2018-5382 — Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions
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.
Published Updated Sources: cvelistV5, certcc
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
Unscored
no source published a base score
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Weakness & attack patterns
- CWE-327
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1036.001Masquerading: Invalid Code Signature
- T1553.002Subvert Trust Controls: Code Signing
References
5 on the record
- www.securityfocus.com/bid/103453
vdb-entry, x_refsource_BID
- access.redhat.com/errata/RHSA-2018:2927
vendor-advisory, x_refsource_REDHAT
- www.kb.cert.org/vuls/id/306792
third-party-advisory, x_refsource_CERT-VN
- www.bouncycastle.org/releasenotes.html
x_refsource_MISC
- www.oracle.com/security-alerts/cpuoct2020.html
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-114820 Vulnerability in the Oracle Java SE, Oracle GraalVM for JDK, Oracle GraalVM Enterprise Edition product of Oracle Java SE (component: JSSE)CVSS 9.1
- CVE-2024-56344 IBM Cognos Analytics 12.0.4 and 12.1.3 versions are affected by security vulnerabilitiesCVSS 5.9
- CVE-2026-80509 Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Use of a Broken or Risky Cryptographic Algorithm…CVSS 2.5
Elsewhere on this site
- Legion Of The Bouncy Castleevery CVE for this vendor
- CWE-327other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.