CVE-2026-77326: MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
Vulnerability summary
CVE-2026-77326 is a high (CVSS 8.6) Out-of-bounds Write vulnerability in mapserver.
Severe, CVSS 8.6 (CVE.org); no exploitation reported by the 5 checked sources; EPSS not yet published
Source freshness unavailable
How is this decided?Timeline
- 20-11-2026PublishedVulnerability first disclosed.
- 20-11-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST8.6HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
EPSS trend
No EPSS score has been published for this record yet.
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Mapserver1 product
- mapserver< 8.6.5
1 vendor · 1 product
References
6 links- github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959X Refsource CONFIRM
- github.com/MapServer/MapServer/pull/7555X Refsource MISC
- github.com/MapServer/MapServer/pull/7569X Refsource MISC
- github.com/MapServer/MapServer/releases/tag/rel-8-6-5X Refsource MISC