CVE-2026-77326

published 20 Nov 2026 · updated 20 Nov 2026

MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters

8.6HighCVSS 8.6EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. No fixed version is recorded.

MapServer is a system for developing web-based GIS applications. From 8.2.0 until 8.6.5, an unauthenticated attacker can send a WMS GetLegendGraphic request with a nonempty BBOX and repeated LAYER parameters to trigger a heap buffer overflow in msWMSDispatch() in src/mapwms.cpp. The handler appends synthesized entries to cgiRequestObj.ParamNames and cgiRequestObj.ParamValues at NumParams without retaining the arrays' capacity or reallocating them, while incrementing NumParams inside the loop. Once the parser's hidden capacity is exhausted, the writes pass the heap allocation boundary. A single request can corrupt heap memory and crash the process; code execution may be possible but was not demonstrated. This issue is fixed in version 8.6.5.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MapServer<8.6.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-77326 severity on Zeptric[![CVE-2026-77326](https://zeptric.io/badge/cve/CVE-2026-77326.svg)](https://zeptric.io/cve/CVE-2026-77326)