erlang — security advisory
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.
- Products
- erlang
- Affected versions
- 1:27.3+dfsg-1ubuntu1, 1:27.3+dfsg-1ubuntu1.1, 1:27.3.4.1+dfsg-1, 1:27.3.4.1+dfsg-1build1, 1:27.3.4.1+dfsg-1ubuntu0.1, 1:27.3.4.3+dfsg-1, 1:27.3.4.4+dfsg-1, 1:27.3.4.6+dfsg-1, 1:27.3.4.6+dfsg-1ubuntu0.1
- Fixed versions
- 1:27.3.4.6+dfsg-1ubuntu0.2
- CVEs
- CVE-2026-42791
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 28 Oct 2026, 10:04 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2026-42791
erlang
Fixed versions: Not specified
erlang
Fixed versions: 1:27.3.4.6+dfsg-1ubuntu0.2
Complete source record
{
"id": "b70a96c47eda000443a900dbbb8004aa271542dac8e0e3973a0e147c4d1b29ab",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-42791",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-42791",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2026-42791",
"products": [
{
"name": {
"value": "erlang",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1:27.3+dfsg-1ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1:27.3+dfsg-1ubuntu1.1",
"evidence": "/affected/0/versions"
},
{
"value": "1:27.3.4.1+dfsg-1",
"evidence": "/affected/0/versions"
},
{
"value": "1:27.3.4.1+dfsg-1build1",
"evidence": "/affected/0/versions"
},
{
"value": "1:27.3.4.1+dfsg-1ubuntu0.1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "erlang",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1:27.3.4.6+dfsg-1ubuntu0.2",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": [
{
"value": "1:27.3.4.1+dfsg-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "1:27.3.4.3+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:27.3.4.4+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:27.3.4.6+dfsg-1",
"evidence": "/affected/1/versions"
},
{
"value": "1:27.3.4.6+dfsg-1ubuntu0.1",
"evidence": "/affected/1/versions"
}
]
}
],
"severity": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-42791",
"aliases": [
"UBUNTU-CVE-2026-42791"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "erlang",
"purl": "pkg:deb/ubuntu/erlang?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1:27.3+dfsg-1ubuntu1",
"1:27.3+dfsg-1ubuntu1.1",
"1:27.3.4.1+dfsg-1",
"1:27.3.4.1+dfsg-1build1",
"1:27.3.4.1+dfsg-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42791.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "erlang",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-asn1",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-base",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-common-test",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-crypto",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-debugger",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-dialyzer",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-diameter",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-edoc",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-eldap",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-et",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-eunit",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-examples",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-ftp",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-inets",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-jinterface",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-megaco",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-mnesia",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-mode",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-nox",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-observer",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-odbc",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-os-mon",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-parsetools",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-public-key",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-reltool",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-runtime-tools",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-snmp",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-src",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-ssh",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-ssl",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-syntax-tools",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-tftp",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-tools",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-wx",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-x11",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
},
{
"binary_name": "erlang-xmerl",
"binary_version": "1:27.3.4.1+dfsg-1ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1:27.3.4.6+dfsg-1ubuntu0.2"
}
]
}
],
"package": {
"name": "erlang",
"purl": "pkg:deb/ubuntu/erlang?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"1:27.3.4.1+dfsg-1build1",
"1:27.3.4.3+dfsg-1",
"1:27.3.4.4+dfsg-1",
"1:27.3.4.6+dfsg-1",
"1:27.3.4.6+dfsg-1ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-42791.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "erlang",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-asn1",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-base",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-common-test",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-crypto",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-debugger",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-dialyzer",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-diameter",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-edoc",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-eldap",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-et",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-eunit",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-examples",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-ftp",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-inets",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-jinterface",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-megaco",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-mnesia",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-mode",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-nox",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-observer",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-odbc",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-os-mon",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-parsetools",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-public-key",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-reltool",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-runtime-tools",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-snmp",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-src",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-ssh",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-ssl",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-syntax-tools",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-tftp",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-tools",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-wx",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-x11",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
},
{
"binary_name": "erlang-xmerl",
"binary_version": "1:27.3.4.6+dfsg-1ubuntu0.2"
}
],
"availability": "No subscription required"
}
}
],
"modified": "2026-10-08T19:47:10.138142198Z",
"provider": "osv",
"upstream": [
"CVE-2026-42791"
],
"references": [
"https://ubuntu.com/security/CVE-2026-42791",
"https://www.cve.org/CVERecord?id=CVE-2026-42791",
"https://github.com/erlang/otp/security/advisories/GHSA-cjxj-wj6x-3fff",
"https://cna.erlef.org/cves/CVE-2026-42791.html",
"https://osv.dev/vulnerability/EEF-CVE-2026-42791",
"https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b",
"https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76",
"https://www.erlang.org/doc/system/versions.html#order-of-versions",
"https://ubuntu.com/security/notices/USN-8901-1"
]
},
"related_cves": [
{
"value": "CVE-2026-42791",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 104544,
"published_at": "2026-05-27T14:16:00+00:00"
}