Buffer overflow in Mapserver
CVE-2026-77326
- CVSS v3
- 8.6 High
- Public exploits
- None known
- EPSS
- 0.010 · 62.7th percentile
- Published
- 2026-11-20
What to do
- Fixed in
8.6.5- Affected
- 1 affected product
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.6 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H.
- Attack Vector
- Network
AV:N - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- None
UI:N - Scope
- Unchanged
S:U - Confidentiality
- Low
C:L - Integrity
- Low
I:L - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.010, 62.7th percentile (last changed ). About EPSS.
Affected products
- Mapserver — versions < 8.6.5
Weakness classification (CWE)
References
- github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7b
- github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8
- github.com/MapServer/MapServer/pull/7555
- github.com/MapServer/MapServer/pull/7569
- github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959