CVE-2018-5382

Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions

MEDIUM
4.4
CVSS Score
Published: April 16, 2018 at 01:00 PM UTC
Updated: June 17, 2026 at 02:00 AM UTC
4 products affected across 3 vendorsSatelliteBc JavaSatellite Capsule

Using Bouncy Castle by Legion of the Bouncy Castle?

Get instant alerts when new vulnerabilities affect Bouncy Castle - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM4.4
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 1.47
Affected range stops below 1.47, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (5)

VDB Entryx_refsource_BIDThird Party Advisory
http://www.securityfocus.com/bid/103453
Vendor Advisoryx_refsource_REDHATThird Party Advisory
https://access.redhat.com/errata/RHSA-2018:2927
x_refsource_MISCRelease NotesVendor Advisory
https://www.bouncycastle.org/releasenotes.html
Third Party Advisoryx_refsource_CERT-VNUS Government Resource
https://www.kb.cert.org/vuls/id/306792

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-327CWE-354

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card