Skip to main content

CivetWeb CVE-2026-124040

| EUVDEUVD-2026-118441 CRITICAL
Use After Free (CWE-416)
2026-11-06 VulnCheck GHSA-wj2x-x5pc-4h8r
9.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Open HTTP/2 connection to server
  2. Delivery
    Send initial HEADERS with pseudo-headers
  3. Exploit
    Send later HEADERS omitting :method/:path
  4. Execution
    Trigger use-after-free on stale pointers
  5. Impact
    Bypass access rules or crash server

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target to be built with the USE_HTTP2 compile-time option AND to have the enable_http2 runtime setting turned on - HTTP/2 support in CivetWeb through 1.16 is experimental and not enabled by default, which is the primary limiting factor and sharply narrows the vulnerable population. Given those conditions, no authentication is needed (PR:N) and the attack is remote over the network (AV:N): the attacker sends a later HEADERS frame that omits the :method and :path pseudo-headers so handle_http2() acts on freed pointers. Further limiting realistic exploitation is the high attack complexity / attack requirement (AC:H/AT:P in the supplied vector), indicating a specific frame-sequencing condition rather than a trivially repeatable single request.

Impact

Signals conflict and must be weighed carefully. The CVSS 4.0 base score of 9.2 (Critical) and VulnCheck's 'act_now' decision label argue for urgency, and the flaw is network-reachable with no authentication (AV:N, PR:N, UI:N) and claims high confidentiality, integrity, and availability impact. However, two metrics temper this: AC:H (high attack complexity) and AT:P (a specific attack requirement), consistent with a use-after-free that depends on a precise HEADERS-frame ordering to act on freed :method/:path pointers. Critically, exploitation is gated on a non-default build and configuration - CivetWeb must be compiled with USE_HTTP2 and run with enable_http2 on; HTTP/2 in CivetWeb through 1.16 is experimental and off by default, so the realistic exposed population is far smaller than the Critical score implies. No EPSS score, no CISA KEV listing, and no confirmed working exploit code were provided, so there is no evidence of active or widespread exploitation; the strongest third-party signal is a VulnCheck advisory and the upstream GitHub issue. Net: this is a genuinely serious memory-corruption bug for the subset of deployments that enabled experimental HTTP/2, but for the typical CivetWeb deployment (HTTP/2 disabled) real-world risk is low. Treat as high priority only where HTTP/2 is compiled in and enabled; otherwise it is a high-CVSS, low-real-exposure issue pending confirmation of exploitation data.

Exploit ScenarioDerived

An unauthenticated remote attacker opens an HTTP/2 connection to a CivetWeb server that was built with USE_HTTP2 and has enable_http2 turned on. The attacker sends a request whose later HEADERS frame omits the :method and :path pseudo-headers, causing handle_http2() to dereference previously freed pointers; this can make access rules evaluate a stale method/path (potentially bypassing path- or method-based access controls) or crash the server. No public working exploit code is confirmed in the provided data, though a VulnCheck advisory and the upstream issue describe the flaw.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Use-after-free in CivetWeb through 1.16's experimental HTTP/2 handling allows unauthenticated remote attackers to crash the server or influence the request method and path evaluated by access rules when the build uses USE_HTTP2 and enable_http2 is on. Exploitation requires a later HEADERS frame that omits the :method and :path pseudo-headers, a specific frame-sequencing condition reflected in the high attack-complexity scores, so the vulnerable population is narrow because HTTP/2 is not enabled by default. The issue is prioritized act_now by vuln.today; no CISA KEV listing or public exploit code is present in the supplied data, and no public exploit was identified at time of analysis.

RemediationAI

Patch availability is not confirmed in the supplied data and no fixed release version is listed. The direct compensating control is to disable the experimental HTTP/2 path: set enable_http2 off at runtime and, where possible, rebuild CivetWeb without the USE_HTTP2 compile-time option; this removes exposure to handle_http2() but forfeits HTTP/2 multiplexing and forces clients onto HTTP/1.1. Track the vendor issue at https://github.com/civetweb/civetweb/issues/1379, the source reference at https://github.com/civetweb/civetweb/blob/v1.16/src/http2.inl#L1574-L1581, and the VulnCheck advisory at https://www.vulncheck.com/advisories/civetweb-through-1.16-http-2-use-after-free-via-stale-pseudo-header-state for a fixed release, and apply the vendor's patched version as soon as it is published.

Affected VersionsENISA

civetweb 0 ≤1.16

Affected Packages

euvd civetweb no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

CivetWeb is an embeddable C web server; its HTTP/2 implementation lives in src/http2.inl and handle_http2() at lines 1574-1581 retains pointers to freed :method and :path pseudo-header values. The flaw is CWE-416 (use-after-free): after those header fields are freed, a subsequent HEADERS frame that omits them causes the handler to read stale pointers, which can alter the method/path seen by access-control logic or crash the process. The CPE cpe:2.3:a:civetweb:civetweb:*:*:*:*:*:*:*:* covers all versions through 1.16, but exposure is conditional on the USE_HTTP2 compile-time option and the enable_http2 runtime setting; HTTP/2 is experimental and not enabled by default. The supplied CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) and the independent CVSS 3.1 assessment (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H) both describe network-reachable, unauthenticated exploitation with high confidentiality, integrity and availability impact, while the AC:H/AT:P values reflect the required frame-sequencing condition rather than a trivial single request.

Know when Civetweb gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 9.2 CRITICAL
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
vuln.today AI 8.1 HIGH

Remote and unauthenticated (AV:N/PR:N/UI:N); AC:H because it needs a specific HEADERS-frame sequence against freed pointers; access-rule influence yields C:H/I:H and the crash gives A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-124040, a critical vulnerability in CivetWeb when its experimental HTTP/2 support is enabled, could allow unauthenticated remote attackers to crash servers or bypass access rules. Affected systems are at risk of service disruption and potential policy circumvention. Leadership should verify whether any production services rely on this non-default HTTP/2 feature.

Business Impact: High
Compensating Controls

Disable HTTP/2 at the server or reverse proxy level; restrict network access to affected services; monitor for anomalous HEADERS frames or crash patterns.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Prevalence
Low
embeddable C web server library; niche embedded use, experimental HTTP/2 off by default
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy