{"schemaVersion":3,"id":"CVE-2018-5382","aliases":["UBUNTU-CVE-2018-5382","DEBIAN-CVE-2018-5382","CGA-252f-f9r9-p7r8","CGA-f4pr-hp23-vmxq","CGA-pqpx-2hpx-xr44","GHSA-8477-3v39-ggpm","CGA-q3pq-78h3-gx6g","CGA-whwr-gh5r-593j","CGA-xhm9-pjg4-w75j"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-04-16T13:00:00.000Z","modified":"2024-09-16T16:27:56.228Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":4.4,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":3.6,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":4.6,"impact":4.2,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":4.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":4.6,"impact":4.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":4.4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","exploitability":4.6,"impact":4.2,"computed":true}]},"epss":{"probability":0.0026,"percentile":0.16682,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.0020000000000000052,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00262},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0026,"percentile":0.16682}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00262,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0026,"percentile":0.16682}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm","description":"The product uses a broken or risky cryptographic algorithm or protocol.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-354","name":"Improper Validation of Integrity Check Value","description":"The product does not validate or incorrectly validates the integrity check values or \"checksums\" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/354.html"}],"affected":[{"vendor":"chainguard","product":"hadoop-fips-3.3.6","name":"hadoop-fips-3.3.6","label":"hadoop-fips-3.3.6","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/hadoop-fips-3.3.6","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"hadoop-fips-3.4.2","name":"hadoop-fips-3.4.2","label":"hadoop-fips-3.4.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/hadoop-fips-3.4.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"hadoop-fips-3.5","name":"hadoop-fips-3.5","label":"hadoop-fips-3.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/hadoop-fips-3.5","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"bouncycastle","product":"bc-java","name":"bc-java","label":"bc-java","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 1.49","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 1.49","eol":null,"hubHref":"/vendor/bouncycastle/bc-java"},{"vendor":"debian","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/bouncycastle","purlType":"deb","versions":[{"text":"< 1.48+dfsg-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.48+dfsg-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/bouncycastle","purlType":"deb","versions":[{"text":"< 1.49+dfsg-2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.51-4ubuntu1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.49+dfsg-2 | < 1.51-4ubuntu1","eol":null,"hubHref":null},{"vendor":"legion of the bouncy castle","product":"bouncy castle","name":"Bouncy Castle","label":"bouncy castle","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ all, < 1.47","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ all, < 1.47","eol":null,"hubHref":"/vendor/legion_of_the_bouncy_castle/bouncy_castle"},{"vendor":"org.bouncycastle","product":"bcprov-jdk15on","name":"org.bouncycastle:bcprov-jdk15on","label":"bcprov-jdk15on","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.bouncycastle/bcprov-jdk15on","purlType":"maven","versions":[{"text":"< 1.50","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.50","eol":null,"hubHref":null},{"vendor":"redhat","product":"satellite","name":"satellite","label":"satellite","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.4","eol":null,"hubHref":"/vendor/redhat/satellite"},{"vendor":"redhat","product":"satellite_capsule","name":"satellite capsule","label":"satellite_capsule","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"6.4","eol":null,"hubHref":"/vendor/redhat/satellite_capsule"}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.securityfocus.com/bid/103453","label":"www.securityfocus.com/bid/103453","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","Third Party Advisory","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2018:2927","label":"access.redhat.com/errata/RHSA-2018:2927","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","Advisory","WEB"]},{"url":"https://www.kb.cert.org/vuls/id/306792","label":"www.kb.cert.org/vuls/id/306792","hostname":"www.kb.cert.org","tags":["Third Party Advisory","X Refsource CERT VN","US Government Resource","REPORT","Advisory","WEB"]},{"url":"https://www.bouncycastle.org/releasenotes.html","label":"www.bouncycastle.org/releasenotes.html","hostname":"www.bouncycastle.org","tags":["X Refsource MISC","Release Notes","Vendor Advisory","Advisory","WEB"]},{"url":"https://www.oracle.com/security-alerts/cpuoct2020.html","label":"www.oracle.com/security-alerts/cpuoct2020.html","hostname":"www.oracle.com","tags":["X Refsource MISC","Third Party Advisory","Advisory","WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-5382","label":"ubuntu.com/security/CVE-2018-5382","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://insights.sei.cmu.edu/cert/2018/03/the-curious-case-of-the-bouncy-castle-bks-passwords.html","label":"insights.sei.cmu.edu/cert/2018/03/the-curious-case-of-the-bouncy-castle-bks-passwords.html","hostname":"insights.sei.cmu.edu","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-5382","label":"www.cve.org/CVERecord?id=CVE-2018-5382","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2018-5382","label":"security-tracker.debian.org/tracker/CVE-2018-5382","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-5382","label":"nvd.nist.gov/vuln/detail/CVE-2018-5382","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["RHSA-2018:2927"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-04-16T13:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T16:27:56.228Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":18,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:26:00.420Z","stale":false,"partial":false}}