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

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

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: None; User interaction: None; Scope: Changed (impact reaches other components); Confidentiality impact: Low; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.73% (percentile 50, 2026-11-26)
- **CWE:** CWE-113
- **Aliases:** BIT-cilium-2024-42487, BIT-cilium-operator-2024-42487, BIT-hubble-relay-2024-42487, GHSA-qcm3-7879-xcww, GO-2024-3071
- **Published:** 2024-08-15T20:26:53.455Z
- **Modified:** 2026-09-10T03:50:18.772Z

## Who should check

- Projects that depend on Go package github.com/cilium/cilium (\>= 1.16.0, \< 1.16.1)
- Anyone running cilium = 1.16.0; \>= 1.15.0, \< 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.

## Affected and fixed versions

- Go `github.com/cilium/cilium`: affected \>= 1.16.0, \< 1.16.1; fixed 1.16.1, 1.15.8 (osv)
- cilium: = 1.16.0; \>= 1.15.0, \< 1.15.8 (cvelist)

## Mitigation

- Upgrade github.com/cilium/cilium to one of 1.16.1, 1.15.8 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-42487.md
Affected: github.com/cilium/cilium >= 1.16.0, < 1.16.1
Fixed in: 1.16.1, 1.15.8

Steps:
1. Search this machine and project for github.com/cilium/cilium (Go), cilium: 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-2024-42487 being exploited?

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

### How serious is CVE-2024-42487?

Medium: CVSS 4.0 (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-2024-42487?

github.com/cilium/cilium \>= 1.16.0, \< 1.16.1.

### Is there a fix for CVE-2024-42487?

Yes. Fixed in 1.16.1, 1.15.8. Upgrade github.com/cilium/cilium to one of 1.16.1, 1.15.8 (or later in the same release line).

### How do I check if I'm affected by CVE-2024-42487?

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/cilium/cilium/security/advisories/GHSA-qcm3-7879-xcww>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-42487>
- patch: <https://github.com/cilium/cilium/pull/34109>
- patch: <https://github.com/cilium/cilium/commit/a3510fe4a92305822aa1a5e08cb6d6c873c8699a>
- patch: <https://github.com/cilium/cilium/commit/d88772b9c29e370becbc4547cada6711d51edcde>
- patch: <https://github.com/cilium/cilium/commit/fe42273566a943a0f3174c87b23a195c856b51d6>
- other: <https://github.com/cilium/cilium>

## 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-2024-42487>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-qcm3-7879-xcww> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3071> (license: <https://creativecommons.org/licenses/by/4.0/>)

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