Skip to content

CVE-2026-97873 Legacy PBES1 and PKCS#12 PBE iteration count honoured unbounded in the raw JCA provider

MediumCVSS 5.3 EPSS 0.26%
Published
Updated
Exploit status
No public exploit known

Description

In Bouncy Castle for Java before 1.86, the raw JCA provider's legacy PBES1 (PKCS#5 scheme 1) and PKCS#12 PBE families ran their password-based key derivation with an iteration count taken from untrusted input without bounding it, so a small input could dictate an arbitrary amount of work before anything could be verified. The AlgorithmParameters implementations (PKCS12PBE and its object identifier aliases, and PBKDF1) accepted any count from an encoded PKCS12PBEParams or PBEParameter, narrowing a value beyond the int range with intValue(), and every Cipher, Mac and SecretKeyFactory in these families derived with whatever count it was given, including one decoded by another provider's AlgorithmParameters, as when javax.crypto.EncryptedPrivateKeyInfo.getKeySpec() decrypts a PKCS#12 PBE-protected private key with BC. Both the parameter parse and the derivations now reject a negative or over-limit count under the org.bouncycastle.pbe.max_iteration_count property (default 10,000,000) that already bounded PBKDF2 (CVE-2026-17508), and the parse rejects a count beyond the int range rather than narrowing it. This issue also affects Bouncy Castle for Java LTS before 2.73.13.

Affected products

ProductAffected versionsFixed in
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/bcprov-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/bcprov-jdk18on(Red Hat:camel_quarkus:3) All versions No fix listed
redhat/bcprov-jdk18on(Red Hat:camel_spring_boot:4) All versions No fix listed
redhat/bcprov-lts8on(Red Hat:apicurio_registry:3) All versions No fix listed
redhat/bcprov-jdk18on(Red Hat:build_keycloak:) All versions No fix listed
redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:) All versions No fix listed
redhat/bcprov-jdk18on(Red Hat:quarkus:3) All versions No fix listed
redhat/bcprov-jdk15on(Red Hat:jboss_fuse:7) All versions No fix listed
redhat/bcprov-jdk18on(Red Hat:jboss_fuse:7) All versions No fix listed
redhat/bcprov-jdk15on(Red Hat:jboss_enterprise_application_platform:7) All versions No fix listed
redhat/bcprov-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/bcprov-jdk18on(Red Hat:jboss_enterprise_application_platform:8) All versions No fix listed
redhat/bcprov-jdk18on(Red Hat:jbosseapxp) All versions No fix listed
redhat/rhoai/odh-modelmesh-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-spark-operator-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-th06-cpu-torch210-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-th06-cpu-torch291-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-th06-cuda130-torch210-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
Show 26 more
ProductAffected versionsFixed in
redhat/rhoai/odh-th06-cuda130-torch291-py312-rhel9(Red Hat:openshift_ai) All versions No fix listed
redhat/rhoai/odh-th06-rocm64-torch291-py312-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
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/bcprov-jdk18on(Red Hat:red_hat_single_sign_on:7) All versions No fix listed
org.bouncycastle/bcprov-jdk18on < 1.86 1.86
org.bouncycastle/bcprov-lts8on >= 2.73.0, < 2.73.13 2.73.13
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
azure linux bouncycastle(Azure Linux:4.0) All versions No fix listed

References