CVE-2018-5382 in Bouncycastle Bc-Java and 2 more products
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...
Affects 3 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Bouncycastle | Bc-Java | ≤ 1.49 |
| Redhat | Satellite | 6.4 |
| Redhat | Satellite Capsule | 6.4 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2018-5382 |
|---|---|
| BreachSpider ID | BS-2018-GLOBAL-209484-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| Published | 2018-04-16 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-327: CWE-327
CWE-354: CWE-354
Related attack patterns (CAPEC)
CAPEC-145 Checksum Spoofing via CWE-354
CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-327
CAPEC-463 Padding Oracle Crypto Attack via CWE-354
CAPEC-475 Signature Spoofing by Improper Validation via CWE-327
CAPEC-608 Cryptanalysis of Cellular Encryption via CWE-327
Show all 10
CAPEC-614 Rooting SIM Cards via CWE-327
CAPEC-20 Encryption Brute Forcing via CWE-327
CAPEC-75 Manipulating Writeable Configuration Files via CWE-354
CAPEC-97 Cryptanalysis via CWE-327
CAPEC-473 Signature Spoof via CWE-327
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
This vulnerability was disclosed in 2018. A medium severity vulnerability affects Bouncycastle systems (CVE-2018-5382). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
Questions
What is CVE-2018-5382?
This vulnerability was disclosed in 2018. A medium severity vulnerability affects Bouncycastle systems (CVE-2018-5382). No public exploit code is currently available. Isolate affected systems if patching is not feasible.
What is the CVSS score for CVE-2018-5382?
CVE-2018-5382 has CVSS 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N. EPSS: 0.3%.
Is CVE-2018-5382 actively exploited?
No confirmed active exploitation of CVE-2018-5382 as of 2026-09-25.
How do I remediate CVE-2018-5382?
Priority: MONITOR. Advisory: https://www.bouncycastle.org/releasenotes.html PSIRT: [email protected]
What systems are affected by CVE-2018-5382?
CVE-2018-5382 affects Bouncycastle Bc-Java; Redhat Satellite, Satellite Capsule.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Bouncycastle","product":"Bc-Java","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.