# CVE-2026-71892: CMS key-transport recipient key-size validation never runs for RFC 9709 HKDF-derived keys

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-10-03 · Modified: 2026-10-05
- Aliases: UBUNTU-CVE-2026-71892, DEBIAN-CVE-2026-71892, CGA-whv9-cwvp-rfcf, CGA-53r4-hm9j-7r3w
- Record: https://cvemate.com/vulnerability/CVE-2026-71892 · JSON: https://cvemate.com/vulnerability/CVE-2026-71892/json

## Description

```text
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).
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) 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
- EPSS: 0.173%, percentile 7.019%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard pinot (Chainguard): All versions (No fix recorded)
- debian bouncycastle (Debian): All versions (No fix recorded) \| \< 1.86-1
- ubuntu bouncycastle (Ubuntu): All versions (No fix recorded)
- legion of the bouncy castle inc. bc-fja: ≥ 2.0.7, \< 2.0.13 \| ≥ 2.1.0, \< 2.1.13
- legion of the bouncy castle inc. bc-java: ≥ 1.78, \< 1.86

## References

- <https://github.com/bcgit/bc-java/wiki/CVE%E2%80%902026%E2%80%9071892>
- <https://github.com/bcgit/bc-java/commit/be0a7d925c818ef2f338bcec55178b9b6336dfc3>
- <https://ubuntu.com/security/CVE-2026-71892>
- <https://www.cve.org/CVERecord?id=CVE-2026-71892>
- <https://security-tracker.debian.org/tracker/CVE-2026-71892>
- <https://www.bouncycastle.org/download/bouncy-castle-java-fips/>
- <https://www.bouncycastle.org/download/bouncy-castle-java/>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/71xxx/CVE-2026-71892.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-71892>
- <https://github.com/bcgit/bc-java>

---

Data as of 2026-12-05T06:32:36.751Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
