cve.bz

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

7.0 highEPSS 0.4%Fix available

High (7.0) in erlang erlang\/otp. EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

7.0 high
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:N

CVSS 3.1

4.8 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 33rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-27. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-295 Improper Certificate Validation
CWE-296 Improper Following of a Certificate's Chain of Trust
OWASP Top 10
A04:2025 Cryptographic Failures, A07:2025 Authentication Failures
Published
Modified
Assigned by
EEF (CNA)
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42789 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42789?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42789?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42789 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

  • erlang:erlang\/otp

Versions

From the CNA's record in the CVE List.

ProductAffected
Erlang OTP0.22 and later
Erlang OTP17.0 and later

Fixed in

ProductFixed in
Erlang OTP1.17.1.7
Erlang OTP1.20.3.6
Erlang OTP1.21.8
Erlang OTP27.3.4.19
Erlang OTP28.5.0.8
Erlang OTP29.1.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12erlangno fix listedDEBIAN-CVE-2026-42789
Debian13erlang1:27.3.4.1+dfsg-1+deb13u3DEBIAN-CVE-2026-42789 DSA-6464-1
Debian14erlang1:27.3.4.12+dfsg-1DEBIAN-CVE-2026-42789
Ubuntu22.04:LTSerlang1:24.2.1+dfsg-1ubuntu0.8UBUNTU-CVE-2026-42789 USN-8901-1
Ubuntu24.04:LTSerlang1:25.3.2.8+dfsg-1ubuntu4.8UBUNTU-CVE-2026-42789 USN-8901-1
Ubuntu25.10erlangno fix listedUBUNTU-CVE-2026-42789
Ubuntu26.04:LTSerlang1:27.3.4.6+dfsg-1ubuntu0.2UBUNTU-CVE-2026-42789 USN-8901-1
UbuntuPro:14.04:LTSerlang1:16.b.3-dfsg-1ubuntu2.2+esm3UBUNTU-CVE-2026-42789 USN-8901-1
UbuntuPro:16.04:LTSerlang1:18.3-dfsg-1ubuntu3.1+esm4UBUNTU-CVE-2026-42789 USN-8901-1
UbuntuPro:18.04:LTSerlang1:20.2.2+dfsg-1ubuntu2+esm4UBUNTU-CVE-2026-42789 USN-8901-1
UbuntuPro:20.04:LTSerlang1:22.2.7+dfsg-1ubuntu0.5+esm3UBUNTU-CVE-2026-42789 USN-8901-1
Red Hathummingbird:1erlang27, erlang27-et, erlang27-wx and 36 more0:27.3.4.17-1.hum1RHSA-2026:63160
Red Hatopenstack:18.0::el9erlang, erlang-ssl, erlang-asn1 and 27 more0:26.2.5.21-2.el9ostRHSA-2026:39809
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreerlang23.3.4.19-150300.3.39.1SUSE-SU-2026:3645-1
SUSELinux Enterprise Module for Server Applications 15 SP7, Linux Enterprise Server 15 SP6-LTSS, Linux Enterprise Server for SAP Applications 15 SP6erlang2626.2.1-150300.7.28.1SUSE-SU-2026:3579-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0erlang27.1.3-160000.5.1SUSE-SU-2026:22082-1
openSUSELeap 16.0erlang27.1.3-160000.5.1openSUSE-SU-2026:20907-1
openSUSETumbleweederlang28.5.0.4-1.1openSUSE-SU-2026:11559-1
openSUSETumbleweederlang2727.1.3-2.1openSUSE-SU-2026:10947-1
Azure Linux3erlang26.2.5.21-1AZL-89172

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This is an Important vulnerability where Erlang OTP's `public_key` module improperly validates certificate chains. A remote attacker with an existing end-entity certificate from a trusted Certificate Authority can forge new leaf certificates, leading to compromised server or client identity verification in TLS/mTLS connections. This impacts applications within Red Hat OpenStack Platform and Community Projects that utilize the default verifier in the OTP `ssl` application. Because an attacker must be able to create or locate a certificate with specific attributes, Red Hat assesses the impact of this vulnerability as Important.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat OpenStack Platform 16.2erlang-0:23.3.4.18-2.el8ostFixed 2026-08-13RHSA-2026:54757
Red Hat OpenStack Services on OpenShift 18.0erlang-0:26.2.5.21-2.el9ostFixed 2026-07-15RHSA-2026:39809
Red Hat Hardened Imageserlang27-main-27.3.4.17-1.hum1Fixed 2026-09-03RHSA-2026:63160
Red Hat OpenStack Platform 17.1erlangAffected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-42789.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON