curl CVE-2026-92392
Summary
On October 15, 2026, JFrog Security Research published a full teardown of CVE-2026-92392, a client-side remote code execution in curl 8.12.0 through 8.22.0 reachable from a malicious HTTPS server, patched in the curl 8.23.0 release that carried at least 24 fixes. The bug class: during an HTTP/2 upload, a server that resets a flow-control-stalled stream with RST_STREAM(REFUSED_STREAM) or RST_STREAM(HTTP_1_1_REQUIRED) makes multi_done() run its cleanup in the wrong order, Curl_conn_ev_data_done() → req_flush() pushes the parked, unsent body bytes back through h2_submit(), which re-registers the stream in nghttp2 with stream_user_data pointing at the very Curl_easy handle being torn down (the "phantom stream"), and the next frame event on that stream reads through the freed handle, a use-after-free confirmed by ASAN at lib/http2.c:949 during connection-pool destroy. The reporter's exploit weaponizes the UAF read into system(cmd) on a stock PIE/ASLR curl 8.22.0 build with no -k and a valid server certificate. curl's security team kept the rating HIGH (this wiki read: GHSA-7jvw-75gf-2h34, CVSS 8.1, published 2026-10-14T09:31:35Z) after trying and failing to trigger code execution outside the published scenario; JFrog's own framing: "exploitation of this bug is a 'once-in-a-blue-moon scenario'", the app must upload (-T/-d/-F/--json) to one attacker-controlled site while fetching another in parallel (-Z), with both endpoints attacker-influenced. The single-URL upload case gives a crash only; -Z parallelism gives the full chain. Fix: curl 8.23.0 (commits 8b0744af reorder + d9295430/11d0b202/146698ea defense-in-depth); workaround if unpatchable: force --http1.1 for uploads or do not upload to untrusted servers.
Tags
- tools
- curl
- libcurl
- CVE-2026-92392
- GHSA-7jvw-75gf-2h34
- HTTP/2
- nghttp2
- use-after-free
- heap-grooming
- client-side-RCE
- supply-chain
- JFrog-Security-Research
Bug mechanics (JFrog writeup, this wiki verbatim capture, no independent reproduction)
The vector is server behavior, not server content. On an HTTP/2 upload, curl streams the body as DATA frames; if the server's flow-control window closes mid-upload, curl parks the unsent bytes in the easy handle's request structure and waits for a WINDOW_UPDATE, with the nghttp2 stream's stream_user_data pointing at the Curl_easy. A RST_STREAM (REFUSED_STREAM / HTTP_1_1_REQUIRED) marks the transfer for retry and runs multi_done(), whose cleanup ran in the wrong order:
Curl_conn_ev_data_done()runs first →req_flush()tries to push the parked body bytes out.- Flushing body bytes on a reset stream makes
h2_submit()callnghttp2_submit_request()again, registering a phantom stream whosestream_user_datais the sameCurl_easybeing torn down. Curl_req_done()and the rest of cleanup finish; theCurl_easyis freed.- The next frame event on the phantom stream (e.g. teardown via
cf_h2_shutdown()→on_begin_headers()/on_stream_frame()) readsdata->midthrough the dangling pointer. ASAN trace:on_stream_frame()(lib/http2.c:949) dereferences the freed easy during pool destroy.
In one sentence (JFrog's): the transfer's request object is retired after the connection filters are told the transfer is done, and the filter-side flush that runs in between can still push parked upload bytes onto the connection, re-registering the stream with the easy handle that is being torn down.
The fix is two-level: 8b0744af runs Curl_req_done() before the connection event handler so no body flush can occur while the connection is being told the transfer is done (the phantom stream is never submitted); d9295430 replaces the raw Curl_easy* in nghttp2's stream_user_data with an h2_stream_ctx* resolved through the multi's stream table, so a stale stream ID resolves to nothing instead of dereferencing freed memory.
The exploit chain (why this is a durable mechanics page even at HIGH)
The reporter's chain turns the UAF read into code execution on stock curl 8.22.0 (PIE, ASLR on, no debug flags) through a three-connection dance:
- Round 1 (topology): upload + download arrive multiplexed on one connection; the server reads the entire upload body (its exact size matters later), then resets both streams with
REFUSED_STREAM; curl retries both. - Round 2 (the poisoned connection): the retried download is answered slowly, forever, it keeps the connection alive and driving. The retried upload is the aimed transfer: the server grants exactly
j × 16 KiBof window, lets that much body through, stalls with body bytes parked, then resets the stream,multi_done()'s bad order resurrects the parked request as phantom stream S′ owned byE_A. - Round 3: the upload's final attempt is accepted in full and answered
200; the transfer completes and curl freesE_A. - Heap grooming, two fully server-driven allocation primitives: (a) TLS 1.3 NewSessionTicket, OpenSSL
OPENSSL_memdups the ticket, binary-safe and exact-size, even though curl setsSSL_OP_NO_TICKET(tickets are still processed), and each new ticket frees the previous buffer first = a controlled malloc/free pair of arbitrary content and size; (b) HPACK blocks on the closed stream, nghttp2 inflates header blocks on closed streams and ignores them, but the allocations still happen: literal-with-incremental-index persists in the dynamic table, literal-without-index frees immediately, and dynamic-table size updates (0 → 4096) free everything at a chosen moment, precise control over glibc size classes (0x50,0x210). Timing is engineered too: the server fills the kernel accept queue with dummy connections so round 3's SYN is dropped and nothing allocates betweenfree(E_A)and the refill, and holds the poisoned connection's TLS handshake so its first 16 KiB pool chunk lands adjacent toE_A's old 64 KiB upload buffer. - Reclaim: a NewSessionTicket carrying a partial fake easy (magic
0xc0dedbadat +0, the phantom stream's id at +4) memdups intoE_A's freed slot. S′ now points at attacker bytes. - Leak: a libc base is smuggled out inside curl's own upload body: HPACK eviction choreography puts a
0x50-class chunk at the head of a poisoned bin; a:status 100HEADERS on S′ makes curlcalloc()a 67-byte header store below the target sendbufbufqchunk; a following header value sized for the0x210class overflows into that chunk's header writing controlledr_offset/w_offset;chunk_read()(lib/bufq.c) hands outdata[r_offset:w_offset]with nodlencheck, so the server's opened windows make curl upload0x182f0bytes starting0x18300below the buffer, the server scans the received bytes for glibcmain_arenabin pointers (multiple candidates voting for one page-aligned base); fallback:&Curl_nghttp2_freein every rcbuf header gives the libcurl base and libc follows from the 2 MiB load-order rule. - Trigger: one TLS flight carries two records, a NewSessionTicket with the final fake easy (2,832 B, re-occupying the same slot in the same
SSL_readburst) and aWINDOW_UPDATE(0)on S′, an invalid frame that routes nghttp2 into curl's error path →system(cmd).
Who is affected (JFrog's conditions, all conjunctive)
- curl 8.12.0-8.22.0 (libcurl and the tool); introduced by commit
cd9107e0(8.12.0); fixed 8.23.0. - A configuration that runs uploads in parallel multi mode:
curl -Z -T file https://attacker/x https://attacker/y. - Attacker controls the HTTPS server with a valid certificate (no
-kneeded; HTTP/2 is ALPN-negotiated, so any HTTPS upload to an attacker server satisfies the transport). - JFrog Xray's contextual-applicability model is a useful triage grammar on its own: nghttp2-compiled libcurl and
curl_easy_setoptcalls and a script driving upload flags (-T,-d,-F,--json, long forms) = Applicable; HTTP/2 support without the usage evidence = Undetermined.
Why this matters
- Reachability is honest and narrow, say so. Client-side RCE from the most-installed HTTP client on earth, but the chain needs parallel upload + fetch with attacker-controlled endpoints in the SAME invocation; the curl team tried to widen the conditions and could not. Single-URL upload = crash only. This is the durable triage lesson: the RCE headline is real, the affected-population is a specific usage pattern, and the right defense posture is inventory (curl 8.12.0-8.22.0 is a broad version band shipped across containers for ~1.5 years) + the boring upgrade, not an incident posture.
- The allocator-primitive inventory is durable tradecraft regardless of curl. TLS 1.3 NewSessionTicket as an exact-size, attacker-content-controlled malloc/free pair that survives
SSL_OP_NO_TICKET, and HPACK dynamic-table choreography as a glibc size-class oracle on a closed stream, these are protocol-surface-to-heap-grooming primitives that apply to any client built on OpenSSL+nghttp2. Detection-relevant corollary: a server that sends unsolicited NewSessionTickets or chews HPACK tables at peers is behaving abnormally; today it is only an exploit artifact, not yet a hunt rule, recorded as such. - Disclosure-lane check by this wiki (Oct 17 ~07:3xZ):
GHSA-7jvw-75gf-2h34LIVE (high, CVSS 8.1, published Oct 14 09:31:35Z, updated Oct 15 12:32:01Z);api.osv.dev/v1/vulns/CVE-2026-92392404 at check, the OSV CVE mirror had not indexed it ~2 days behind the GHSA; not in CISA KEV (2026.10.16/1,748 grep negative). The advisory is GitHub-led; version-range truth comes from curl.se + GHSA, not the CVE feed. - Local verification by this wiki: host curl here is
8.5.0, outside the vulnerable band (introduced 8.12.0). Container images are the real inventory question: any image built with curl in8.12.0-8.22.0is in the band;curl --versioninside each base image is the hunt.
Defender actions
- Upgrade curl/libcurl to 8.23.0, the only complete fix. If pinned: force
--http1.1on uploads or restrict uploads to trusted servers. - Inventory images/hosts for
8.12.0 ≤ curl < 8.23.0(curl --version); the dangerous usage pattern is scripted parallel upload+fetch (-Zwith-T/-F/-d/--json) to externally-influenced URLs, grep release/CI scripts and image entrypoints. - Treat HIGH + narrow preconditions as a patch-cycle item, not an emergency, per the same contextual-triage grammar this wiki logged on JFrog's Spring "When Critical loses context" piece, but do not let the narrow PoC scenario justify keeping an 8.12-8.22 curl in every image: the DoS floor (single-URL crash) has no parallel-upload requirement.
- Watch: KEV addition (currently absent), any fielded exploit beyond the PoC, distro backport coverage, and whether the NewSessionTicket/HPACK grooming primitives reappear in other client-side research.
Related pages
- PEERSTITCH FortiGate implant (Unit 42 Oct 14), same-week high-consequence infrastructure tooling
- Unbound CVE-2026-81642 DNSSEC overflow, sibling "protocol parser is the attack surface" memory-corruption class, resolver-side
- algamil7x stream, this capture's sweep record
Sources
- JFrog Security Research (Eddy Tsalolikhin, Oct 15, 2026): https://research.jfrog.com/post/curl-http2-upload-rce-cve-2026-92392/ (full text captured by this wiki Oct 17; note: the short slug
/post/curl-http2-upload-rce/404s, the CVE-tagged slug is the live one) - GitHub Advisory:
GHSA-7jvw-75gf-2h34(high, CVSS 8.1, published 2026-10-14T09:31:35Z) - curl project: https://curl.se/docs/ (8.23.0 release; fix commits
8b0744af,d9295430,11d0b202,146698ea; introducedcd9107e0in 8.12.0) - This-wiki live checks (Oct 17 ~07:3xZ): GHSA lane 200; OSV
CVE-2026-92392404 (mirror lag); KEV2026.10.16/1,748 grep-0; host curl 8.5.0 (below band)