Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.0%top 92%

CVE-2026-42789: CWE-295 Improper Certificate Validation in Erlang OTP

0
High
VulnerabilityCVE-2026-42789cvecve-2026-42789cwe-295cwe-296
Published: Wed May 27 2026 (05/27/2026, 12:23:06 UTC)
Source: CVE Database V5
Vendor/Project: Erlang
Product: OTP

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 26.2.5.21, 27.3.4.12, 28.5.0.1, and 29.0.1 corresponding to public_key from 0.22 before 1.15.1.7, 1.17.1.3, 1.20.3.1, and 1.21.1.

CVSS v4.0

Score 7.0high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
High
Subsq. Availability
None
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

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/27/2026, 14:39:57 UTC

Technical Analysis

The vulnerability in Erlang OTP's public_key (pubkey_cert module) arises from improper following of a certificate's chain of trust. Specifically, the function pubkey_cert:validate_extensions/7 fails to reject certificates with basicConstraints cA:false used as intermediate issuers if they lack a keyUsage extension. This allows an attacker with an end-entity certificate (cA:false, no keyUsage) issued by a trusted CA to sign forged leaf certificates accepted by public_key:pkix_path_validation/3. Consequently, TLS and mTLS endpoints relying on OTP's ssl application default verifier are affected, impacting server and client certificate verification. Affected OTP versions include 17.0 up to but not including 26.2.5.21, 27.3.4.12, 28.5.0.1, and 29.0.1, corresponding to public_key versions prior to 1.15.1.7, 1.17.1.3, 1.20.3.1, and 1.21.1. The vulnerability has a CVSS 4.0 score of 7.0 (high severity).

Potential Impact

An attacker possessing an end-entity certificate with basicConstraints cA:false and no keyUsage extension, issued by any trusted CA, can exploit this vulnerability to forge certificate chains. This allows the creation of fraudulent leaf certificates for arbitrary identities that are accepted by OTP's public_key validation logic. As a result, TLS and mTLS endpoints using the default verifier in the OTP ssl application may trust malicious certificates, undermining server identity verification on clients and client certificate verification on servers. This compromises the integrity of secure communications relying on these certificates.

Mitigation Recommendations

The vendor manages remediation for this cloud-hosted service and has released patches in OTP versions 26.2.5.21, 27.3.4.12, 28.5.0.1, and 29.0.1, and corresponding public_key module versions 1.15.1.7, 1.17.1.3, 1.20.3.1, and 1.21.1. Users should upgrade to these patched versions to address the vulnerability. Patch status is confirmed as available. Check the vendor advisory for the latest remediation guidance and ensure OTP and public_key modules are updated accordingly.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
EEF
Date Reserved
2026-04-29T18:06:33.251Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null
Is Cloud Service
true

Threat ID: 6a16f9d5e29bf47b50c0e93d

Added to database: 5/27/2026, 2:04:05 PM

Last enriched: 5/27/2026, 2:39:57 PM

Last updated: 5/28/2026, 11:32:18 PM

Views: 7

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses