# CVE-2026-55368: h2o: buffer overflow when using the %{error}x log directive

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.1
- **CVSS:** 8.1 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.55% (percentile 40, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2026-11-04T21:38:04.613Z
- **Modified:** 2026-11-12T22:18:35.610Z

## Who should check

- Anyone running h2o \< 48b7ae12107fd2b118e4641da49599e9aac8edd8

## 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.

## Affected and fixed versions

- h2o: \< 48b7ae12107fd2b118e4641da49599e9aac8edd8 (cvelist)

## Mitigation

- Upgrade h2o to 48b7ae12107fd2b118e4641da49599e9aac8edd8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-55368. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-55368.md
Affected: h2o < 48b7ae12107fd2b118e4641da49599e9aac8edd8
Fixed in: h2o 48b7ae12107fd2b118e4641da49599e9aac8edd8

Steps:
1. Search this machine and project for h2o: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

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

There is no confirmed exploitation: CVE-2026-55368 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.55% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-55368?

High: CVSS 8.1 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.

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

h2o \< 48b7ae12107fd2b118e4641da49599e9aac8edd8.

### Is there a fix for CVE-2026-55368?

Yes. Fixed in h2o 48b7ae12107fd2b118e4641da49599e9aac8edd8. Upgrade h2o to 48b7ae12107fd2b118e4641da49599e9aac8edd8 or later.

### How do I check if I'm affected by CVE-2026-55368?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/h2o/h2o/security/advisories/GHSA-m998-r5ww-rqjf>
- patch: <https://github.com/h2o/h2o/pull/3757>
- patch: <https://github.com/h2o/h2o/commit/48b7ae12107fd2b118e4641da49599e9aac8edd8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-55368>

HTML: <https://flawdb.com/CVE-2026-55368> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-55368>
