CVE-2026-115693
Custom cacerts or cacertfile do not restrict trust to the pinned CA in hackney
Mitigation
- Upgrade hackney to 4.9.0 or later.
- Upgrade hackney to 915eb5737e9c489d8fc22eec8cdae30e9b027be4 or later.
- Vendor workaround: Pass your own {partial_chain, Fun} in ssl_options alongside cacerts or cacertfile. A caller-supplied partial_chain replaces hackney's in the merge, and a callback that returns unknown_ca makes OTP validate against the configured cacerts only.
Who should check
- Anyone running benoitc hackney >= 1.24.0, < 4.9.0
- Anyone running benoitc hackney >= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, < 915eb5737e9c489d8fc22eec8cdae30e9b027be4
Vulnerability facts
- Affected
- benoitc hackney >= 1.24.0, < 4.9.0; benoitc hackney >= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, < 915eb5737e9c489d8fc22eec8cdae30e9b027be4
- Fixed in
- benoitc hackney 4.9.0, benoitc hackney 915eb5737e9c489d8fc22eec8cdae30e9b027be4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 9.1 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Attack requirements: Present
- Privileges required: None
- User interaction: None
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-295
- Modified
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.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-115693. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-115693.md Affected: benoitc hackney >= 1.24.0, < 4.9.0; benoitc hackney >= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, < 915eb5737e9c489d8fc22eec8cdae30e9b027be4 Fixed in: benoitc hackney 4.9.0, benoitc hackney 915eb5737e9c489d8fc22eec8cdae30e9b027be4 Steps: 1. Search this machine and project for benoitc hackney: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-115693 being exploited?
There is no confirmed exploitation: CVE-2026-115693 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-115693?
Critical: CVSS 9.1 (v4.0, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-115693?
benoitc hackney >= 1.24.0, < 4.9.0; benoitc hackney >= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, < 915eb5737e9c489d8fc22eec8cdae30e9b027be4.
Is there a fix for CVE-2026-115693?
Yes. Fixed in benoitc hackney 4.9.0, benoitc hackney 915eb5737e9c489d8fc22eec8cdae30e9b027be4. Upgrade hackney to 4.9.0 or later. Upgrade hackney to 915eb5737e9c489d8fc22eec8cdae30e9b027be4 or later. Vendor workaround: Pass your own {partial_chain, Fun} in ssl_options alongside cacerts or cacertfile. A caller-supplied partial_chain replaces hackney's in the merge, and a callback that returns unknown_ca makes OTP validate against the configured cacerts only.
How do I check if I'm affected by CVE-2026-115693?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.