CVE-2026-42789

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

7.0 high EPSS 0.38%

Published 27 May 2026 Updated 20 Nov 2026 CNA: EEF

Check your servers for CVE-2026-42789

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-42789 affects otp, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

7.0 high CVSS 4.0 from EEF (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
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Attack requirements
present: an attack works only when the target is in a certain state or configuration
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Impact on the vulnerable system
confidentiality low, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
Impact on other systems
confidentiality high, integrity high, availability none: what an attacker can read, change or stop beyond it
8.0 high CVSS 3.1 from redhat-SADP
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
none: the attacker does not need an account
User interaction
required: a user has to do something, such as open a link or a file
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.38%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 34.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 27 May 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-295 Improper Certificate Validation
  • CWE-296 Improper Following of a Certificate's Chain of Trust

Affected products

As the CNA lists them.

ProductVersions
OTP
package public_key
affected 0.22 and later (unaffected from 1.17.1.7, unaffected from 1.20.3.6, unaffected from 1.21.8)
Other versions: unknown
OTP
package otp
affected 17.0 and later (unaffected from 27.3.4.19, unaffected from 28.5.0.8, unaffected from 29.1.2)
Other versions: unknown
OTP
package erlang/otp
affected 84adefa331c4159d432d22840663c38f155cd4c1 and later (unaffected from 0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8, unaffected from 75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333, unaffected from 82af606b5437c4de1276dbcc8855a47e88231226)
unaffected 0a05b7ca33fb0b3f0a6cb9ae34252bb3a74032b8 and later
unaffected 75ca4c0dc2bbdb286ac3c3fe89cb4b4d2b4dc333 and later
unaffected 82af606b5437c4de1276dbcc8855a47e88231226 and later
Other versions: unknown

Is my server affected?

Find the installed version of otp and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i otp
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-42789 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-42789

RHEL, Rocky, Alma, Fedora

rpm -q otp
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-42789

Alpine

apk list --installed | grep -i otp

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-42789
trivy image --scanners vuln IMAGE | grep CVE-2026-42789

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Patches and release notes

Other references

Source: the record CVE-2026-42789 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.