Security mailing lists by PureSourceCode

CVE-2018-5382

MEDIUM 4.4CVSS 3.1

Improper Validation of Integrity Check Value in Bouncy Castle

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.

Published
16 Apr 2018
Last modified
17 Jun 2026
Assigned by
cret@cert.org
NVD status
Modified
Weakness
CWE-327CWE-354
Also known as
GHSA-8477-3v39-ggpm
Sources
NVDJSONOSV GHSA-8477-3v39-ggpmJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 4.4 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 LOW 3.6 AV:L/AC:L/Au:N/C:P/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD bouncycastle bc-java
cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*
<= 1.49
NVD redhat satellite
cpe:2.3:a:redhat:satellite:6.4:*:*:*:*:*:*:*
= 6.4
NVD redhat satellite_capsule
cpe:2.3:a:redhat:satellite_capsule:6.4:*:*:*:*:*:*:*
= 6.4
OSV Maven org.bouncycastle:bcprov-jdk15on < 1.50 1.50

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 16 Apr 2018)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.