HOMEVULNERABILITIESCVE-2018-5382
MEDIUM

CVE-2018-5382

CWE-327Published: April 16, 2018· Updated: Jun 17, 2026

4.4
CVSS v3.1

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.

NVD Source

Technical Analysis

CVE-2018-5382 requires local access, meaning attackers must already have a foothold on the target system.

Exploitation requires low privileges, which limits the exposure to scenarios where an attacker has already gained initial access.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorLocal
Attack ComplexityLow
Privileges Req.Low
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityLow
IntegrityLow
AvailabilityNone
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected Vendors & Products

bouncycastle1 product(s)
bc-java
Red Hat2 product(s)
satellitesatellite capsule
Source: NVD CPE · 3 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (10)

http://www.securityfocus.com/bid/103453Third Party Advisory · VDB Entry
https://www.bouncycastle.org/releasenotes.htmlRelease Notes · Vendor Advisory
https://www.kb.cert.org/vuls/id/306792Third Party Advisory · US Government Resource
http://www.securityfocus.com/bid/103453Third Party Advisory · VDB Entry
https://www.bouncycastle.org/releasenotes.htmlRelease Notes · Vendor Advisory
https://www.kb.cert.org/vuls/id/306792Third Party Advisory · US Government Resource

Quick Facts

CVE IDCVE-2018-5382
CVSS Score4.4 / 10
SeverityMEDIUM
WeaknessCWE-327
CISA KEVNo
Affected2 vendor(s)
PublishedApr 16, 2018

Related CVEs (CWE-327)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2018-5382 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWATCH.COM. CVE data is provided under the NVD usage policy.