Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2018-5382

4.4 · MEDIUM
Published Apr 16, 2018 bouncycastle CWE-327

Overview

CVE-2018-5382 is a medium-severity vulnerability affecting bouncycastle bc-java. It was published on April 16, 2018 and has a CVSS 3.1 base score of 4.4 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.4, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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.

Remediation

Check the references section for vendor advisories and patches from bouncycastle. Update bc-java to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
bouncycastle bc-java 0 Affected

Frequently Asked Questions

What is CVE-2018-5382?

CVE-2018-5382 is a medium-severity vulnerability affecting bouncycastle bc-java. It was published on April 16, 2018 and has a CVSS 3.1 base score of 4.4 (MEDIUM).

How severe is CVE-2018-5382?

This vulnerability has a CVSS 3.1 base score of 4.4, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2018-5382?

Check the references section for vendor advisories and patches from bouncycastle. Update bc-java to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2018-5382?

CyberStrike's AI-powered security agents can automatically detect CVE-2018-5382 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.