PT-2018-16936 · Legion Of The Bouncy Castle · Bouncy Castle

Published

2018-04-16

·

Updated

2025-05-12

·

CVE-2018-5382

CVSS v3.1

4.4

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Bouncy Castle versions prior to 1.47
Description The default BKS keystore uses an HMAC that is only 16 bits long, which can allow an attacker to compromise the integrity of a BKS keystore. This issue applies to any BKS keystore generated prior to Bouncy Castle release 1.47. A new keystore type "BKS-V1" was introduced in version 1.49 for legacy reasons, but its use is discouraged by the library authors due to security concerns.
Recommendations For versions prior to 1.47, update to version 1.47 or later to use the new BKS format with a 160 bit HMAC. As a temporary workaround, consider avoiding the use of BKS keystores generated prior to version 1.47, especially in situations where the integrity of the keystore is crucial.

Fix

Use of a Broken Cryptographic Algorithm

Weakness Enumeration

Related Identifiers

CVE-2018-5382
GHSA-8477-3V39-GGPM
RHSA-2018:2927

Affected Products

Bouncy Castle