🛡️ CVE-2018-5382 — bcprov-jdk15on
Description
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.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality low, integrity low, availability none.
Weakness class
CVE-2018-5382 is classified as CWE-354: Improper Validation of Integrity Check Value. A checksum or integrity value is not verified properly, so tampered data passes as intact.
Affected software
CVE-2018-5382 is recorded against 1 package.
- org.bouncycastle:bcprov-jdk15on (fixed in 1.50)
Timeline and source
Published on 13 May 2022 and last revised on 8 November 2023. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
nvd.nist.gov (Advisory)
access.redhat.com (Web)
www.bouncycastle.org (Web)
www.kb.cert.org (Web)
www.oracle.com (Web)
www.securityfocus.com (Web)
Details
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| org.bouncycastle:bcprov-jdk15on | — | 1.50 |
References
Similar Threats
- Unknown CLSA-2026-1773101690
- Unknown CLSA-2026-1774484515
- Unknown CLSA-2026-1781052750
- Unknown CLSA-2026-1781571259
- Medium ROOT-APP-MAVEN-CVE-2023-33202
More CVE 2018 advisories
Browse all of CVE 2018 in the advisory index.
Free Vulnerability Check
Is your site affected by CVE-2018-5382?
BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2018-5382 and other known CVE records.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.