PatchSiren cyber security CVE debrief
CVE-2026-42791 Erlang CVE debrief
A certificate validation flaw in Erlang/OTP's public_key library allows attackers to forge OCSP responses using expired responder certificates, potentially bypassing certificate revocation checks in TLS clients and authentication systems.
- Vendor
- Erlang
- Product
- OTP
- CVSS
- MEDIUM 6.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-05-27
- Original CVE updated
- 2026-06-02
- Advisory published
- 2026-05-27
- Advisory updated
- 2026-06-02
Who should care
Organizations running Erlang/OTP-based TLS clients with OCSP stapling enabled; developers using public_key:pkix_ocsp_validate/5 for certificate revocation checking; certificate authorities and PKI operators managing OCSP infrastructure; security teams monitoring for certificate validation bypasses in Erlang applications.
Technical summary
The vulnerability exists in the pubkey_ocsp module of Erlang/OTP's public_key library. The functions verify_response/5 and is_authorized_responder/3 perform OCSP response verification without checking whether the OCSP responder certificate is currently valid (within its notBefore/notAfter validity period). An attacker who possesses the private key of an expired CA-designated OCSP responder certificate can cryptographically sign forged OCSP responses that indicate a revoked certificate is valid. Because Erlang/OTP accepts these responses, TLS clients using OCSP stapling may accept revoked server certificates, and applications performing client certificate validation via public_key:pkix_ocsp_validate/5 may allow authentication bypass with revoked client certificates. The CVSS 4.0 vector indicates network attack vector, high attack complexity, and low integrity impact to the vulnerable system with low subsequent impacts to confidentiality and integrity.
Defensive priority
medium
Recommended defensive actions
- Upgrade Erlang/OTP to patched versions: OTP 27.3.4.12, 28.5.0.1, or 29.0.1 (corresponding public_key library versions 1.17.1.3, 1.20.3.1, or 1.21.1)
- If immediate patching is not possible, disable OCSP stapling in TLS client configurations as a temporary mitigation
- Review applications using public_key:pkix_ocsp_validate/5 directly for security-critical certificate validation and prioritize patching
- Monitor TLS connections for anomalous certificate validation behavior, particularly where revoked certificates might be accepted
- Verify OCSP responder certificate validity periods independently if using custom OCSP validation implementations
Evidence notes
CVE published 2026-05-27. Affects Erlang/OTP versions OTP 27.0 through 27.3.4.11, and public_key library versions 1.16 through 1.17.1.2. Fixed in OTP 27.3.4.12, 28.5.0.1, 29.0.1 and public_key 1.17.1.3, 1.20.3.1, 1.21.1. Root cause: pubkey_ocsp:verify_response/5 and pubkey_ocsp:is_authorized_responder/3 fail to validate the notBefore/notAfter validity period of OCSP responder certificates.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-42791 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-42791
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-42791 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-42791
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://cna.erlef.org/cves/CVE-2026-42791.html
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://github.com/erlang/otp/security/advisories/GHSA-cjxj-wj6x-3fff
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://osv.dev/vulnerability/EEF-CVE-2026-42791
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
-
Source reference
Unverified legacy reference
URL: https://www.erlang.org/doc/system/versions.html
6b3ad84c-e1a6-4bf7-a703-f496b71e49db
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.