Public vulnerability disclosure

CVE-2026-77326

MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters

publishedCWE-787

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.

Technical severity8.6 highCVSS 3.1 · CNA: GitHub_M
Published2026-11-20Source updated 2026-11-24
Collected2026-11-244 attributed sources

Fixes and workarounds

Fix

WMS support in MapServer: GitHub reports patched versions 8.6.5. Check the advisory for the affected release branch.

Source: GitHub GHSA-4mwc-qc95-5959

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
MapServer
MapServer
< 8.6.5 (affected) CNA: GitHub_M
WMS support in MapServer

WMS support in MapServer
<= 8.6.4 (affected, GitHub advisory range) GitHub GHSA-4mwc-qc95-5959

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
3.1 / 8.6
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HCNA: GitHub_M
3.1 / 8.6
high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HNVD: [email protected]

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide