LiveActive security incident?Get immediate response
CVE Record

CVE-2026-42791: OCSP responder certificate validity period not checked in public_key

Improper Certificate Validation vulnerability in Erlang OTP public_key (pubkey_ocsp module) allows forged OCSP responses signed with an expired responder certificate to be accepted as valid. OCSP response verification in pubkey_ocsp:verify_response/5 and pubkey_ocsp:is_authorized_responder/3 in lib/public_key/src/pubkey_ocsp.erl does not check the validity period (notBefore/notAfter) of the OCSP responder certificate. An attacker who has obtained the private key of an expired CA-designated OCSP responder certificate can forge OCSP responses that Erlang/OTP accepts as valid. This affects TLS clients using OCSP stapling via the ssl application: a malicious or compromised server can present a revoked TLS certificate together with a forged OCSP response signed by an expired responder key, and the client will accept the revoked certificate as valid. It also affects applications calling public_key:pkix_ocsp_validate/5 directly, where the impact depends on the use case — server-side client certificate validation using this API may allow authentication bypass with a revoked client certificate. This issue affects OTP from OTP 27.0 before OTP 29.0.1, OTP 28.5.0.1 and OTP 27.3.4.12, corresponding to public_key from 1.16 before 1.21.1, 1.20.3.1 and 1.17.1.3.

MediumCVSS 6.3Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Affected Erlang/OTP applications may trust a revoked certificate because OCSP validation fails to check whether the responder certificate has expired. Abuse requires possession of that expired responder certificate's private key. The main risks are accepting a revoked server certificate or, in some direct API uses, allowing authentication with a revoked client certificate.

Executive priority

Treat this as an accelerated maintenance item rather than a general emergency. Raise priority for internet-facing Erlang TLS clients using OCSP stapling and services using OCSP-backed client-certificate authentication. Exploitation prerequisites are substantial, but successful abuse could undermine certificate revocation and authentication controls.

Technical view

The pubkey_ocsp verification paths accept OCSP responses signed by an authorized but expired responder certificate without validating its notBefore and notAfter dates. A forged response can therefore make a revoked certificate appear valid. Relevant paths include TLS clients using OCSP stapling and applications calling public_key:pkix_ocsp_validate/5 directly.

Likely exposure

Exposure begins with OTP 27.0 and depends on the maintained branch. Fixed releases are OTP 27.3.4.12, 28.5.0.1, and 29.0.1, corresponding to public_key 1.17.1.3, 1.20.3.1, and 1.21.1. Systems not using OCSP stapling or direct OCSP validation are less likely to be affected.

Exploitation context

Exploitation requires the private key of an expired CA-designated OCSP responder certificate and a malicious or compromised server, or another suitable response-delivery position. The CVSS v4.0 score is 6.3 with high complexity and additional prerequisites. KEV is false, and the provided sources do not establish active exploitation.

Researcher notes

Impact depends on application behavior after successful OCSP validation. The source bundle describes limited integrity effects rather than confidentiality or availability impact. Its structured affected-package entries are less precise than the narrative branch information, so confirm exact version status against the vendor advisory and relevant patch commits.

Mitigation direction

  • Upgrade to OTP 27.3.4.12, 28.5.0.1, or 29.0.1, as appropriate for the maintained release branch.
  • Alternatively, update public_key to the corresponding fixed release supported by the deployed OTP branch.
  • If immediate upgrading is unavailable, consult Erlang's advisory for supported guidance and reduce reliance on affected OCSP validation.
  • Prioritize services using OCSP-backed client-certificate authentication or processing sensitive connections.

Validation and detection

  • Inventory deployed Erlang/OTP and public_key versions, including bundled runtimes and containers.
  • Identify TLS clients using OCSP stapling and applications calling public_key:pkix_ocsp_validate/5 directly.
  • Confirm upgraded nodes report a fixed branch version and all affected services were restarted or redeployed.
  • Test authorized staging systems to confirm OCSP responses using expired responder certificates are rejected.
  • Review client-certificate authentication paths where accepting revoked credentials could grant access.
Prepared
Confidence
high
Sources
6

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-295: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cwe · low confidence lookup

CWE-672: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Credential and access behavior lookup

The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-42791 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.3 (4.0)
Known Exploited
No
Published

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
3Timeline events
1ADP providers
7Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.3CVSS 4.0MediumCVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:NEEF

Vulnerability scoring details

Base CVSS 4.0 score

6.3Medium
CVSS 4.0 vector shape for CVE-2026-42791Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. CVE publishedCVE Program

    The CVE record was published.

  3. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
ErlangOTPpublic_key, 1.16unknown
ErlangOTPerlang/otp, 27.0, 2b1a742c651b90f8a7a1fb2ddde73f29915ea376unknown
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-295 · source CWE mapping

Improper Certificate Validation

Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.

CWE-672 · source CWE mapping

Operation on a Resource after Expiration or Release

Operation on a Resource after Expiration or Release represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.