CVE-2026-77326: high-severity vulnerability in MapServer
MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
Published
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 8.6epss 1.0%
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
Affected products
MapServer · MapServerRelated CVEs — MapServer
In the same product, most dangerous first.
CVE-2026-77324HIGHMapServer: WCS POST: NULL-Dereference Denial of Service When `BoundingBox` Omits `crs`EPSS 1.5%CVE-2026-33721MEDIUMMapServer has heap buffer overflow in SLD `Categorize` Threshold parsingEPSS 1.2%CVE-2026-77327MEDIUMMapServer: MySQL JOIN second-order SQL injection in src/mapjoin.cEPSS 1.2%CVE-2026-77323MEDIUMMapServer Reflected XSS via unescaped offset/limit query params injected into <script> in OGC API Features HTML outputEPSS 0.8%CVE-2026-77328MEDIUMMapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.cEPSS 0.8%CVE-2026-54354HIGHMapServer: PostGIS Numeric Filter Value SQL Injection in MapServer Runtime Query TranslationEPSS 0.7%
References
https://github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7bhttps://github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8https://github.com/MapServer/MapServer/pull/7555https://github.com/MapServer/MapServer/pull/7569https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959