CVE-2018-5382
lowpriority · track · 18OT risk · elevatedEPSS 0.003 · 17 %ileEUUSEPSS · scored 2026-10-24
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.6–4.4
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (5)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-8477-3v39-ggpmImproper Validation of Integrity Check Value in Bouncy Castle2022-05-13ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (20)
External citations — patches, advisories, analysis.
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10939cnnvd
- https://access.redhat.com/errata/RHSA-2018:2927cnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.2561/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2019.3850/cnnvd
- https://www.auscert.org.au/bulletins/ESB-2020.2340/cnnvd
- https://www.bouncycastle.org/releasenotes.htmlcnnvd
- https://www.ibm.com/support/pages/node/960296cnnvd
- https://www.kb.cert.org/vuls/id/306792cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan