# CVE-2026-115693: Custom cacerts or cacertfile do not restrict trust to the pinned CA in hackney

- Severity: Critical 9.1 (CVSS:4.0, scored by EEF) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- 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.32%, higher than 26% of CVEs (2026-12-01)
- Published: 2026-10-26T13:49:29.374Z
- Modified: 2026-11-25T06:30:16.825Z
- Also known as: EEF-CVE-2026-115693
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: EEF

## Description

Improper Certificate Validation vulnerability in hackney_ssl in benoitc hackney allows an on-path attacker to impersonate a server pinned to a private certificate authority via a certificate chain that ends in a publicly trusted root. hackney adds {partial_chain, fun hackney_ssl:partial_chain/1} to every verify_peer configuration. The callback returns any certificate in the peer chain whose public key matches a root in the bundled certifi store as the trust anchor, and OTP honours that callback over the configured cacerts. hackney_ssl:merge_ssl_opts/3 kept the callback when the caller replaced the trust store with cacerts or cacertfile in ssl_options, so a connection pinned to a private CA still accepted any chain that carried a publicly trusted root.

The hostname check still applies, so the attacker needs a publicly trusted certificate for the pinned hostname.

This issue affects hackney: from 1.24.0 before 4.9.0.

(As written by CVE List.)

## Affected

- hackney: from 1.24.0 before 4.9.0
- benoitc/hackney: from d8a9afcf5c3849904274e2eba1df56c63d1a1a0c before 915eb5737e9c489d8fc22eec8cdae30e9b027be4
- hackney (Hex): from 1.24.0 before 4.9.0
- https://github.com/benoitc/hackney: from d8a9afcf5c3849904274e2eba1df56c63d1a1a0c before 915eb5737e9c489d8fc22eec8cdae30e9b027be4

## Every score

- EEF: CVSS:4.0 9.1 Critical `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- Erlang Ecosystem Foundation: CVSS:4.0 `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## References

- <https://github.com/benoitc/hackney/releases/tag/4.9.0> (advisory, related, vendor-advisory)
- <https://cna.erlef.org/cves/CVE-2026-115693.html> (related, web)
- <https://osv.dev/vulnerability/EEF-CVE-2026-115693> (related)
- <https://github.com/benoitc/hackney/pull/978> (related, web)
- <https://github.com/benoitc/hackney/commit/d8a9afcf5c3849904274e2eba1df56c63d1a1a0c> (related, web)
- <https://github.com/benoitc/hackney/commit/915eb5737e9c489d8fc22eec8cdae30e9b027be4> (fix, patch)
- <https://hex.pm/packages/hackney> (package)

## Sources

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

---

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