{"id":"CVE-2018-5382","published":"2018-04-16T13:00:00Z","modified":"2024-09-16T16:27:56Z","title":"Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions","vendor":"Legion of the Bouncy Castle","product":"Bouncy Castle","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0026,"percentile":0.18137,"provenance":"source"},"cwes":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"references":[{"url":"http://www.securityfocus.com/bid/103453","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2927","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://www.kb.cert.org/vuls/id/306792","tags":["third-party-advisory","x_refsource_CERT-VN"]},{"url":"https://www.bouncycastle.org/releasenotes.html","tags":["x_refsource_MISC"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2020.html","tags":["x_refsource_MISC"]}],"priority":{"score":3.6,"factors":[{"name":"EPSS percentile","points":3.63}]},"vendorSlug":"legion-of-the-bouncy-castle","affectedVersions":[{"vendor":"Legion of the Bouncy Castle","product":"Bouncy Castle","versions":[">= all, < 1.47"]}],"affected":[{"ecosystem":"Maven","package":"org.bouncycastle:bcprov-jdk15on","vulnerableRanges":["<1.50"],"patched":["1.50"],"from":["GHSA-8477-3v39-ggpm"],"provenance":"source"}],"summary":{"text":"Bouncy Castle's legacy BKS-V1 keystore format, which the library still supports for backward compatibility, uses a 16-bit HMAC for file integrity, a weakness that affects keystores generated before BC 1.47 and those created with the BKS-V1 type.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:23:36Z"},"euvd":{"id":"EUVD-2022-3099","exploited":false,"provenance":"source"}}