CVE-2018-5382
MEDIUM 4.4CVSS 3.1Improper Validation of Integrity Check Value in Bouncy Castle
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
- 16 Apr 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cret@cert.org
- NVD status
- Modified
- Weakness
- CWE-327CWE-354
- Also known as
- GHSA-8477-3v39-ggpm
- Sources
- NVDJSONOSV GHSA-8477-3v39-ggpmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.4 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | LOW 3.6 | AV:L/AC:L/Au:N/C:P/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | bouncycastle | bc-javacpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:* |
<= 1.49 | |
| NVD | redhat | satellitecpe:2.3:a:redhat:satellite:6.4:*:*:*:*:*:*:* |
= 6.4 | |
| NVD | redhat | satellite_capsulecpe:2.3:a:redhat:satellite_capsule:6.4:*:*:*:*:*:*:* |
= 6.4 | |
| OSV | Maven | org.bouncycastle:bcprov-jdk15on | < 1.50 | 1.50 |
References
- http://www.securityfocus.com/bid/103453 · Third Party Advisory, VDB Entry, WEB
- https://access.redhat.com/errata/RHSA-2018:2927 · Third Party Advisory, WEB
- https://www.bouncycastle.org/releasenotes.html · Release Notes, Vendor Advisory, WEB
- https://www.kb.cert.org/vuls/id/306792 · Third Party Advisory, US Government Resource, WEB
- https://www.oracle.com/security-alerts/cpuoct2020.html · Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-5382 · ADVISORY
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 16 Apr 2018)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 May 2022)