UBUNTU-CVE-2026-42791 (CVE-2026-42791)

Vulnerability from osv_ubuntu – Published: 2026-05-27 14:16 – Updated: 2026-10-06 20:51 – Source website
VLAI
Details

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.


{
  "affected": [
    {
      "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"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "erlang",
        "purl": "pkg:deb/ubuntu/erlang@1:27.3.4.1+dfsg-1ubuntu0.1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "erlang",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-asn1",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-base",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-common-test",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-crypto",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-debugger",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-dialyzer",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-diameter",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-edoc",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-eldap",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-et",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-eunit",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-examples",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-ftp",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-inets",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-jinterface",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-megaco",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-mnesia",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-mode",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-nox",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-observer",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-odbc",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-os-mon",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-parsetools",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-public-key",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-reltool",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-runtime-tools",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-snmp",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-src",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-ssh",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-ssl",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-syntax-tools",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-tftp",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-tools",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-wx",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-x11",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          },
          {
            "binary_name": "erlang-xmerl",
            "binary_version": "1:27.3.4.6+dfsg-1ubuntu0.1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "erlang",
        "purl": "pkg:deb/ubuntu/erlang@1:27.3.4.6+dfsg-1ubuntu0.1?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "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"
      ]
    }
  ],
  "aliases": [],
  "details": "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 \u2014 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\u00a029.0.1, OTP\u00a028.5.0.1 and OTP\u00a027.3.4.12, corresponding to public_key from 1.16 before 1.21.1, 1.20.3.1 and 1.17.1.3.",
  "id": "UBUNTU-CVE-2026-42791",
  "modified": "2026-10-06T20:51:20Z",
  "published": "2026-05-27T14:16:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2026-42791"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-42791"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/erlang/otp/security/advisories/GHSA-cjxj-wj6x-3fff"
    },
    {
      "type": "REPORT",
      "url": "https://cna.erlef.org/cves/CVE-2026-42791.html"
    },
    {
      "type": "REPORT",
      "url": "https://osv.dev/vulnerability/EEF-CVE-2026-42791"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/erlang/otp/commit/7995f1fdaee3da569bb810358ce0f546471d169b"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/erlang/otp/commit/b3870e02405c709a872b01ba6086065620cdfe76"
    },
    {
      "type": "REPORT",
      "url": "https://www.erlang.org/doc/system/versions.html#order-of-versions"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "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_V4"
    },
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2026-42791"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…