CVE-2018-5382: Bouncy Castle - Weak Cryptography
- Cve: CVE-2018-5382
- Name: Bouncy Castle - Weak Cryptography
- 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.
- Impact: Attackers can potentially tamper with or forge keystore integrity, leading to security breaches.
- Remediation: Update to Bouncy Castle 1.47 or later; avoid using 'BKS-V1' unless necessary for legacy support.
- Vulnerability type: weak_cryptography
- Vulnerability impact: data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 4.4
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.0026
- Epss percentile: 0.17912
- Assignee: [email protected]
- Published at: 2018-04-16T14:29:01Z
- Age in days: 3144
- Modified at: 2026-06-17T02:00:13Z
- References total: 5
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2018-5382
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-327 | Use of a Broken or Risky Cryptographic Algorithm |
| CWE-354 | Improper Validation of Integrity Check Value |
Hackerone
- Reports: 1
- Rank: 5193
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://www.bouncycastle.org/releasenotes.html | Release Notes, Vendor Advisory |
| http://www.securityfocus.com/bid/103453 | Third Party Advisory, VDB Entry |
| https://access.redhat.com/errata/RHSA-2018:2927 | Third Party Advisory |
| https://www.kb.cert.org/vuls/id/306792 | Third Party Advisory, US Government Resource |
| https://www.oracle.com/security-alerts/cpuoct2020.html | Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| redhat:satellite | = 6.4 | /v1/products/redhat/satellite |
| bouncycastle:bc-java | <= 1.49 | /v1/products/bouncycastle/bc-java |
| redhat:satellite_capsule | = 6.4 | /v1/products/redhat/satellite_capsule |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| bcgit/bc-java | fix | yes | /v1/repositories/bcgit/bc-java |
Index
- Repositories: 32
- Repositories high signal: 14
- Packages: 1
Exploitation
- Authentication required: yes
- Hackerone reports: 1
- Exposed hosts: 33
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since