CVE-2026-77326 - MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
Vulnerability · Reported by NVD · · CWE-787
- Severity
- High Risk score 86/100
- CVSS
- 8.6 v3.1 · from NVD
- Exploit chance (EPSS)
- 0.96% Higher than 60% of CVEs
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
This is a out-of-bounds write flaw (CWE-787). An attacker can exploit this vulnerability remotely over the network, without any login, and without any action from a user. Attack complexity is low, so no special conditions are needed. If successful, the attacker could crash or disrupt the service.
Is it being exploited?
The EPSS model estimates a 0.96% chance this CVE will be exploited in the next 30 days, which is low and higher than 60% of all published CVEs.
Patch priority and what to do
Patch as soon as possible, ideally within days. It is remotely reachable or critical severity, so exposure to the internet greatly increases risk. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Until patched, restrict network access to the service (firewall, VPN, WAF rules). 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Tags
#patch, CVE-2026-77326
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-77326 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.