CVE-2026-124040
CivetWeb through 1.16, when built with USE_HTTP2 and enable_http2 on, contains a use-after-free vulnerability in handle_http2() that retains freed :method and …
Impact
CivetWeb through 1.16, when built with USE_HTTP2 and enable_http2 on, contains a use-after-free vulnerability in handle_http2() that retains freed :method and :path pointers. Unauthenticated remote attackers can send a later HEADERS frame omitting these pseudo-headers to influence request method or path seen by access rules, or crash the server.
An attacker can exploit this over the network, without logging in, without any action by a user. Specific conditions have to be met, which makes an attack harder. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products · CivetWeb
| Product | Affected versions |
|---|---|
| Civetweb | through 1.16 Version 0 ≤1.16 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/civetweb/civetweb/issues/1379
- https://github.com/civetweb/civetweb
- https://github.com/civetweb/civetweb/blob/v1.16/src/http2.inl#L1574-L1581
- https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state