Skip to content
OpenAdvisories
High · 7.0 CVE-2026-42789 EUVD-2026-32272

Non-CA certificate accepted as intermediate issuer in public_key path validation

Published May 27, 2026 · Updated Oct 14, 2026 · Assigned by EEF

Description

Improper Following of a Certificate's Chain of Trust vulnerability in Erlang OTP public_key (pubkey_cert module) allows a non-CA certificate to be accepted as an intermediate issuer, enabling certificate chain forgery.

In lib/public_key/src/pubkey_cert.erl, pubkey_cert:validate_extensions/7 contains two flaws that together allow a certificate with basicConstraints cA:false and no keyUsage extension to be used as an intermediate issuer in a chain passed to public_key:pkix_path_validation/3: the cA:false clause recurses into the remaining extensions without rejecting the certificate when it is in issuer position, and the keyUsage check only fires when the extension is present, so a certificate lacking keyUsage entirely bypasses the keyCertSign enforcement.

Any party holding an end-entity certificate with basicConstraints cA:false and no keyUsage extension, issued by any CA in the victim's trust store, can use that certificate's private key to sign forged leaf certificates for arbitrary identities. public_key:pkix_path_validation/3 accepts the resulting chain, and by extension every TLS or mTLS endpoint built on the OTP ssl application that relies on the default verifier is affected, including server identity verification on the client side and client certificate verification on mTLS servers.

This issue affects OTP from OTP 17.0 before OTP 27.3.4.19, OTP 28.5.0.8, and OTP 29.1.2, corresponding to public_key from 0.22 before 1.17.1.7, 1.20.3.6, and 1.21.8. Whether OTP before OTP 17.0, corresponding to public_key before 0.22, is affected is unknown.

Affected products

VendorProductAffectedFixed
Erlang OTP 17.0, 0.22 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 erlang 1:27.3.4.12+dfsg-1 —
Debian 13 erlang 1:27.3.4.1+dfsg-1+deb13u3 —
Debian 12 erlang No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS erlang 1:27.3.4.6+dfsg-1ubuntu0.2 USN-8901-1
Ubuntu 25.10 erlang No fix yet —
Ubuntu 24.04 LTS erlang 1:25.3.2.8+dfsg-1ubuntu4.8 USN-8901-1
Ubuntu 22.04 LTS erlang 1:24.2.1+dfsg-1ubuntu0.8 USN-8901-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS erlang 1:22.2.7+dfsg-1ubuntu0.5+esm3 USN-8901-1
Ubuntu Pro 18.04 LTS erlang 1:20.2.2+dfsg-1ubuntu2+esm4 USN-8901-1
Ubuntu Pro 16.04 LTS erlang 1:18.3-dfsg-1ubuntu3.1+esm4 USN-8901-1
Ubuntu Pro 14.04 LTS erlang 1:16.b.3-dfsg-1ubuntu2.2+esm3 USN-8901-1
ReleasePackageFixed inAdvisory
Red Hat OpenStack 18 erlang +19 26.2.5.21-2.el9ost RHSA-2026:39809
Red Hat OpenStack 16 collectd-sensubility 0.2.1-1.1.el8ost RHSA-2026:54757
Red Hat OpenStack 16 erlang +20 23.3.4.18-2.el8ost RHSA-2026:54757
Red Hat OpenStack 16 etcd 3.3.23-22.el8ost RHSA-2026:54757
Red Hat OpenStack 16 python-oslo-messaging +1 10.2.4-2.20260710155333.82281a0.el8ost RHSA-2026:54757
Red Hat OpenStack 16 python-pyasn1 +2 0.4.6-4.el8ost RHSA-2026:54757
Red Hat OpenStack 16 python3-glance +1 1:19.0.5-2.20260512165254.eb6ad61.el8ost RHSA-2026:54757
Red Hat OpenStack 16 python3-keystone +1 1:16.0.3-2.20260616134936.9d699a7.el8ost RHSA-2026:54757
Red Hat OpenStack 16 python3-nova +11 1:20.6.2-2.20260317135026.8a24acd.el8ost RHSA-2026:54757
Red Hat Hardened Images 1 erlang27 +38 27.3.4.17-1.hum1 RHSA-2026:63160
ReleasePackageFixed inAdvisory
SLES 15 SP7 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES 15 SP7 erlang26 26.2.1-150300.7.28.1 SUSE-SU-2026:3579-1
SLES 15 SP6 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES 15 SP6 erlang26 26.2.1-150300.7.28.1 SUSE-SU-2026:3579-1
SLES 15 SP5 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES 15 SP4 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 erlang 27.1.3-160000.5.1 SUSE-SU-2026:22082-1
SLES for SAP 15 SP6 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES for SAP 15 SP6 erlang26 26.2.1-150300.7.28.1 SUSE-SU-2026:3579-1
SLES for SAP 15 SP5 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES for SAP 15 SP4 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLES 16.0 erlang 27.1.3-160000.5.1 SUSE-SU-2026:22082-1
SLE HPC 15 SP5 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
SLE HPC 15 SP4 erlang 23.3.4.19-150300.3.39.1 SUSE-SU-2026:3645-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed erlang 28.5.0.4-1.1 openSUSE-SU-2026:11559-1
openSUSE Tumbleweed erlang27 27.1.3-2.1 openSUSE-SU-2026:10947-1
openSUSE Leap 16.0 erlang 27.1.3-160000.5.1 openSUSE-SU-2026:20907-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 erlang 26.2.5.21-1 —

Advisories 11

References