# CVE-2026-59251: Denial of service via exponential certificate policy tree growth in path validation

- Severity: High 8.7 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 42% of CVEs (2026-12-01)
- Published: 2026-07-27T15:30:47.097Z
- Modified: 2026-11-25T06:30:26.155Z
- Also known as: EEF-CVE-2026-59251, GHSA-622p-qfh6-c352
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: EEF

## Description

Allocation of resources without limits in Erlang/OTP public_key certificate path validation allows a remote unauthenticated attacker to cause denial of service by sending a crafted X.509 certificate chain during the TLS handshake.

During RFC 5280 policy processing in public_key:pkix_path_validation/3, the certificate policy tree maintained by pubkey_policy_tree grows without an upper bound. When a certificate chain contains M policies per certificate and K certificates, the tree grows on the order of M^K nodes because pubkey_policy_tree:add_leaves/2 and pubkey_policy_tree:add_leaf_siblings/2 extend the tree per policy per certificate. A modest chain with many policies per certificate is enough to pin BEAM schedulers and exhaust the node's memory, taking down the entire VM. The attacker only needs to be able to present a certificate chain to the victim, which is the normal precondition for a TLS handshake, so exploitation succeeds against any incoming or outgoing TLS connection that validates the peer's chain (the default for SSL/TLS clients and mutual-TLS servers).

This is the same vulnerability class as OpenSSL's X509_verify_cert policy tree DoS.

This vulnerability is associated with program files lib/public_key/src/pubkey_policy_tree.erl and program routines pubkey_policy_tree:add_leaves/2 and pubkey_policy_tree:add_leaf_siblings/2.

This issue affects OTP from OTP 26.2 before OTP 27.3.4.15, OTP 28.5.0.4, and OTP 29.0.4, corresponding to public_key from 1.15 before 1.17.1.5, 1.20.3.4, and 1.21.4.

(As written by CVE List.)

## Affected

- public_key: from 1.15 before *
- otp: from 26.2 before *
- erlang/otp: from 9d1dda7bad5a64b58c10a1554751689e94131a73 before *
- https://github.com/erlang/otp: from 9d1dda7bad5a64b58c10a1554751689e94131a73 before f04c6bba38de1cf1b1836a7d9a9fbe239bd939e8; before f8580fc117098c08165f46c26fd0750c5cfb2a90
- erlang erlang/otp: from 26.2 before 27.3.4.15; from 28.0 before 28.5.0.4; from 29.0 before 29.0.4
- erlang erlang/public_key: from 1.15 before 1.17.1.5; from 1.18 before 1.20.3.4; from 1.21 before 1.21.4

## Every score

- EEF: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/erlang/otp/security/advisories/GHSA-622p-qfh6-c352> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-59251.html> (patch, related, third-party-advisory, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-59251> (patch, related, third-party-advisory)
- <https://www.erlang.org/doc/system/versions.html#order-of-versions> (release-notes, web)
- <https://github.com/erlang/otp/commit/9d1dda7bad5a64b58c10a1554751689e94131a73> (related, web)
- <https://github.com/erlang/otp/commit/f04c6bba38de1cf1b1836a7d9a9fbe239bd939e8> (fix, patch)
- <https://github.com/erlang/otp/commit/f8580fc117098c08165f46c26fd0750c5cfb2a90> (fix, patch)

## Sources

- CVE List: [CVE-2026-59251](https://www.cve.org/CVERecord?id=CVE-2026-59251), CVE Terms of Use, modified 2026-11-20
- Erlang Ecosystem Foundation: [EEF-CVE-2026-59251](https://osv.dev/vulnerability/EEF-CVE-2026-59251), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-59251](https://nvd.nist.gov/vuln/detail/CVE-2026-59251), Public domain, modified 2026-11-20

---

Page: https://cve.day/CVE-2026-59251 · Whole record: https://cve.day/CVE-2026-59251.json · Rebuilt by cve.day 2026-11-25T22:59:30.212Z
