CVE-2026-115693
published critical CVSS 4.0 · 9.1Custom cacerts or cacertfile do not restrict trust to the pinned CA in hackney
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| benoitc | — | hackney1.24.0 to < 4.9.0 · Other versions: unaffected | Affected | Not stated | EEF |
| benoitc | — | benoitc/hackneyhackney · d8a9afcf5c3849904274e2eba1df56c63d1a1a0c to < 915eb5737e9c489d8fc22eec8cdae30e9b027be4 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- EEF · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| benoitc | hackney | 1.24.0 to < 4.9.0 (affected · semver)Default: unaffected | EEF · cna |
| benoitc | hackney | d8a9afcf5c3849904274e2eba1df56c63d1a1a0c to < 915eb5737e9c489d8fc22eec8cdae30e9b027be4 (affected · git)Default: unaffected | EEF · cna |
Weaknesses
1- CWE-295 CWE-295 Improper Certificate Validation
References
6- EEF CNA record for CVE-2026-115693 https://cna.erlef.org/cves/CVE-2026-115693.html
- Fix commit 915eb57 in benoitc/hackney https://github.com/benoitc/hackney/commit/915eb5737e9c489d8fc22eec8cdae30e9b027be4
- Introducing commit d8a9afc in benoitc/hackney https://github.com/benoitc/hackney/commit/d8a9afcf5c3849904274e2eba1df56c63d1a1a0c
- Drop the certifi partial_chain when the caller pins cacerts or cacertfile (benoitc/hackney#978) https://github.com/benoitc/hackney/pull/978
- hackney 4.9.0 release notes https://github.com/benoitc/hackney/releases/tag/4.9.0
- OSV record EEF-CVE-2026-115693 https://osv.dev/vulnerability/EEF-CVE-2026-115693
Provider assertions
2EEF · cna
Custom cacerts or cacertfile do not restrict trust to the pinned CA in hackney
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 75ae4f09c4a107ccfa5e708b5233f316d506f74174dd31a09800a08b70f0b6e7
- Ingested
- 19 Nov 2026, 08:22:50 UTC
- Source record
- Official CVE record