# CVE-2026-42789: Non-CA certificate accepted as intermediate issuer in public\_key path validation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.0
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **CWE:** CWE-295, CWE-296
- **Published:** 2026-05-27T12:23:06.355Z
- **Modified:** 2026-11-20T06:17:26.443Z

## Who should check

- Anyone running Erlang OTP \>= 0.22, \< \*
- Anyone running Erlang OTP \>= 17.0, \< \*
- Anyone running Erlang OTP \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< \*

## 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

- Erlang OTP: \>= 0.22, \< \* (cvelist)
- Erlang OTP: \>= 17.0, \< \* (cvelist)
- Erlang OTP: \>= 84adefa331c4159d432d22840663c38f155cd4c1, \< \* (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/erlang/otp/security/advisories/GHSA-c99q-jmpx-v8qq>
- vendor: <https://access.redhat.com/errata/RHSA-2026:54757>
- vendor: <https://access.redhat.com/errata/RHSA-2026:39809>
- patch: <https://github.com/erlang/otp/commit/0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8>
- patch: <https://github.com/erlang/otp/commit/75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333>
- patch: <https://github.com/erlang/otp/commit/82af606b5437c4de1276dbcc8855a47e88231226>
- other: <https://cna.erlef.org/cves/CVE-2026-42789.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-42789>
- other: <https://www.erlang.org/doc/system/versions.html#order-of-versions>
- other: <https://access.redhat.com/security/cve/CVE-2026-42789>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2482093>
- other: <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-42789.json>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-42789>

HTML: <https://flawdb.com/CVE-2026-42789> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-42789>
