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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.1
- **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:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-295
- **Published:** 2026-10-26T13:49:29.374Z
- **Modified:** 2026-11-19T08:06:44.899Z

## Who should check

- Anyone running benoitc hackney \>= 1.24.0, \< 4.9.0
- Anyone running benoitc hackney \>= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, \< 915eb5737e9c489d8fc22eec8cdae30e9b027be4

## 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

- benoitc hackney: \>= 1.24.0, \< 4.9.0 (cvelist)
- benoitc hackney: \>= d8a9afcf5c3849904274e2eba1df56c63d1a1a0c, \< 915eb5737e9c489d8fc22eec8cdae30e9b027be4 (cvelist)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/benoitc/hackney/releases/tag/4.9.0>
- patch: <https://github.com/benoitc/hackney/pull/978>
- patch: <https://github.com/benoitc/hackney/commit/d8a9afcf5c3849904274e2eba1df56c63d1a1a0c>
- patch: <https://github.com/benoitc/hackney/commit/915eb5737e9c489d8fc22eec8cdae30e9b027be4>
- other: <https://cna.erlef.org/cves/CVE-2026-115693.html>
- other: <https://osv.dev/vulnerability/EEF-CVE-2026-115693>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-115693>

HTML: <https://flawdb.com/CVE-2026-115693> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-115693>
