CVE-2018-5382

Summary

CVECVE-2018-5382
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2018-04-16 14:29:00 UTC
Updated2022-04-20 15:31:00 UTC
DescriptionThe 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.

Risk And Classification

Problem Types: CWE-354

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Bouncycastle Legion-of-the-bouncy-castle-java-crytography-api All All All All
Application Bouncycastle Legion-of-the-bouncy-castle-java-crytography-api All All All All
Application Bouncycastle Legion-of-the-bouncy-castle-java-crytography-api All All All All
Application Redhat Satellite 6.4 All All All
Application Redhat Satellite Capsule 6.4 All All All

References

ReferenceSourceLinkTags
VU#306792 - Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions CERT-VN www.kb.cert.org Third Party Advisory, US Government Resource
Red Hat Customer Portal REDHAT access.redhat.com
Oracle Critical Patch Update Advisory - October 2020 MISC www.oracle.com
bouncycastle.org MISC www.bouncycastle.org Vendor Advisory
Bouncy Castle BKS-V1 CVE-2018-5382 Security Weakness BID www.securityfocus.com Third Party Advisory, VDB Entry
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report