CVE-2026-71892
published medium CVSS 4.0 · 6.9CMS key-transport recipient key-size validation never runs for RFC 9709 HKDF-derived keys
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Legion of the Bouncy Castle Inc. | — | bcpkixBC-JAVA · 1.78 to < 1.86 · Other versions: unaffected · Platforms: all | Affected | Not stated | bcorg |
| Legion of the Bouncy Castle Inc. | — | bcpkix-fipsBC-FJA · 2.0.7 to < 2.0.13 · 2.1.0 to < 2.1.13 · Other versions: unaffected · Platforms: all | Affected | Not stated | bcorg |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP4 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
Show 83 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP5 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP6 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastlenoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-pgnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-pkixnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-15-SP7 | bouncycastle-utilnoarch | Advisory build | 1.86-150200.3.41.1 | SUSE-SU-2026:4797-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160000.1.1 | SUSE-SU-2026:24461-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24888-1 |
| SUSE / openSUSE | SLE-16 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | SUSE-SU-2026:24943-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastlenoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-javadocnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-jmailnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-mailnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-pgnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-pkixnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-tlsnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | bouncycastle-utilnoarch | Advisory build | 1.86-160000.1.1 | OPENSUSE-SU-2026:22169-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastlenoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-javadocnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-jmailnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-mailnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-pgnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-pkixnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-tlsnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Leap-16.1 | bouncycastle-utilnoarch | Advisory build | 1.86-160100.1.1 | OPENSUSE-SU-2026:22382-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastleaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastleppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastles390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastlex86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-javadocx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmails390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-jmailx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mails390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-mailx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pgx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixs390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-pkixx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlss390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-tlsx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilaarch64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilppc64le | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utils390x | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | bouncycastle-utilx86_64 | Advisory build | 1.86-1.1 | OPENSUSE-SU-2026:12090-1 |
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).
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.9 / 10
- Severity
- medium
- Provider
- bcorg · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Legion of the Bouncy Castle Inc. | BC-JAVA | 1.78 to < 1.86 (affected · maven)Default: unaffected | bcorg · cna |
| Legion of the Bouncy Castle Inc. | BC-FJA | 2.0.7 to < 2.0.13 (affected · maven)2.1.0 to < 2.1.13 (affected · maven)Default: unaffected | bcorg · cna |
Weaknesses
1- CWE-697 CWE-697 Incorrect Comparison
References
2Provider assertions
2bcorg · cna
CMS key-transport recipient key-size validation never runs for RFC 9709 HKDF-derived keys
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- e8204775a10e863ae1c5fd51ef08dac7223ad6fd354e4d9e914a7862e87e5440
- Ingested
- 05 Oct 2026, 17:10:30 UTC
- Source record
- Official CVE record