Vulnerability in Bouncycastle Bc-Java

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. 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.

Vulnerability class: POODLE (CVE-2014-3566)

EPSS: 0.003 (17.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 4.4 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

  • cret@cert.org (VDB Entry, Third Party Advisory, vdb-entry, x_refsource_BID)
  • cret@cert.org (x_refsource_REDHAT, vendor-advisory, Third Party Advisory)
  • cret@cert.org (US Government Resource, x_refsource_CERT-VN, Third Party Advisory, third-party-advisory)
  • cret@cert.org (x_refsource_MISC, Release Notes, Vendor Advisory)
  • cret@cert.org (Third Party Advisory, x_refsource_MISC)

Frequently asked questions

What is CVE-2018-5382?
CVE-2018-5382 is a medium-severity vulnerability in Bouncycastle Bc-Java, classified under Use of a Broken or Risky Cryptographic Algorithm. CVSS score: 4.4/10. Published 2018-04-16.
How severe is CVE-2018-5382?
Medium severity. CVSS v3 base score is 4.4 out of 10.
Is CVE-2018-5382 known to be exploited?
3 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.