CVE-2026-42791
OCSP responder certificate validity period not checked in public_key
Check your servers for CVE-2026-42791
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-42791 affects otp, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
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 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.
Severity (CVSS)
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
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- present: an attack works only when the target is in a certain state or configuration
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Impact on the vulnerable system
- confidentiality none, integrity low, availability none: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality low, integrity low, availability none: what an attacker can read, change or stop beyond it
Exploitation
EPSS 0.34%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 29.1% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 May 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
OTP
package
public_key |
affected 1.16 and later (unaffected from 1.17.1.3, unaffected from 1.20.3.1, unaffected from 1.21.1)
Other versions: unaffected
|
|
OTP
package
otp |
affected 27.0 and later (unaffected from 27.3.4.12, unaffected from 28.5.0.1, unaffected from 29.0.1)
Other versions: unaffected
|
|
OTP
package
erlang/otp |
affected 2b1a742c651b90f8a7a1fb2ddde73f29915ea376 and later (unaffected from 7995f1fdaee3da569bb810358ce0f546471d169b, unaffected from b3870e02405c709a872b01ba6086065620cdfe76)
Other versions: unaffected
|
Is my server affected?
Find the installed version of otp and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i otp
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-42791 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-42791RHEL, Rocky, Alma, Fedora
rpm -q otp
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-42791Alpine
apk list --installed | grep -i otpWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-42791
trivy image --scanners vuln IMAGE | grep CVE-2026-42791
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- OCSP Responder Certificate Accepted After Expiry in public_key github.com · vendor advisory, related
Patches and release notes
- Fix commit 7995f1f in erlang/otp github.com · patch
- Fix commit b3870e0 in erlang/otp github.com · patch
Other references
- EEF CNA record for CVE-2026-42791 cna.erlef.org · related
- OSV record EEF-CVE-2026-42791 osv.dev · related
- Erlang/OTP version ordering erlang.org
- Introducing commit 2b1a742 in erlang/otp github.com · related
Source: the record CVE-2026-42791 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse