CVE-2026-71892 CMS key-transport recipient key-size validation never runs for RFC 9709 HKDF-derived keys
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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).
Upgrade path
35 packages: 3 fixed, 32 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/bouncycastle(Debian 12) | = 1.72-2; = 1.77-1; = 1.80-1; = 1.80-2 +3 more | No fix listed | No fix yet |
| debian/bouncycastle(Debian 13) | = 1.80-3; = 1.86-1; All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/de-minimal-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/de-supported-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat amq_broker 7) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat camel_quarkus 3) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat camel_spring_boot 4) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat jboss_enterprise_application_platform 8) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat jbosseapxp) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat quarkus 3) | All versions | No fix listed | No fix yet |
| redhat/bcpkix-jdk18on(Red Hat red_hat_single_sign_on 7) | All versions | No fix listed | No fix yet |
| redhat/candlepin(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/devspaces/jetbrains-ide-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/openvsx-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/devspaces/pluginregistry-rhel9(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-7/eap74-els-openjdk11-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-7/eap74-els-openjdk17-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jboss-eap-7/eap74-els-openjdk8-openshift-rhel8(Red Hat jboss_enterprise_application_platform 7) | All versions | No fix listed | No fix yet |
| redhat/jenkins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/jenkins-2-plugins(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/libarrow(Red Hat ceph_storage 9) | All versions | No fix listed | No fix yet |
| redhat/liborc(Red Hat ceph_storage 9) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel8(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/ocp-tools-4/jenkins-rhel9(Red Hat ocp_tools) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rhoai/odh-modelmesh-rhel9(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| ubuntu/bouncycastle(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/bouncycastle(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
… and 5 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.bouncycastle/bcpkix-jdk18on | >= 1.78, < 1.86 | 1.86 |
| org.bouncycastle/bcpkix-fips | >= 2.0.7, < 2.0.13 | 2.0.13 |
| org.bouncycastle/bcpkix-fips | >= 2.1.0, < 2.1.13 | 2.1.13 |
| redhat/jenkins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/jenkins-2-plugins(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel8(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/ocp-tools-4/jenkins-rhel9(Red Hat:ocp_tools) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:amq_broker:7) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/de-minimal-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/de-supported-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:camel_quarkus:3) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:camel_spring_boot:4) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:quarkus:3) | All versions | No fix listed |
| redhat/libarrow(Red Hat:ceph_storage:9) | All versions | No fix listed |
| redhat/liborc(Red Hat:ceph_storage:9) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/jboss-eap-7/eap74-els-openjdk11-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/jboss-eap-7/eap74-els-openjdk17-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/jboss-eap-7/eap74-els-openjdk8-openshift-rhel8(Red Hat:jboss_enterprise_application_platform:7) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:jboss_enterprise_application_platform:8) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:jbosseapxp) | All versions | No fix listed |
| redhat/rhoai/odh-modelmesh-rhel9(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/devspaces/jetbrains-ide-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/devspaces/openvsx-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/devspaces/pluginregistry-rhel9(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
| redhat/candlepin(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/bcpkix-jdk18on(Red Hat:red_hat_single_sign_on:7) | All versions | No fix listed |
| debian/bouncycastle(Debian:12) | All versions | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.72-2 | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.77-1 | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.80-1 | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.80-2 | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.80-3 | No fix listed |
| debian/bouncycastle(Debian:12) | = 1.86-1 | No fix listed |
| debian/bouncycastle(Debian:13) | All versions | No fix listed |
| debian/bouncycastle(Debian:13) | = 1.80-3 | No fix listed |
| debian/bouncycastle(Debian:13) | = 1.86-1 | No fix listed |
| debian/bouncycastle(Debian:14) | < 1.86-1 | 1.86-1 |
| debian/bouncycastle(Debian:14) | = 1.80-3 | No fix listed |
| ubuntu/bouncycastle(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/bouncycastle(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/bouncycastle(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/bouncycastle(Ubuntu:26.10) | All versions | No fix listed |
References
- github.com vendor-advisory
- github.com patch
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2545495 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-71892 vendor-advisory
- Ubuntu CVE tracker vendor-advisory