# CVE-2026-54716: Valhalla: Degenerate exclude_polygons (collinear points, zero area) causes OOM in /sources_to_targets

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2026-09-17T19:42:57.776Z
- Modified: 2026-09-24T21:25:27.050Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Valhalla is an open source routing engine and accompanying libraries for use with OpenStreetMap data. In 3.7.0 and earlier, a POST request to /sources_to_targets containing an exclude_polygons ring formed by three collinear points can cause unbounded memory growth in the worker. The zero-area geometry, rather than the other request options, triggers processing in src/loki/polygon_search.cc until the process is terminated by the out-of-memory killer. A single unauthenticated request can therefore stop a public-facing worker. Other endpoints that accept exclude_polygons, including /route, were not verified as affected. No fixed version is available as of this review.

(As written by CVE List.)

## Affected

- valhalla valhalla: <= 3.7.0

## References

- <https://github.com/valhalla/valhalla/security/advisories/GHSA-qpf6-xp29-pg6r>

## Sources

- CVE List: [CVE-2026-54716](https://www.cve.org/CVERecord?id=CVE-2026-54716), CVE Terms of Use, modified 2026-09-18
- NVD: [CVE-2026-54716](https://nvd.nist.gov/vuln/detail/CVE-2026-54716), Public domain, modified 2026-09-24

---

Page: https://cve.day/CVE-2026-54716 · Whole record: https://cve.day/CVE-2026-54716.json · Rebuilt by cve.day 2026-11-25T22:59:39.507Z
