CVE-2026-92388

FTP wildcard write callback mixup

Published Oct 20, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
When an FTP wildcard `LIST` operation fails, libcurl omits the restoration
path meant for successful listings, leaving the write callback set to the
internal listing parser and the write callback data pointing directly to the
easy handle. Subsequent reuse of this handle triggers an immediate crash, and
cloning it via `curl_easy_duphandle()` copies this corrupted state into the
duplicate. If the original handle is subsequently freed, executing a transfer
on the cloned handle causes a heap use-after-free read against the dangling
handle reference; alternatively, reusing the original or cloned handle while
changing only `CURLOPT_WRITEDATA` (and omitting `CURLOPT_WRITEFUNCTION`)
results in type confusion, forcing the internal parser to interpret incoming
server response bytes into memory at the application-supplied write data
pointer.

Analysis

AI-generated

Technical impact

When an FTP wildcard LIST command fails, libcurl mistakenly leaves the write callback pointing to its internal listing parser and sets the callback data to the easy handle itself. Reusing that handle then causes an immediate crash, while duplicating it copies this corrupted state into the duplicate handle. If the original handle is freed beforehand, performing another transfer with the cloned handle triggers a heap use‑after‑free read. Alternatively, changing only CURLOPT_WRITEDATA without setting CURLOPT_WRITEFUNCTION leads to type confusion, causing the internal parser to interpret server response bytes into memory at the application‑supplied write data pointer. A remote malicious FTP server can trigger the initial failure, so this flaw can result in application crashes and uncontrolled memory access, effectively denying service or corrupting memory in any program that uses libcurl for FTP wildcard operations.

Affected Systems

All systems that embed the curl library and have not applied the latest update are affected. The vulnerability is present in every released version of curl prior to the fix referenced by CVE‑2026‑92388. It can impact any environment where curl is used to perform FTP transfers that enable wildcard matching.

Risk and Exploitability

The CVSS score of 9.1 indicates critical severity. An EPSS score of 0.00257 indicates a very low probability of exploitation, and the vulnerability is not currently listed in the CISA KEV catalog. The attack vector is inferred to be remote, requiring a malicious FTP server to communicate with the vulnerable curl client over the network. An attacker with control over the server can trigger the failure and cause the application to crash or corrupt memory. Because the vulnerability relies on a server‑initiated failure and incorrect internal state handling, it is considered moderately exploitable under normal conditions.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest stable release of curl that contains the fix for CVE‑2026‑92388.
  • If an update cannot be applied immediately, configure applications to avoid cloning or reusing curl handles that may have encountered a wildcard listing failure.
  • For environments that rely on FTP wildcard operations, consider disabling that feature or implementing a firewall rule to block untrusted FTP servers.
  • Monitor application logs for crash or abnormal behavior; if crashes persist, investigate updating curl or patching the application.

Generated by OpenCVE AI on October 30, 2026 at 15:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8927-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8932-1 curl vulnerabilities
Ubuntu USN Ubuntu USN USN-8927-2 curl vulnerabilities
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H'}

Type Values Removed Values Added
Description A flaw was found in curl. A remote malicious server can cause a Denial of Service (DoS) or memory corruption in applications that enable File Transfer Protocol (FTP) wildcard matching. When a wildcard listing operation fails, curl does not properly reset its internal callback handlers before the connection handle is reused or duplicated. An application that subsequently reuses or clones this corrupted handle may experience an immediate application crash or unsafe memory access. When an FTP wildcard `LIST` operation fails, libcurl omits the restoration path meant for successful listings, leaving the write callback set to the internal listing parser and the write callback data pointing directly to the easy handle. Subsequent reuse of this handle triggers an immediate crash, and cloning it via `curl_easy_duphandle()` copies this corrupted state into the duplicate. If the original handle is subsequently freed, executing a transfer on the cloned handle causes a heap use-after-free read against the dangling handle reference; alternatively, reusing the original or cloned handle while changing only `CURLOPT_WRITEDATA` (and omitting `CURLOPT_WRITEFUNCTION`) results in type confusion, forcing the internal parser to interpret incoming server response bytes into memory at the application-supplied write data pointer.
Title curl: curl: FTP wildcard write callback mixup FTP wildcard write callback mixup
References
Type Values Removed Values Added
First Time appeared Curl
Curl curl
Vendors & Products Curl
Curl curl
Type Values Removed Values Added
Description A flaw was found in curl. A remote malicious server can cause a Denial of Service (DoS) or memory corruption in applications that enable File Transfer Protocol (FTP) wildcard matching. When a wildcard listing operation fails, curl does not properly reset its internal callback handlers before the connection handle is reused or duplicated. An application that subsequently reuses or clones this corrupted handle may experience an immediate application crash or unsafe memory access.
Title curl: curl: FTP wildcard write callback mixup
Weaknesses CWE-416
References
Metrics threat_severity

None

cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
curl
Published
Updated
Oct 30, 2026, 12:13 PM
Reserved
Sep 16, 2026, 8:12 AM
Status
Awaiting Analysis
Published
Oct 20, 2026, 9:17 PM
Modified
Oct 30, 2026, 1:20 PM
Severity
Moderate
Public date
Oct 14, 2026, 12:00 PM