CVE-2018-5382

  • Severity 4.4 MEDIUM
  • Published
  • Updated
  • Status Modified
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
4.4 MEDIUM
LOCAL
LOW
LOW
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Base Score
CVSS 3.1
EPSS Score
Percentile: 18.9%
Affected Products (NVD)
VendorProductVersion
bouncycastlebc-java
𝑥
≤ 1.49
redhatsatellite
6.4
redhatsatellite_capsule
6.4
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
bouncycastle
bookworm
1.72-2
fixed
bullseye
1.68-2
fixed
sid
1.77-1
fixed
trixie
1.77-1
fixed
wheezy
ignored
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
bouncycastle
artful
not-affected
trusty
dne
xenial
not-affected