CVE-2026-55368

h2o: buffer overflow when using the %{error}x log directive

Published Nov 4, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
h2o is an HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3. Prior to commit 48b7ae12107fd2b118e4641da49599e9aac8edd8, H2O's access-log formatter could write past its log-line buffer when an affected custom access-log format was configured. The allocation errors affected %{error}x, %q when the query string was empty, and numeric elements whose temporary terminating NUL reached the end of the buffer. A matching request could crash the server, while the effect of the one-byte NUL overwrite beyond a crash was not established. This vulnerability is fixed with commit 48b7ae12107fd2b118e4641da49599e9aac8edd8.

Analysis

AI-generated

Technical impact

The vulnerability is a classic buffer overflow in h2o’s access‑log formatter. When a custom log format containing %{error}x, %q with an empty query string or numeric elements that terminate in a NUL byte at the buffer boundary is used, the formatter writes past the end of its internal log‑line buffer. This results in a server crash; the effect of any single‑byte NUL overwrite beyond the crash point has not been confirmed, so the exploit is limited to denial of service rather than arbitrary code execution.

Affected Systems

The affected product is the h2o HTTP server. Any installation that has not applied commit 48b7ae12107fd2b118e4641da49599e9aac8edd8 is vulnerable. No specific version numbers are listed, so all releases before the patch are considered affected.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity issue. EPSS is not available, and the vulnerability is not listed in CISA’s KEV catalog. The attack vector is most likely remote, via a crafted HTTP request that triggers the vulnerable log format; any client that can generate a request with an empty query string and the affected format can crash the server. Because the failure mode is a crash rather than code execution, the risk is primarily service disruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the h2o patch that includes commit 48b7ae12107fd2b118e4641da49599e9aac8edd8 or upgrade to a released version that incorporates this commit
  • Reconfigure the server to avoid using the risky custom log format "%{error}x" or to ensure that the query string is never empty when this format is applied
  • Remove or disable the custom access‑log directives that reference %{error}x, %q, and similar numeric elements until a safe version is available

Generated by OpenCVE AI on November 4, 2026 at 23:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared H2o
H2o h2o
Vendors & Products H2o
H2o h2o
Type Values Removed Values Added
Description h2o is an HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3. Prior to commit 48b7ae12107fd2b118e4641da49599e9aac8edd8, H2O's access-log formatter could write past its log-line buffer when an affected custom access-log format was configured. The allocation errors affected %{error}x, %q when the query string was empty, and numeric elements whose temporary terminating NUL reached the end of the buffer. A matching request could crash the server, while the effect of the one-byte NUL overwrite beyond a crash was not established. This vulnerability is fixed with commit 48b7ae12107fd2b118e4641da49599e9aac8edd8.
Title h2o: buffer overflow when using the %{error}x log directive
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:57 PM
Reserved
Jun 16, 2026, 6:57 PM
Status
Awaiting Analysis
Published
Nov 4, 2026, 10:18 PM
Modified
Nov 12, 2026, 10:18 PM