CVEBrief

Home / Legion of the Bouncy Castle / Bouncy Castle / CVE-2018-5382

CVE-2018-5382: is it exploited, and which versions of Legion of the Bouncy Castle Bouncy Castle are affected and fixed?

CVE-2018-5382 is a broken or risky cryptography vulnerability in Legion of the Bouncy Castle Bouncy Castle. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:38 UTC). Affected: org.bouncycastle:bcprov-jdk15on before 1.50 (GitHub advisory GHSA-8477-3v39-ggpm). Fixed in 1.50 (GitHub advisory GHSA-8477-3v39-ggpm). Severity: Medium (4.4, CVSS 3.1, from NVD).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:33 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 09:38 UTC
Affected
org.bouncycastle:bcprov-jdk15on before 1.50
GitHub advisory GHSA-8477-3v39-ggpm
Fixed in
1.50
GitHub advisory GHSA-8477-3v39-ggpm
Severity
Medium 4.4
CVSS 3.1 from NVD
Exploit odds (EPSS)
0.26% in 30 days
higher than 19% of CVEs; FIRST, December 2, 2026

What is CVE-2018-5382?

Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions

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.

From the CVE record by certcc, last updated September 16, 2024, 16:27 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
Legion of the Bouncy CastleBouncy Castlefrom all before 1.471.47

As the CVE record by certcc states it, last updated September 16, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
Mavenorg.bouncycastle:bcprov-jdk15on< 1.501.50GHSA-8477-3v39-ggpm

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated June 28, 2022. Summary: Improper Validation of Integrity Check Value in Bouncy Castle.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
bouncycastlebc-javathrough 1.49application
redhatsatellite6.4application
redhatsatellite capsule6.4application

NVD analysis (status Modified), last modified June 17, 2026, 02:00 UTC.

How severe is CVE-2018-5382?

ScoreVersionVectorSource
Medium 4.4CVSS 3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NNVD
Low 3.6CVSS 2.0AV:L/AC:L/Au:N/C:P/I:P/A:NNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2018-5382 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.26% probability of exploitation activity in the next 30 days, percentile 19.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
January 12, 2018
Published
April 16, 2018, 13:00 UTC
CVE record updated
September 16, 2024, 16:27 UTC by certcc
NVD
Modified, last modified June 17, 2026, 02:00 UTC
Last checked
CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:33 UTC; KEV December 3, 2026, 09:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

Questions about CVE-2018-5382

Is CVE-2018-5382 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:38 UTC. FIRST's EPSS gives it a 0.26% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Legion of the Bouncy Castle Bouncy Castle are affected by CVE-2018-5382?

org.bouncycastle:bcprov-jdk15on before 1.50, per the GitHub advisory GHSA-8477-3v39-ggpm. The tables above give every range the sources list.

Which version fixes CVE-2018-5382?

1.50, per the GitHub advisory GHSA-8477-3v39-ggpm. Check the vendor's advisory before you rely on it.

How severe is CVE-2018-5382?

Medium (4.4, CVSS 3.1, from NVD). The severity table above shows each score with its source.

Where is the official record of CVE-2018-5382?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.