{"schemaVersion":3,"id":"CVE-2026-71892","aliases":["UBUNTU-CVE-2026-71892","DEBIAN-CVE-2026-71892"],"status":"published","duplicateOf":null,"title":null,"description":"In Bouncy Castle for Java before 1.86, the opt-in key-size validation on CMS key-transport recipients, org.bouncycastle.cms.jcajce.JceKeyTransRecipient.setKeySizeValidation(true), never ran for a message using RFC 9709 content-encryption key derivation (id-alg-cek-hkdf-sha256). The branch that should have selected the actual content-encryption algorithm carried in the key derivation AlgorithmIdentifier's parameters compared the encrypted-key byte array against the id-alg-cek-hkdf-sha256 object identifier, a comparison between a byte array and an ASN1ObjectIdentifier that is false for every possible input, so the check fell through to a key-size lookup on the outer wrapper OID. That OID identifies a key-derivation construction rather than a cipher and has no registered key size, so the size comparison was skipped entirely. A key-transport EnvelopedData or AuthEnvelopedData whose transported, HKDF-derived content-encryption key did not match the key size of the advertised content-encryption algorithm was therefore accepted even with validation explicitly enabled, silently defeating the only mechanism the API offers for enforcing recovered key size. The recipient now dispatches on the content-encryption AlgorithmIdentifier's algorithm OID, so validation checks the recovered key against the inner content-encryption algorithm. Messages with a matching key size, non-HKDF messages, and recipients that do not enable validation are unaffected. This issue also affects Bouncy Castle for Java FIPS (BC-FJA) before bcpkix-fips 2.0.13 (2.0.X series) and 2.1.13 (2.1.X series).","dates":{"published":"2026-10-03T08:30:26.982Z","modified":"2026-10-05T16:58:40.411Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.9,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00173,"percentile":0.06342,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-03T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00173,"percentile":0.06342}],"last30":[{"date":"2026-10-03T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00173,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00173,"percentile":0.06342}]},"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-697","name":"Incorrect Comparison","description":"The product compares two entities in a security-relevant context, but the comparison is incorrect.","type":"weakness","status":"Incomplete","abstraction":"Pillar","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/697.html"}],"affected":[{"vendor":"debian","product":"bouncycastle","name":"bouncycastle","label":"bouncycastle","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/bouncycastle","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 1.86-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 1.86-1","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":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"legion of the bouncy castle inc.","product":"bc-fja","name":"BC-FJA","label":"bc-fja","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.0.7, < 2.0.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.1.0, < 2.1.13","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.7, < 2.0.13 | ≥ 2.1.0, < 2.1.13","eol":null,"hubHref":"/vendor/legion_of_the_bouncy_castle_inc/bc-fja"},{"vendor":"legion of the bouncy castle inc.","product":"bc-java","name":"BC-JAVA","label":"bc-java","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.78, < 1.86","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.78, < 1.86","eol":null,"hubHref":"/vendor/legion_of_the_bouncy_castle_inc/bc-java"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071892","label":"github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071892","hostname":"github.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://github.com/bcgit/bc-java/commit/be0a7d925c818ef2f338bcec55178b9b6336dfc3","label":"github.com/bcgit/bc-java/commit/be0a7d925c818ef2f338bcec55178b9b6336dfc3","hostname":"github.com","tags":["Patch","REPORT"]},{"url":"https://ubuntu.com/security/CVE-2026-71892","label":"ubuntu.com/security/CVE-2026-71892","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-71892","label":"www.cve.org/CVERecord?id=CVE-2026-71892","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-71892","label":"security-tracker.debian.org/tracker/CVE-2026-71892","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:12090-1"],"duplicates":[],"related":["OPENSUSE-SU-2026:12090-1"]},"timeline":[{"kind":"published","date":"2026-10-03T08:30:26.982Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-05T16:58:40.411Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":28,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T01:08:33.970Z","stale":false,"partial":false}}