cve.bz

CVE-2026-87865 curl curl: Improper Certificate Validation

7.4 highEPSS 0.6%

High (7.4) in curl curl. EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
When libcurl uses libssh2 with a hashed `known_hosts` file, an unrelated initial entry can cause host key validation to report a key *mismatch* as a *missing* key to the `CURLOPT_SSH_KEYFUNCTION` callback.

Severity

CVSS 3.1

7.4 high
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.6% (unchanged from 0.6% a week ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-10-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-87865 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-87865?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-87865?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-87865 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
curlfrom 8.22.0 through 8.22.0
curlfrom 8.21.0 through 8.21.0
curlfrom 8.20.0 through 8.20.0
curlfrom 8.19.0 through 8.19.0
curlfrom 8.18.0 through 8.18.0
curlfrom 8.17.0 through 8.17.0
curlfrom 8.16.0 through 8.16.0
curlfrom 8.15.0 through 8.15.0
curlfrom 8.14.1 through 8.14.1
curlfrom 8.14.0 through 8.14.0
curlfrom 8.13.0 through 8.13.0
curlfrom 8.12.1 through 8.12.1
curlfrom 8.12.0 through 8.12.0
curlfrom 8.11.1 through 8.11.1
curlfrom 8.11.0 through 8.11.0
curlfrom 8.10.1 through 8.10.1
curlfrom 8.10.0 through 8.10.0
curlfrom 8.9.1 through 8.9.1
curlfrom 8.9.0 through 8.9.0
curlfrom 8.8.0 through 8.8.0
curlfrom 8.7.1 through 8.7.1
curlfrom 8.7.0 through 8.7.0
curlfrom 8.6.0 through 8.6.0
curlfrom 8.5.0 through 8.5.0
curlfrom 8.4.0 through 8.4.0
curlfrom 8.3.0 through 8.3.0
curlfrom 8.2.1 through 8.2.1
curlfrom 8.2.0 through 8.2.0
curlfrom 8.1.2 through 8.1.2
curlfrom 8.1.1 through 8.1.1
curlfrom 8.1.0 through 8.1.0
curlfrom 8.0.1 through 8.0.1
curlfrom 8.0.0 through 8.0.0
curlfrom 7.88.1 through 7.88.1
curlfrom 7.88.0 through 7.88.0
curlfrom 7.87.0 through 7.87.0
curlfrom 7.86.0 through 7.86.0
curlfrom 7.85.0 through 7.85.0
curlfrom 7.84.0 through 7.84.0
curlfrom 7.83.1 through 7.83.1
curlfrom 7.83.0 through 7.83.0
curlfrom 7.82.0 through 7.82.0
curlfrom 7.81.0 through 7.81.0
curlfrom 7.80.0 through 7.80.0
curlfrom 7.79.1 through 7.79.1
curlfrom 7.79.0 through 7.79.0
curlfrom 7.78.0 through 7.78.0
curlfrom 7.77.0 through 7.77.0
curlfrom 7.76.1 through 7.76.1
curlfrom 7.76.0 through 7.76.0
curlfrom 7.75.0 through 7.75.0
curlfrom 7.74.0 through 7.74.0
curlfrom 7.73.0 through 7.73.0
curlfrom 7.72.0 through 7.72.0
curlfrom 7.71.1 through 7.71.1
curlfrom 7.71.0 through 7.71.0
curlfrom 7.70.0 through 7.70.0
curlfrom 7.69.1 through 7.69.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13curlno fix listedDEBIAN-CVE-2026-87865
Debian14curl8.23.0~rc1-1DEBIAN-CVE-2026-87865
Ubuntu26.04:LTScurl8.18.0-1ubuntu2.8UBUNTU-CVE-2026-87865 USN-8927-1
Ubuntu26.10curl8.20.0-2ubuntu11.1UBUNTU-CVE-2026-87865 USN-8927-2
Red Hathummingbird:1curl, libcurl, libcurl-devel and 1 more0:8.23.0-0.1.hum1RHSA-2026:82895
openSUSETumbleweedcurl8.23.0-1.1openSUSE-SU-2026:12150-1
Alpinev3.23, v3.24curl8.23.0-r0ALPINE-CVE-2026-87865
Azure Linux3cmakeno fix listedAZL-109932
Azure Linux3curl8.11.1-14AZL-109941
Azure Linux3mysqlno fix listedAZL-110049
Azure Linux3rustno fix listedAZL-110181 AZL-110214
Azure Linux3tensorflowno fix listedAZL-110277

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

This vulnerability is assessed as Low impact because exploitation requires a specialized non-default configuration and does not affect standard curl command-line usage. The issue is restricted to custom applications that consume libcurl compiled with libssh2 and explicitly configure a custom host key callback alongside hashed host records. Because trust-on-first-use callback logic must be custom-implemented and an attacker must be able to intercept SSH network traffic, default system installations face minimal operational risk.

ProductPackageStateAdvisory
Red Hat Hardened Imagescurl-main-8.23.0-0.1.hum1Fixed 2026-10-14RHSA-2026:82895
Red Hat Enterprise Linux 10curlNot affected
Red Hat Enterprise Linux 10igvmNot affected
Red Hat Enterprise Linux 10rustNot affected
Red Hat Enterprise Linux 10s390utilsNot affected
Red Hat Enterprise Linux 10snphostNot affected
Red Hat Enterprise Linux 10trusteeNot affected
Red Hat Enterprise Linux 6curlNot affected
Red Hat Enterprise Linux 7curlNot affected
Red Hat Enterprise Linux 8curlNot affected
Red Hat Enterprise Linux 9curlNot affected
Red Hat Enterprise Linux 9rustNot affected
Red Hat Enterprise Linux 9snphostNot affected
Red Hat Hardened ImagesrustNot affected
Red Hat JBoss Core Servicesjbcs-httpd24-curlNot affected
Red Hat Satellite 6foremanNot affected
Red Hat Satellite 6openvox-agentNot affected
Red Hat Satellite 6puppet-agentNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-87865.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON