GHSA-r22r-3m6c-qv5r
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLure libcurl app to malicious FTP server
-
DeliveryFail FTP wildcard LIST operation
-
ExploitLeave write callback/data corrupted
-
ExecutionApplication reuses or duphandle()s handle
-
PersistTrigger use-after-free read or type confusion
-
ImpactCorrupt application memory or crash
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the host application to use libcurl's FTP wildcard matching and perform a wildcard LIST that fails, which leaves the write callback set to the internal listing parser and the write-callback data pointing at the easy handle. Two paths follow: (1) heap use-after-free read when the original handle is cloned via curl_easy_duphandle() and then freed while a transfer runs on the clone; (2) type confusion when the original or cloned handle is reused changing only CURLOPT_WRITEDATA while omitting CURLOPT_WRITEFUNCTION, causing the parser to write server response bytes into the application-supplied write-data pointer. Limiting factors: the application must actually use the FTP wildcard feature (not the common case for most libcurl consumers), the wildcard LIST must fail, and the handle must be reused or duplicated afterward; applications that do not use FTP wildcard LIST transfers are not exposed. |
| Impact | CVSS 9.1 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H) rates this critical on the strength of a remote, unauthenticated, low-complexity vector with high integrity and availability impact (a CWE-416 use-after-free plus type confusion in libcurl's FTP wildcard LIST handling). The decision label is act_now and a vendor patch is available. However, the real-world signals temper the raw score: EPSS is only 0.29% (20th percentile), there is no CISA KEV listing, and the only exploit artifact is a HackerOne reference, not confirmed working exploit code. The CVSS AC:L understates reality - exploitation is not a plain unauthenticated request against a default config; it requires that the host application actually use libcurl's FTP wildcard matching, that a wildcard LIST fail, and that the handle then be reused or cloned via curl_easy_duphandle(). This gap between the network/low-complexity CVSS vector and the application-specific trigger chain described in the write-up should be verified against how a given deployment uses libcurl. Net: a genuinely serious memory-corruption flaw in a ubiquitous library warranting prompt patching per the act_now label, but the low EPSS and conditional trigger suggest exposure is concentrated in the subset of applications using FTP wildcard transfers rather than broad, automatable mass exploitation. |
| Exploit ScenarioDerived | An application built on libcurl uses FTP wildcard matching and connects to a malicious or attacker-influenced FTP server that causes the wildcard LIST to fail, leaving the write callback pointed at the internal listing parser and the callback data at the easy handle. When the application later reuses or duplicates that handle, the attacker-controlled server response bytes drive a heap use-after-free read or a type confusion that writes incoming bytes into the application-supplied write-data pointer. A public PoC reference exists (HackerOne #4022070); it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Oct 30, 2026
Heap use-after-free and type confusion in libcurl's FTP wildcard LIST handling can crash the host application or corrupt memory when an easy handle is reused or duplicated after a wildcard listing fails. Rated CVSS 9.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H) with high integrity and availability impact, exposure is conditional: the application must enable FTP wildcard matching, the wildcard LIST must fail, and the handle must then be reused or passed to curl_easy_duphandle(). No public exploit has been identified at time of analysis (EPSS 0.29%, 20th percentile), while the vuln.today decision label is act_now and a vendor patch is available.
Earlier versions of this analysis (1)
FTP wildcard downloads in libcurl 7.21.0 through 8.22.0 can misroute transferred file data to the wrong application-supplied write callback, giving limited confidentiality and integrity impact (CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N) to unauthenticated remote attackers. The flaw is only reachable when a consuming application explicitly enables CURLOPT_WILDCARDMATCH with a glob-expanded FTP URL - a non-default option used by a small minority of integrations - and when the client fetches multiple matching files from an FTP server whose responses the attacker can influence or control; a default curl/libcurl build that does not use FTP wildcards is not exposed. The curl project rates this as LOW severity, the fix ships in curl/libcurl 8.23.0, and no public exploit has been identified at time of analysis; no EPSS score, KEV listing, or public proof-of-concept is present in the available data.
RemediationAI
Patch status is patch available from vendor; the provided data does not specify an exact fixed release, so confirm the patched libcurl version in the upstream advisory at https://curl.se/docs/CVE-2026-92388.html and the curl security page at https://curl.se/docs/security.html, then apply the corresponding distribution updates from Red Hat (RHSA-2026:82895, https://access.redhat.com/errata/RHSA-2026:82895) or Ubuntu (USN-8927-1, https://ubuntu.com/security/notices/USN-8927-1) where libcurl is packaged. Because exposure depends on how the host application drives the handle rather than on the network-facing peer alone, the actionable compensating controls are code-level: do not enable FTP wildcard matching (CURLOPT_WILDCARDMATCH) in applications that do not need it, which removes exposure entirely at the cost of losing wildcard listing functionality; and treat any easy handle that has just completed a failed wildcard LIST as poisoned - do not reuse it for further transfers and do not pass it to curl_easy_duphandle(), instead release it with curl_easy_cleanup() and build a fresh handle, at the cost of re-establishing connections, DNS cache and other handle state. Always set CURLOPT_WRITEFUNCTION explicitly alongside CURLOPT_WRITEDATA so a stale internal callback cannot be inherited by a reused or cloned handle. Upgrading to a fixed libcurl removes the flaw; the handle-hygiene measures reduce but do not eliminate exposure.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The defect sits in libcurl's FTP wildcard matching feature (CURLOPT_WILDCARDMATCH), where the library installs its own internal listing parser as the write callback for the LIST transfer and restores the application's write callback and CURLOPT_WRITEDATA only on the success path. When the wildcard LIST fails, that restoration is skipped, leaving the easy handle with the internal parser as write callback and the write-callback data pointing directly at the easy handle itself - persisted corrupted handler state rooted in a use-after-free weakness (CWE-416). Three outcomes follow from that state: an immediate crash when the handle is reused; curl_easy_duphandle() copying the corrupted state into the duplicate so that freeing the original while a transfer runs on the clone produces a heap use-after-free read against the dangling handle reference; and, when only CURLOPT_WRITEDATA is changed without resetting CURLOPT_WRITEFUNCTION, type confusion in which the internal parser interprets incoming FTP server response bytes into memory at the application-supplied write-data pointer. The assessed vector rates attack complexity as high precisely because these application-side preconditions must align; this is a library-state bug reachable through a failed listing, not an unconditional remote memory-corruption primitive, and applications that never perform FTP wildcard LIST transfers are not exposed.
Know when Curl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
Sources disagree (Medium–Critical)AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Attacker-controlled FTP server over the network (AV:N, PR:N), but the flaw needs a specific failed-wildcard-LIST-then-handle-reuse sequence, so AC:H; memory corruption and crash give I:H/A:H with no confidentiality loss.
vuln.today treats the vendor’s rating as authoritative. A higher third-party CVSS (e.g. CISA-ADP) is shown for transparency but does not drive the headline severity.
CVSS VectorVendor
Lifecycle Timeline
3Description PRE-NVD
Executive ViewAI
A critical memory corruption vulnerability in libcurl's FTP wildcard listing feature can crash or corrupt applications that reuse or duplicate failed FTP handles, potentially causing service outages and data integrity issues. While no public exploit exists, the conditionality of exploitation limits immediate risk, but leadership should prioritize patching due to the high impact and availability of a vendor fix.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.
Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
curl 7.75.0 through 7.76.1 suffers from a use-after-free vulnerability resulting in already freed memory being used when
Stack-based buffer overflow in the Curl_sasl_create_digest_md5_message function in lib/curl_sasl.c in curl and libcurl 7
The sanitize_cookie_path function in cURL and libcurl 7.31.0 through 7.41.0 does not properly calculate an index, which
curl < 7.84.0 supports "chained" HTTP compression algorithms, meaning that a serverresponse can be compressed multiple t
When curl < 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the
A vulnerability exists in curl <7.87.0 HSTS check that could be bypassed to trick it to keep using HTTP. Rated high seve
When doing HTTP(S) transfers, libcurl might erroneously use the read callback (`CURLOPT_READFUNCTION`) to ask for data t
Curl_smtp_escape_eob in lib/smtp.c in curl 7.54.1 to and including curl 7.60.0 has a heap-based buffer overflow that mig
A malicious server can serve excessive amounts of `Set-Cookie:` headers in a HTTP response to curl and curl < 7.84.0 sto
1. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack co
A cleartext transmission of sensitive information vulnerability exists in curl <v7.88.0 that could cause HSTS functional
A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly re
EUVD-2026-105318
NVD
CVE.org
EPSS
VulDB
Exploit-DB