CVE-2026-42789
Non-CA certificate accepted as intermediate issuer in public_key path validation
Mitigation
- Vendor workaround: The verify_fun option in the ssl or public_key application can be used to ensure that path validation rejects chains where an intermediate certificate does not have basicConstraints cA:true.
Who should check
- Anyone running Erlang OTP >= 0.22, < *
- Anyone running Erlang OTP >= 17.0, < *
- Anyone running Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < *
Vulnerability facts
- Affected
- Erlang OTP >= 0.22, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < *
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.0 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:H/SI:H/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- Confidentiality impact on other systems: High
- Integrity impact on other systems: High
- Availability impact on other systems: None
- EPSS
- 0.35% chance of exploitation in 30 days (percentile 21, 2026-11-26)
- CWE
- CWE-295, CWE-296
- Modified
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 and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-42789. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-42789.md Affected: Erlang OTP >= 0.22, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < * Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for Erlang OTP: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
Other
- https://cna.erlef.org/cves/CVE-2026-42789.html
- https://osv.dev/vulnerability/EEF-CVE-2026-42789
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://access.redhat.com/security/cve/CVE-2026-42789
- https://bugzilla.redhat.com/show_bug.cgi?id=2482093
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42789.json
FAQ
Is CVE-2026-42789 being exploited?
There is no confirmed exploitation: CVE-2026-42789 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-42789?
High: CVSS 7.0 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-42789?
Erlang OTP >= 0.22, < *; Erlang OTP >= 17.0, < *; Erlang OTP >= 84adefa331c4159d432d22840663c38f155cd4c1, < *.
Is there a fix for CVE-2026-42789?
No fixed version is listed in the sources yet. Vendor workaround: The verify_fun option in the ssl or public_key application can be used to ensure that path validation rejects chains where an intermediate certificate does not have basicConstraints cA:true.
How do I check if I'm affected by CVE-2026-42789?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.