{"answers":{"affected":"2 open source packages ship an affected version, including org.bouncycastle:bcprov-jdk15on. It affects 3 products.","exploited":"There is no known exploitation of CVE-2018-5382 in the wild and no public exploit code.","fix":"Upgrade org.bouncycastle:bcprov-jdk15on to 1.50 or later.","what":"CVE-2018-5382 is a medium-severity vulnerability in Bouncycastle Bc-Java, published on 16 Apr 2018. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-5382 and fix it if it is affected.\n\nWhat it is: CVE-2018-5382 is a medium-severity vulnerability in Bouncycastle Bc-Java, published on 16 Apr 2018. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2018-5382 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- org.bouncycastle:bcprov-jdk15on (Maven): affected all versions; fixed in 1.50\n- org.bouncycastle:bcprov-jdk15on (Maven): affected all versions; fixed in 1.50\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2018-5382/ (Markdown: https://insights.sbomify.com/CVE-2018-5382/index.md)","id":"CVE-2018-5382","markdown":"https://insights.sbomify.com/CVE-2018-5382/index.md","name":"CVE-2018-5382","record":{"aliases":["DEBIAN-CVE-2018-5382","GHSA-8477-3v39-ggpm"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Java cryptography library","requires_auth":"low_privilege","summary":"Attackers can compromise BKS keystore integrity due to weak 16-bit HMAC, allowing unauthorized modification of stored keys.","user_interaction":"not_required","vuln_class":"weak_cryptography"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"certcc","cpe":[{"product":"bc-java","vendor":"bouncycastle"},{"product":"satellite","vendor":"redhat"},{"product":"satellite_capsule","vendor":"redhat"}],"cvss":{"score":4.4,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-354","name":"Improper Validation of Integrity Check Value"},{"id":"CWE-327","name":"Use of a Broken or Risky Cryptographic Algorithm"}],"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.","ecosystems":["Maven"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Bouncy Castle BKS-V1 keystore files vulnerable to trivial hash collisions","id":"CVE-2018-5382","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"bouncycastle:bc-java","products":["bouncycastle:bc-java","redhat:satellite"],"type":"weak_cryptography","year":"2018"},"n_packages":2,"n_references":5,"next":{"headline":"Bluetooth implementations may not sufficiently validate elliptic curve parameters during Diffie-Hellman key exchange","id":"CVE-2018-5383"},"packages":[{"ecosystem":"Maven","fixed":["1.50"],"introduced":["0"],"last_affected":[],"package":"org.bouncycastle:bcprov-jdk15on","purl":null,"source":"GHSA-8477-3v39-ggpm"},{"ecosystem":"Maven","fixed":["1.50"],"introduced":["0"],"last_affected":[],"package":"org.bouncycastle:bcprov-jdk15on","purl":"pkg:maven/org.bouncycastle/bcprov-jdk15on","source":"GHSA-8477-3v39-ggpm"}],"prev":{"headline":"Denial of service in bgpd","id":"CVE-2018-5381"},"products":["Bouncy Castle"],"published":"2018-04-16","related":[{"cvss_score":10,"headline":"Legion of the Bouncy Castle Java Cryptography API Bleichenbacher Oracle Vulnerability","id":"CVE-2007-6721","kev_date_added":null,"published":"2009-03-30"},{"cvss_score":9.8,"headline":"Deserialization of Untrusted Data in Bouncy castle","id":"CVE-2018-1000613","kev_date_added":null,"published":"2018-07-09"},{"cvss_score":9.3,"headline":"Stapled OCSP response accepted without binding to the checked certificate","id":"CVE-2026-58062","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":9.3,"headline":"JSSE hostname verifier CN-fallback enabled by default despite documented opt-in","id":"CVE-2026-59638","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":9.3,"headline":"MTI/A0 DH agreement exponentiates unvalidated peer value","id":"CVE-2026-59650","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":9.3,"headline":"Name Constraints bypass via trailing dot in rfc822Name and URI","id":"CVE-2026-8763","kev_date_added":null,"published":"2026-08-03"},{"cvss_score":8.7,"headline":"MLS membership checks compare a uint32 leaf_index as signed, admitting an out-of-range sender","id":"CVE-2026-17507","kev_date_added":null,"published":"2026-10-02"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-09-16","vendors":["Legion of the Bouncy Castle"]},"summary":"Attackers can compromise BKS keystore integrity due to weak 16-bit HMAC, allowing unauthorized modification of stored keys.","url":"https://insights.sbomify.com/CVE-2018-5382/"}