CVE-2026-124040: CivetWeb through 1.16, when built with USE_HTTP2 and enable_http2 on, contains a use-after-free vulnerability
CVE-2026-124040 is a high-severity flaw (CVSS 8.1) affecting civetweb. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 8.1 (High) |
| EPSS exploit chance | n/a |
| CISA exploited list | No |
| Weakness | CWE-416 |
| Published | 2026-11-06 |
| Last modified | 2026-11-06 |
Last updated 2026-11-06 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-124040?
civetweb: upgrade to newer than 1.16. Exact commands for each OS are on this page.
Is CVE-2026-124040 being exploited?
CVE-2026-124040 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-124040 affect?
CVE-2026-124040 affects civetweb. Severity is high (CVSS 8.1). 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 o
How urgent is CVE-2026-124040?
Priority 28/100. High severity
Related CVEs
- CVE-2026-5789 HIGH 7.8 DOWNGRADE Vulnerability related to an unquoted search path in CivetWeb v1.16
- CVE-2025-55763 HIGH 7.5 UPGRADE Buffer Overflow in the URI parser of CivetWeb 1.14 through 1.16 (latest) allows a remote attacker to achieve r
- CVE-2020-27304 CRITICAL 9.8 UPGRADE UPGRADE The CivetWeb web library does not validate uploaded filepaths when running on an OS other than Windows, when u
- CVE-2019-3821 HIGH 7.5 UPGRADE MITIGATE A flaw was found in the way civetweb frontend was handling requests for ceph RGW server with SSL enabled
- CVE-2018-12684 HIGH 7.1 UPGRADE Out-of-bounds Read in the send_ssi_file function in civetweb.c in CivetWeb through 1.10 allows attackers to ca