Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2018-5382

published

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

Published
16 Apr 2018, 13:00:00 UTC
Updated
16 Sep 2024, 16:27:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Legion of the Bouncy Castle — Bouncy Castleall to < 1.47 Affected Not stated certcc

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.

en · certcc · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Legion of the Bouncy Castle Bouncy Castle all to < 1.47 (affected · custom) certcc · cna

Weaknesses

1
  • CWE-327 CWE-327: Use of a Broken or Risky Cryptographic Algorithm (certcc · cna)

References

5
  • 103453 http://www.securityfocus.com/bid/103453 vdb-entry, x_refsource_BID, x_transferred Contributors: certcc (cna), CVE (adp)
  • RHSA-2018:2927 https://access.redhat.com/errata/RHSA-2018:2927 vendor-advisory, x_refsource_REDHAT, x_transferred Contributors: certcc (cna), CVE (adp)
  • https://www.bouncycastle.org/releasenotes.html x_refsource_MISC, x_transferred Contributors: certcc (cna), CVE (adp)
  • VU#306792 https://www.kb.cert.org/vuls/id/306792 third-party-advisory, x_refsource_CERT-VN, x_transferred Contributors: certcc (cna), CVE (adp)
  • https://www.oracle.com/security-alerts/cpuoct2020.html x_refsource_MISC, x_transferred Contributors: certcc (cna), CVE (adp)

Provider assertions

2

certcc · cna

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

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
ad702e742abbfb0abc6dcd916f989db4558d7d28d6450fac38fb6b20877dfff5
Ingested
23 Sep 2026, 07:44:52 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected