Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2018-5382
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 05:24 UTC · Revision 1
Source evidence
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.
osv:CVE-2018-5382
Complete source record
{
"id": "43be17f58ddba728860267ec416a704526c4de23732ef90b7a3941ac9bcdd70a",
"url": "https://osv.dev/vulnerability/CVE-2018-5382",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2018-5382",
"summary": "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.",
"evidence": "osv:CVE-2018-5382",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2018-5382",
"aliases": [
"CVE-2018-5382",
"GHSA-8477-3v39-ggpm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/bcgit/bc-java",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "4f7f299340043738ff3a269724d4a9ab18e739d2"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:bouncycastle:bc-java:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "1.49"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"r1rv49"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-5382.json"
}
}
],
"modified": "2026-10-24T10:30:28.351587621Z",
"provider": "osv",
"references": [
"https://access.redhat.com/errata/RHSA-2018:2927",
"https://www.bouncycastle.org/releasenotes.html",
"https://www.kb.cert.org/vuls/id/306792",
"https://www.oracle.com/security-alerts/cpuoct2020.html"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:redhat:satellite:6.4:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:satellite",
"extracted_events": [
{
"range": [
{
"introduced": "6.4"
},
{
"last_affected": "6.4"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:redhat:satellite_capsule:6.4:*:*:*:*:*:*:*"
],
"vendor_product": "redhat:satellite_capsule",
"extracted_events": [
{
"range": [
{
"introduced": "6.4"
},
{
"last_affected": "6.4"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2018-5382",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 432030,
"published_at": "2018-04-16T14:29:01.047+00:00"
}