{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42791","id":"CVE-2026-42791","title":"OCSP responder certificate validity period not checked in public_key","description":"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 ","descriptionLong":"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.","published":"2026-05-27T12:23:13.584Z","updated":"2026-11-13T02:47:30.852832937Z","reserved":"2026-04-29T18:06:33.251Z","status":"Modified","rejected":false,"assigner":"EEF","metric":{"version":"4.0","score":6.3,"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","rating":"medium","source":"EEF"},"metrics":[{"version":"4.0","score":6.3,"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","rating":"medium","source":"EEF"},{"version":"4.0","score":6.3,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"medium","source":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N","rating":"low","source":"NVD"}],"rating":"medium","products":["Erlang OTP"],"affectedProducts":[{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","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"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","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"}],"platforms":[]},{"vendor":"Erlang","product":"OTP","defaultStatus":"unaffected","versions":[{"changes":[{"at":"7995f1fdaee3da569bb810358ce0f546471d169b","status":"unaffected"},{"at":"b3870e02405c709a872b01ba6086065620cdfe76","status":"unaffected"}],"lessThan":"*","status":"affected","version":"2b1a742c651b90f8a7a1fb2ddde73f29915ea376","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-295","CWE-672"],"aliases":["EEF-CVE-2026-42791","GHSA-cjxj-wj6x-3fff"],"references":[{"url":"https://github.com/erlang/otp/security/advisories/GHSA-cjxj-wj6x-3fff","tags":["vendor-advisory","related","Mitigation","Vendor Advisory","advisory"]},{"url":"https://cna.erlef.org/cves/CVE-2026-42791.html","tags":["related","Third Party Advisory","web"]},{"url":"https://osv.dev/vulnerability/EEF-CVE-2026-42791","tags":["related","Third Party Advisory","web"]},{"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions","tags":["x_version-scheme","Product","web"]},{"url":"https://github.com/erlang/otp/commit/2b1a742c651b90f8a7a1fb2ddde73f29915ea376","tags":["related","fix"]},{"url":"https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b","tags":["patch","Patch","fix"]},{"url":"https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76","tags":["patch","Patch","fix"]},{"url":"https://github.com","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42791.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42791","tags":["advisory"]},{"url":"https://github.com/erlang/otp","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00326,"epssPercentile":0.2627,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42791","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42791","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42791","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42791","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}