CVE-2026-77326MapServer Out-of-bounds Write
NVDCVSS scored by security-advisories@github.com
Vulnerability 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.
CVSS v3.1 Base Metrics — Score 8.6 (HIGH)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HAttack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
ConfidentialityLow
IntegrityLow
AvailabilityHigh
Affected & Patched Versions
- MapServer < 8.6.5
No patched version published yet
Until a fix ships, reduce exposure:
- Restrict access to the affected service or interface to trusted networks.
- Disable the affected feature if you do not need it.
- Watch the vendor advisory for a firmware or software update.
What to do
Plan remediation soon. No exploitation is confirmed yet, but the severity is high.
- Check whether you run MapServer and which version.
- No patched version is listed yet. Limit access to the affected service to trusted networks, and disable the feature if you can.
- Subscribe to the vendor advisory so you learn when a fix ships.
Timeline
- Nov 20, 2026Published
- Nov 20, 2026Record last modified
Score, severity and exploitation changes are tracked from the day Watchtower started logging them.
Get notified about new MapServer CVEsYou are reading CVE-2026-77326. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alertsMore MapServer CVEs
External 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
- Referencehttps://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
- Vendor Advisoryhttps://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959
- Vendor Advisoryhttps://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959
Data last checked: Nov 20, 2026 20:00 UTC