Skip to main content
CVE-2026-42789VulnerabilityPublished Updated

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

Affects erlangSource GCVE Database

0
Authoritative record:CVE-2026-42789· High 7.0

Not known to be exploited · CVSS 7.0 High · fixed in 1:16.b.3-dfsg-1ubuntu2.2+esm3 : patch erlang soon.

Data as of 28 Oct 2026, 22:28 UTC

CVSS 4.0 base score
7.0High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 1:16.b.3-dfsg-1ubuntu2.2+esm3, 1:18.3-dfsg-1ubuntu3.1+esm4, 1:20.2.2+dfsg-1ubuntu2+esm4 +4
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 27 May 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=resoluteOther threatsAffected
  • <1:27.3.4.6+dfsg-1ubuntu0.2
Fixed in
  • 1:27.3.4.6+dfsg-1ubuntu0.2
Ubuntu 25.10erlangpkg:deb/ubuntu/erlang?arch=source&distro=questingOther threatsAffected
  • 1:27.3.4.1+dfsg-1 – 1:27.3+dfsg-1ubuntu1.1
5 affected builds
Fixed in–
Ubuntu 24.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=nobleOther threatsAffected
  • <1:25.3.2.8+dfsg-1ubuntu4.8
Fixed in
  • 1:25.3.2.8+dfsg-1ubuntu4.8
Ubuntu 22.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=jammyOther threatsAffected
  • <1:24.2.1+dfsg-1ubuntu0.8
  • =1:24.2+dfsg-1
Fixed in
  • 1:24.2.1+dfsg-1ubuntu0.8
Ubuntu Pro 20.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/focalOther threatsAffected
  • <1:22.2.7+dfsg-1ubuntu0.5+esm3
  • =1:22.2+dfsg-1
Fixed in
  • 1:22.2.7+dfsg-1ubuntu0.5+esm3
Ubuntu Pro 18.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <1:20.2.2+dfsg-1ubuntu2+esm4
Fixed in
  • 1:20.2.2+dfsg-1ubuntu2+esm4

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…