{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42791","assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","state":"PUBLISHED","assignerShortName":"EEF","dateReserved":"2026-04-29T18:06:33.251Z","datePublished":"2026-05-27T12:23:13.584Z","dateUpdated":"2026-11-20T05:57:35.846Z"},"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["pubkey_ocsp"],"packageName":"public_key","packageURL":"pkg:otp/public_key?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","product":"OTP","programFiles":["src/pubkey_ocsp.erl"],"programRoutines":[{"name":"pubkey_ocsp:verify_response/5"},{"name":"pubkey_ocsp:is_authorized_responder/3"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"1.17.1.3","status":"unaffected"},{"at":"1.20.3.1","status":"unaffected"},{"at":"1.21.1","status":"unaffected"}],"lessThan":"*","status":"affected","version":"1.16","versionType":"otp"}]},{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["pubkey_ocsp"],"packageName":"otp","packageURL":"pkg:software-id/erlang.org/otp","product":"OTP","programFiles":["lib/public_key/src/pubkey_ocsp.erl"],"programRoutines":[{"name":"pubkey_ocsp:verify_response/5"},{"name":"pubkey_ocsp:is_authorized_responder/3"}],"vendor":"Erlang","versions":[{"changes":[{"at":"27.3.4.12","status":"unaffected"},{"at":"28.5.0.1","status":"unaffected"},{"at":"29.0.1","status":"unaffected"}],"lessThan":"*","status":"affected","version":"27.0","versionType":"otp"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["pubkey_ocsp"],"packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","product":"OTP","programFiles":["lib/public_key/src/pubkey_ocsp.erl"],"programRoutines":[{"name":"pubkey_ocsp:verify_response/5"},{"name":"pubkey_ocsp:is_authorized_responder/3"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"7995f1fdaee3da569bb810358ce0f546471d169b","status":"unaffected"},{"at":"b3870e02405c709a872b01ba6086065620cdfe76","status":"unaffected"}],"lessThan":"*","status":"affected","version":"2b1a742c651b90f8a7a1fb2ddde73f29915ea376","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>For the <code>ssl</code> application, OCSP stapling must be enabled by setting the <code>stapling</code> option to <code>staple</code> in the TLS client options. OCSP stapling is not enabled by default.</p>\n<p>Applications calling <code>public_key:pkix_ocsp_validate/5</code> directly are unconditionally affected when that function is used.</p>"},{"base64":false,"type":"text/markdown","value":"For the `ssl` application, OCSP stapling must be enabled by setting the `stapling` option to `staple` in the TLS client options. OCSP stapling is not enabled by default.\n\nApplications calling `public_key:pkix_ocsp_validate/5` directly are unconditionally affected when that function is used."}],"value":"For the ssl application, OCSP stapling must be enabled by setting the stapling option to staple in the TLS client options. OCSP stapling is not enabled by default.\n\nApplications calling public_key:pkix_ocsp_validate/5 directly are unconditionally affected when that function is used."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.12","versionStartIncluding":"27.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"28.5.0.1","versionStartIncluding":"28.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"29.0.1","versionStartIncluding":"29.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"remediation developer","value":"Jakub Witczak"},{"lang":"en","type":"remediation reviewer","value":"Ingela Anderton Andin"}],"datePublic":"2026-05-27T12:23:13.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Certificate Validation vulnerability in Erlang OTP <code>public_key</code> (<code>pubkey_ocsp</code> module) allows forged OCSP responses signed with an expired responder certificate to be accepted as valid.</p>\n<p>OCSP response verification in <code>pubkey_ocsp:verify_response/5</code> and <code>pubkey_ocsp:is_authorized_responder/3</code> in <code>lib/public_key/src/pubkey_ocsp.erl</code> does not check the validity period (<code>notBefore</code>/<code>notAfter</code>) 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.</p>\n<p>This affects TLS clients using OCSP stapling via the <code>ssl</code> 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 <code>public_key:pkix_ocsp_validate/5</code> 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.</p>\n<p>This issue affects OTP from OTP&nbsp;27.0 before OTP&nbsp;27.3.4.12, OTP&nbsp;28.5.0.1, and OTP&nbsp;29.0.1, corresponding to public_key from 1.16 before 1.17.1.3, 1.20.3.1, and 1.21.1.</p>"},{"base64":false,"type":"text/markdown","value":"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.\n\nOCSP 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.\n\nThis 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.\n\nThis issue affects OTP from OTP 27.0 before OTP 27.3.4.12, OTP 28.5.0.1, and OTP 29.0.1, corresponding to public_key from 1.16 before 1.17.1.3, 1.20.3.1, and 1.21.1."}],"value":"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.\n\nOCSP 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.\n\nThis 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.\n\nThis issue affects OTP from OTP 27.0 before OTP 27.3.4.12, OTP 28.5.0.1, and OTP 29.0.1, corresponding to public_key from 1.16 before 1.17.1.3, 1.20.3.1, and 1.21.1."}],"impacts":[{"capecId":"CAPEC-475","descriptions":[{"lang":"en","value":"CAPEC-475 Signature Spoofing by Improper Validation"}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"HIGH","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":6.3,"baseSeverity":"MEDIUM","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"LOW","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"LOW","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-295","description":"CWE-295 Improper Certificate Validation","lang":"en","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-672","description":"CWE-672 Operation on a Resource after Expiration or Release","lang":"en","type":"CWE"}]}],"providerMetadata":{"orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF","dateUpdated":"2026-11-20T05:57:35.846Z"},"references":[{"name":"OCSP Responder Certificate Accepted After Expiry in public_key","tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-cjxj-wj6x-3fff"},{"name":"EEF CNA record for CVE-2026-42791","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-42791.html"},{"name":"OSV record EEF-CVE-2026-42791","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42791"},{"name":"Erlang/OTP version ordering","tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"name":"Introducing commit 2b1a742 in erlang/otp","tags":["related"],"url":"https://github.com/erlang/otp/commit/2b1a742c651b90f8a7a1fb2ddde73f29915ea376"},{"name":"Fix commit 7995f1f in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b"},{"name":"Fix commit b3870e0 in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76"}],"source":{"discovery":"INTERNAL"},"title":"OCSP responder certificate validity period not checked in public_key","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ul>\n<li>For TLS clients using the <code>ssl</code> application, disable OCSP stapling by setting <code>{stapling, no_staple}</code> in the client options, or switch to CRL-based revocation checking with <code>{crl_check, true}</code>.</li>\n<li>For applications calling <code>public_key:pkix_ocsp_validate/5</code> directly, validate the responder certificate's validity period in application code before calling the function.</li>\n</ul>"},{"base64":false,"type":"text/markdown","value":"* For TLS clients using the `ssl` application, disable OCSP stapling by setting `{stapling, no_staple}` in the client options, or switch to CRL-based revocation checking with `{crl_check, true}`.\n* For applications calling `public_key:pkix_ocsp_validate/5` directly, validate the responder certificate's validity period in application code before calling the function."}],"value":"* For TLS clients using the ssl application, disable OCSP stapling by setting {stapling, no_staple} in the client options, or switch to CRL-based revocation checking with {crl_check, true}.\n* For applications calling public_key:pkix_ocsp_validate/5 directly, validate the responder certificate's validity period in application code before calling the function."}]},"adp":[{"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-27T15:40:27.647844Z","id":"CVE-2026-42791","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-05-27T15:40:49.123Z"}}]}}