cve.bz

CVE-2018-5382

4.4 mediumEPSS 0.3%Fix available

Medium (4.4). EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.bouncycastle:bcprov-jdk15on 1.50.

On this page
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.

Severity

CVSS 3.1

4.4 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-354 Improper Validation of Integrity Check Value
CWE-327 Use of a Broken or Risky Cryptographic Algorithm
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-5382 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-5382?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-5382?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-5382 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Legion of the Bouncy Castle Bouncy Castlefrom all before 1.47

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8477-3v39-ggpmMavenorg.bouncycastle:bcprov-jdk15on<1.501.50

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14bouncycastle1.48+dfsg-2DEBIAN-CVE-2018-5382
Red Hatsatellite:6.4::el7foreman, foreman-cli, foreman-ec2 and 11 more0:1.18.0.37-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7pcp-mmvstatsd0:0.4-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7qpid-cpp, qpid-qmf, qpid-tools and 6 more0:1.36.0-19.el7RHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-foreman_scap_client0:0.3.0-3.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-kafo_parsers, tfm-rubygem-hammer_cli_foreman_openscap0:0.1.6-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7rubygem-smart_proxy_dynflow, tfm-rubygem-get_process_mem, tfm-rubygem-smart_proxy_dynflow_core0:0.2.1-2.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-crass0:1.0.2-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-erubi0:1.7.0-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-globalid0:0.4.1-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-i18n0:0.9.1-2.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-method_source0:0.9.0-1.el7satRHSA-2018:2927
Red Hatsatellite:6.4::el7tfm-ror51-rubygem-mini_mime, tfm-rubygem-logging-journald, tfm-rubygem-record_tag_helper0:1.0.0-1.el7satRHSA-2018:2927
188 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Low.

Red Hat's statement

Red Hat Product Security has rated this issue as having a security impact of Low. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.

ProductPackageStateAdvisory
Red Hat Satellite 6.4 for RHEL 7ansiblerole-insights-client-0:1.5-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7candlepin-0:2.4.8-1.el7Fixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7createrepo_c-0:0.7.4-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7foreman-0:1.18.0.37-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7foreman-bootloaders-redhat-0:201801241201-3.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7foreman-installer-1:1.18.0.2-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7foreman-proxy-0:1.18.0.1-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7foreman-selinux-0:1.18.0.1-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7gofer-0:2.12.1-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7hfsplus-tools-0:332.14-12.el7Fixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7katello-0:3.7.0-8.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7katello-certs-tools-0:2.4.0-2.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7katello-client-bootstrap-0:1.6.0-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat Satellite 6.4 for RHEL 7katello-installer-base-0:3.7.0.10-1.el7satFixed 2018-10-16RHSA-2018:2927
Red Hat JBoss Data Virtualization 6bouncycastleOut of support scope
Red Hat JBoss Enterprise Application Platform 7bouncycastleAffected
Red Hat Software Collectionsrh-eclipse46-bouncycastleNot affected
Red Hat Subscription Asset ManagerbouncycastleWill not fix
Red Hat Virtualization 4eap7-bouncycastleNot affected
streams for Apache KafkabouncycastleFix deferred
303 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-5382.

Attack patterns (CAPEC)

  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-145 Checksum Spoofing Severity: Medium
  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-20 Encryption Brute Forcing Likelihood: Low · Severity: Low
  • CAPEC-97 Cryptanalysis Likelihood: Low · Severity: Very High
  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-473 Signature Spoof
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High
  • CAPEC-608 Cryptanalysis of Cellular Encryption Severity: High
  • CAPEC-614 Rooting SIM Cards Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON