# JLSEC-2026-1662: When an FTP wildcard `LIST` operation fails, libcurl omits the restoration path meant for...

- Severity: Critical 9.1 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:35:28.773Z
- Modified: 2026-12-01T15:58:26.741Z
- Related: CVE-2026-92388, EUVD-2026-105318, GHSA-r22r-3m6c-qv5r

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

(As written by Julia Security Advisories.)

## Affected

- CURL_jll (Julia): all versions
- LibCURL_jll (Julia): before 8.23.0+0

## References

- <https://curl.se/docs/CVE-2026-92388.html> (web)
- <https://curl.se/docs/CVE-2026-92388.json> (web)
- <https://github.com/advisories/GHSA-r22r-3m6c-qv5r> (web)
- <https://hackerone.com/reports/4022070> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-92388> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1662](https://osv.dev/vulnerability/JLSEC-2026-1662), CC-BY-4.0, modified 2026-12-01

---

Page: https://cve.day/JLSEC-2026-1662 · Whole record: https://cve.day/JLSEC-2026-1662.json · Rebuilt by cve.day 2026-12-01T16:07:11.365Z
