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
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 27 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10erlangpkg:deb/ubuntu/erlang?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSerlangpkg:deb/ubuntu/erlang?arch=source&distro=esm-infra/bionicOther threats | Affected
| Fixed in
|
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
- ubuntu.com/security/CVE-2026-42789 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-42789 (opens in a new tab)
- github.com/erlang/otp/security/advisories/GHSA-c99q-jmpx-v8qq (opens in a new tab)
- cna.erlef.org/cves/CVE-2026-42789.html (opens in a new tab)
- osv.dev/vulnerability/EEF-CVE-2026-42789 (opens in a new tab)
- github.com/erlang/otp/commit/471cd2f664300a95353c467873800bbe706005db (opens in a new tab)
- github.com/erlang/otp/commit/59c8d824386b2eb1614ff9340624843ef6aca0fd (opens in a new tab)
- erlang.org/doc/system/versions.html (opens in a new tab)
- ubuntu.com/security/notices/USN-8901-1 (opens in a new tab)