Critical HTTP/2 Upload Memory‑Corruption Flaw in curl (Patched in 8.23.0)
What It Is
curl is a ubiquitous command‑line tool and library used for data transfer over a wide range of protocols, including HTTP/2. In October 2026 a security researcher disclosed a flaw in curl’s handling of HTTP/2 UPLOAD frames. When a client initiates an upload to a server, curl parses the incoming HTTP/2 frames and copies payload data into internal buffers. The vulnerability arises because curl does not adequately validate the size and boundaries of these frames before writing them, allowing a malicious server to supply crafted data that overwrites adjacent memory regions on the client side.
The memory‑corruption condition is triggered on the client that is performing the upload, not on the server. By sending a specially‑crafted HTTP/2 upload request, an attacker can cause arbitrary writes within the client process’s address space. The researcher demonstrated that, with precise knowledge of the target’s curl build (compiler version, optimization flags, and memory layout), the corrupted memory can be leveraged to execute native code on the uploading machine. The proof‑of‑concept (PoC) showed that the exploit can spawn a shell, effectively achieving remote code execution (RCE) on the client.
Because the exploit depends on exact binary characteristics, the attack surface is limited to environments where the attacker can control the HTTP/2 server and knows the exact curl binary version in use. Nevertheless, the flaw is classified as Critical by the reporting community due to the potential for full system compromise on any host that runs a vulnerable curl version and accepts HTTP/2 uploads from untrusted servers.
The curl project responded quickly. On 14 October 2026, the maintainers released curl 8.23.0, which incorporates a series of bounds‑checking fixes in the HTTP/2 upload code path. The patch adds strict validation of frame lengths, enforces maximum buffer sizes, and introduces defensive aborts when inconsistencies are detected. The release notes state that the vulnerability “could lead to memory corruption and code execution; the fix mitigates the issue by rejecting malformed upload frames.” No CVE identifier has been assigned at the time of writing.
The vulnerability was not reported as being actively exploited in the wild. The researcher’s PoC required a controlled environment with a matching curl build, and the curl developers noted that “a real‑world attacker would likely cause a crash before achieving reliable code execution.” Nonetheless, the existence of a client‑side RCE vector in a core networking library warrants immediate remediation, especially for services that accept uploads over HTTP/2 from external parties.
curl is embedded in countless applications, ranging from simple scripts to large‑scale enterprise CI/CD pipelines, container images, and network appliances. Any software that relies on libcurl for HTTP/2 uploads—such as package managers, cloud SDKs, and API clients—inherits the flaw. Organizations that ship custom binaries or use older curl versions (pre‑8.23.0) are therefore exposed until they apply the update or implement compensating controls.
The curl maintainers have encouraged users to upgrade promptly and to monitor for abnormal termination of curl processes, which may indicate an attempted exploitation. They also recommend enabling compiler‑level hardening flags (e.g., -fstack-protector-strong, -D_FORTIFY_SOURCE=2) where possible, as these mitigations raise the bar for successful memory‑corruption attacks.
Why It Matters for Compliance & Audit Readiness
Unpatched client‑side RCE undermines the integrity control of data‑in‑transit and can invalidate evidence‑preservation requirements; updating curl restores a defensible security posture aligned with continuous monitoring standards.
Recommended Actions
- Upgrade all curl installations to version 8.23.0 or later; verify the version with
curl --version. - Inventory systems and applications that bundle libcurl; prioritize those that accept HTTP/2 uploads from external sources.
- Enable runtime monitoring for unexpected curl crashes or abnormal exit codes, and capture core dumps for forensic analysis.
Source: The Hacker News – curl patches HTTP/2 upload flaw after PoC demonstrates client‑side code execution