{"schemaVersion":3,"id":"CVE-2022-45146","aliases":["UBUNTU-CVE-2022-45146","CGA-68mw-vvj4-g8jv","CGA-mfj4-38pm-9prj","CGA-cgpv-jgm7-4q9h","CGA-jmr6-7x59-9qqp","GHSA-68m8-v89j-7j2p"],"status":"published","duplicateOf":null,"title":null,"description":"An issue was discovered in the FIPS Java API of Bouncy Castle BC-FJA before 1.0.2.4. Changes to the JVM garbage collector in Java 13 and later trigger an issue in the BC-FJA FIPS modules where it is possible for temporary keys used by the module to be zeroed out while still in use by the module, resulting in errors or potential information loss. NOTE: FIPS compliant users are unaffected because the FIPS certification is only for Java 7, 8, and 11.","dates":{"published":"2022-11-21T00:00:00.000Z","modified":"2024-08-03T14:09:56.019Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"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:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00431,"percentile":0.3599,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00431},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00431,"percentile":0.3599}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00431,"percentile":0.3599}]},"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":[{"id":"GITHUB_BCGIT_BC-JAVA","name":"Bc Java","source":"github","url":"https://github.com/bcgit/bc-java/wiki/CVE-2022-45146","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"}],"affected":[{"vendor":"chainguard","product":"elasticsearch-7","name":"elasticsearch-7","label":"elasticsearch-7","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/elasticsearch-7","purlType":"apk","versions":[{"text":"< 7.17.15-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.17.15-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"opensearch-2","name":"opensearch-2","label":"opensearch-2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/opensearch-2","purlType":"apk","versions":[{"text":"< 2.11.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.1-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"opensearch-2","name":"opensearch-2","label":"opensearch-2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/opensearch-2","purlType":"apk","versions":[{"text":"< 2.11.1-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.11.1-r1","eol":null,"hubHref":null},{"vendor":"bouncycastle","product":"fips_java_api","name":"fips java api","label":"fips_java_api","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.0.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.2.4","eol":null,"hubHref":"/vendor/bouncycastle/fips_java_api"},{"vendor":"ubuntu","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/bouncycastle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.bouncycastle","product":"bc-fips","name":"org.bouncycastle:bc-fips","label":"bc-fips","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.bouncycastle/bc-fips","purlType":"maven","versions":[{"text":"< 1.0.2.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.0.2.4","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.bouncycastle.org/latest_releases.html","label":"www.bouncycastle.org/latest_releases.html","hostname":"www.bouncycastle.org","tags":["REPORT","Advisory","WEB","Release Notes","Vendor Advisory"]},{"url":"https://github.com/bcgit/bc-java/wiki/CVE-2022-45146","label":"github.com/bcgit/bc-java/wiki/CVE-2022-45146","hostname":"github.com","tags":["REPORT","EVIDENCE","WEB","Exploit","Third Party Advisory"]},{"url":"https://mvnrepository.com/artifact/org.bouncycastle/bc-fips","label":"mvnrepository.com/artifact/org.bouncycastle/bc-fips","hostname":"mvnrepository.com","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2022-45146","label":"ubuntu.com/security/CVE-2022-45146","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-45146","label":"www.cve.org/CVERecord?id=CVE-2022-45146","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45146","label":"nvd.nist.gov/vuln/detail/CVE-2022-45146","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-5MWG-944H-H2QH","CGA-FPHX-PXGP-6HWG","CGA-P55H-76M4-9JC4","CGA-XMP7-98WF-98M6"]},"timeline":[{"kind":"published","date":"2022-11-21T00:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T14:09:56.019Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T04:44:09.404Z","stale":false,"partial":false}}