Medium severity · published Apr 16, 2018
CVE-2018-5382
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
4.4
CVSS
0.3%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 18% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
BC
Bc-java · Bouncycastle
through 1.49 · source: NVD
SA
Satellite · Redhat
6.4 · source: NVD
SC
Satellite Capsule · Redhat
6.4 · source: NVD
Affected product
BC
Bc-java
Bouncycastle
More from Bc-java
9.8
CVE-2018-1000613
Legion of the Bouncy Castle Legion of the Bouncy Castle Java Cryptography APIs 1.58 up to but not including 1.60 contains a CWE-470: Use of Externally-Controlled Input to Select…
9.1
CVE-2026-58062
Stapled OCSP response accepted without binding to the checked certificate
9.1
CVE-2026-59650
MTI/A0 DH agreement exponentiates unvalidated peer value
9.1
CVE-2026-8763
Name Constraints bypass via trailing dot in rfc822Name and URI
8.6
CVE-2026-12817
OpenPGP AEAD decryption skips final tag on chunk-aligned data