The curl project on Wednesday shipped version 8.23.0. It fixes CVE-2026-92392, a high-severity bug that lets a malicious server corrupt memory on the client uploading to it, and, in a carefully staged proof of concept, run its own code there.
The flaw is a use-after-free in curl’s HTTP/2 upload handling. It affects the curl command-line tool and libcurl, the library that does the networking inside many other apps, from version 8.12.0 through 8.22.0. That covers every release since February 2025. curl rates it High on its own four-level scale and doesn’t publish CVSS scores. Lead developer Daniel Stenberg called it one of the worst curl vulnerabilities in a long time.
An AI helped find it. The advisory credits Anthropic researcher Luna working with Claude. Stenberg says the report came through Anthropic’s new OSS Scanner, which uses the company’s AI models to hunt for bugs.
How does a server attack its own client?
HTTP/2 runs several transfers over one connection at once. libcurl tracks each one with an object called an “easy handle,” which the app frees when the transfer ends.
The attack starts when curl uploads a file of roughly 135KB to a hostile server. The server sets the HTTP/2 window to zero, which tells curl to stop sending. It returns part of a response, then sends a RST_STREAM frame with the reason HTTP_1_1_REQUIRED or REFUSED_STREAM. That kills the transfer but leaves the connection open.
curl shuts the transfer down correctly, but leaves a stray pointer to its handle. The app frees the handle and then cleans up libcurl’s “multi handle,” the object that juggles concurrent transfers. During that cleanup, libcurl follows the stale pointer and downloads server data into the exact memory where the freed handle used to live.
In the proof of concept, curl also sends a request that leaks local memory addresses. Those addresses are what an attacker needs to get past address space layout randomization (ASLR), the OS defense that shuffles where code sits in memory. libcurl then calls a function pointer stored in that memory, now overwritten by the server, and runs the attacker’s code.
How worried should you be?
Not very, according to curl. The advisory lists the conditions for code execution:
- the target’s exact curl version and memory layout
- Its CPU architecture
- a compatible libc allocator and heap layout
- predictable nghttp2 and OpenSSL TLS 1.3 behavior around session tickets
- a pinned CA bundle
- two parallel transfers with precise timing
- a payload of about 23 bytes
The victim also has to choose to upload to the attacker’s server, and that server needs a valid certificate.
“The most likely outcome of an attempted attack is rather just a crash,” Stenberg wrote. That is why curl graded the bug High rather than Critical. No source reports exploitation in the wild.
The bug was reported on September 15, and curl’s security team confirmed it within hours. The project cut its release cycle from eight weeks to six to ship the fix. Stefan Eissing wrote the patch. The release carries 24 security fixes and 281 bug fixes in total.
Anthropic opened OSS Scanner to open-source projects on October 8. It is a free, opt-in service whose reports are fully model-generated, without human review. The launch post quoted Stenberg saying the scanner had found several curl issues, including one of the worst in years. It’s a reversal from July 2025, when he complained that AI-generated junk was flooding curl’s bug bounty.
curl classifies the flaw as a C mistake, one that a memory-safe language would likely have avoided. Stenberg says a rewrite isn’t happening. Instead, the project is replacing internal pointers to handles with transfer IDs that are looked up when needed.
The fix is curl 8.23.0, also lists fixed builds on older branches: 8.14.3, 8.16.2, and 8.20.2. Admins can apply the patch commit to a local build. Until then, curl’s advice is to stop using HTTP/2, which, in the tool, means the --http1.1 option.
libcurl often ships inside other software without being advertised, the advisory warns. Many systems will get the fix only when their OS vendor or app developer updates the bundled copy.
Community Discussion
Join the conversation. Ask questions, share solutions, and help others.
Be the first to start the discussion!
