CVE-2018-5382
Bouncy Castle BKS Keystore Weak Integrity Check Vulnerability
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.
INFO
Published Date :
April 16, 2018, 2:29 p.m.
Last Modified :
Nov. 21, 2024, 4:08 a.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
2.5
Exploitability Score :
1.8
Public PoC/Exploit Available at Github
CVE-2018-5382 has a 1 public PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
Affected Products
The following products are affected by CVE-2018-5382
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2018-5382
.
URL | Resource |
---|---|
http://www.securityfocus.com/bid/103453 | Third Party Advisory VDB Entry |
https://access.redhat.com/errata/RHSA-2018:2927 | Third Party Advisory |
https://www.bouncycastle.org/releasenotes.html | Release Notes Vendor 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 |
http://www.securityfocus.com/bid/103453 | Third Party Advisory VDB Entry |
https://access.redhat.com/errata/RHSA-2018:2927 | Third Party Advisory |
https://www.bouncycastle.org/releasenotes.html | Release Notes Vendor 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 |
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Vulnerable dummy-application for checking different SCA tools
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2018-5382
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2018-5382
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/103453 Added Reference https://access.redhat.com/errata/RHSA-2018:2927 Added Reference https://www.bouncycastle.org/releasenotes.html Added Reference https://www.kb.cert.org/vuls/id/306792 Added Reference https://www.oracle.com/security-alerts/cpuoct2020.html -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Reanalysis by [email protected]
Apr. 20, 2022
Action Type Old Value New Value Removed CVSS V2 NIST (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:P/I:P/A:N) Removed CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N -
Modified Analysis by [email protected]
Apr. 21, 2021
Action Type Old Value New Value Removed CVSS V3 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://access.redhat.com/errata/RHSA-2018:2927 No Types Assigned https://access.redhat.com/errata/RHSA-2018:2927 Third Party Advisory Changed Reference Type https://www.bouncycastle.org/releasenotes.html Vendor Advisory https://www.bouncycastle.org/releasenotes.html Release Notes, Vendor Advisory Changed Reference Type https://www.oracle.com/security-alerts/cpuoct2020.html No Types Assigned https://www.oracle.com/security-alerts/cpuoct2020.html Third Party Advisory Changed CPE Configuration OR *cpe:2.3:a:bouncycastle:legion-of-the-bouncy-castle-java-crytography-api:*:*:*:*:*:*:*:* versions up to (excluding) 1.47 OR *cpe:2.3:a:bouncycastle:legion-of-the-bouncy-castle-java-crytography-api:*:*:*:*:*:*:*:* versions up to (including) 1.49 Added CPE Configuration OR *cpe:2.3:a:redhat:satellite:6.4:*:*:*:*:*:*:* *cpe:2.3:a:redhat:satellite_capsule:6.4:*:*:*:*:*:*:* -
CVE Modified by [email protected]
Apr. 02, 2021
Action Type Old Value New Value Changed Description Bouncy Castle BKS version 1 keystore (BKS-V1) files use an HMAC that is only 16 bits long, which can allow an attacker to compromise the integrity of a BKS-V1 keystore. All BKS-V1 keystores are vulnerable. Bouncy Castle release 1.47 introduces BKS version 2, which uses a 160-bit MAC. 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. -
CVE Modified by [email protected]
Oct. 20, 2020
Action Type Old Value New Value Added Reference https://www.oracle.com/security-alerts/cpuoct2020.html [No Types Assigned] -
CVE Modified by [email protected]
Oct. 09, 2019
Action Type Old Value New Value Added CWE CERT/CC CWE-327 -
CWE Remap by [email protected]
Oct. 03, 2019
Action Type Old Value New Value Changed CWE CWE-310 CWE-20 CWE-284 CWE-354 -
CVE Modified by [email protected]
Oct. 17, 2018
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2018:2927 [No Types Assigned] -
Initial Analysis by [email protected]
May. 22, 2018
Action Type Old Value New Value Added CVSS V2 (AV:N/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://www.bouncycastle.org/releasenotes.html No Types Assigned https://www.bouncycastle.org/releasenotes.html Vendor Advisory Changed Reference Type https://www.kb.cert.org/vuls/id/306792 No Types Assigned https://www.kb.cert.org/vuls/id/306792 Third Party Advisory, US Government Resource Changed Reference Type http://www.securityfocus.com/bid/103453 No Types Assigned http://www.securityfocus.com/bid/103453 Third Party Advisory, VDB Entry Added CWE CWE-310 Added CPE Configuration OR *cpe:2.3:a:bouncycastle:legion-of-the-bouncy-castle-java-crytography-api:*:*:*:*:*:*:*:* versions up to (excluding) 1.47 -
CVE Modified by [email protected]
Apr. 18, 2018
Action Type Old Value New Value Added Reference http://www.securityfocus.com/bid/103453 [No Types Assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2018-5382
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2018-5382
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.07 }} 0.00%
score
0.33311
percentile