CVE-2026-77326: MapServer Out-of-bounds Write
Published 2026-11-20 · Updated 2026-11-24 · Source security-advisories@github.com
Not known to be exploited · high severity — update MapServer to 8.6.5 or later in your next patch cycle.
What to do
- Update MapServer to version 8.6.5 or later. Versions from 8.2.0 up to, but not including, 8.6.5 are affected.
- Until it is patched, do not leave MapServer reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
- Avoid processing untrusted input with the affected component until it is updated.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| MapServer | ≥ 8.2.0, < 8.6.5 | 8.6.5 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high, and on confidentiality and integrity low.
| Attack vector | Network | It can be exploited remotely over the network. |
|---|---|---|
| Attack complexity | Low | No special conditions are needed; the attack is repeatable. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | None | No action by a victim is needed. |
| Confidentiality | Low | Partial loss of confidentiality. |
| Integrity | Low | Partial loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Weakness: Out-of-bounds Write
The software writes past the end of a buffer, corrupting memory in a way that can crash it or allow code execution.
Classified as CWE-787.
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7b
- Patchhttps://github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8
- Patchhttps://github.com/MapServer/MapServer/pull/7555
- Patchhttps://github.com/MapServer/MapServer/pull/7569
- Patchhttps://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- Advisoryhttps://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959
- Advisoryhttps://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959