Skip to main content

MapServer EUVDEUVD-2026-131826

| CVE-2026-77326 HIGH
Out-of-bounds Write (CWE-787)
2026-11-20 security-advisories@github.com
8.6
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed MapServer WMS endpoint
  2. Delivery
    Craft GetLegendGraphic request with non-empty BBOX
  3. Exploit
    Append ~95 repeated LAYER parameters
  4. Execution
    Overflow ParamNames/ParamValues heap arrays
  5. Impact
    Corrupt heap metadata, crash process (potential RCE unproven)

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a MapServer instance (8.2.0-8.6.4) built with WMS Server support (--with-wms, default ON) and a mapfile exposing at least one layer whose wms_enable_request includes GetLegendGraphic - this is a standard, default-capable WMS configuration, so most internet-facing WMS deployments qualify. The malicious request must use the GetLegendGraphic operation WITH a non-empty BBOX (empty BBOX does not reach the vulnerable branch) and must repeat the LAYER= parameter enough times to exceed the initial 100-entry parameter capacity; the GHSA notes parse-time capacity doubling creates 'blind spots' (K=96 crashes, K=97 does not; K=196 crashes, K=197 does not), and the PoC uses K=95 for reliable overflow. Limiting factors: no authentication or user interaction is needed (PR:N/UI:N), but exploitation is constrained to servers with GetLegendGraphic enabled and requires the non-empty-BBOX code path plus a tuned LAYER count to land cleanly in the initial array.

Impact

Multiple signals align on genuine but not emergency-level priority. The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N) confirms unauthenticated, network-reachable, low-complexity exploitation, and the vuln.today decision label is 'this_week' rather than act_now/emergency. Reported by GitHub Security (GHSA-4mwc-qc95-5959), with a Tencent KeenLab researcher credited and a self-contained Docker/ASan reproduction attached, so a working crash PoC is public. No EPSS score was provided and the input gives no CISA KEV listing, so there is no evidence of active in-the-wild exploitation at time of analysis - the risk is driven by exposure and PoC availability, not observed attacks. The demonstrated impact is reliable remote denial of service (single request crashes the process); the GHSA and description both state code execution 'may be possible but was not demonstrated' and 'not ruled out.' Note a signal tension: the input Tags label this 'RCE' and the supplied CVSS sets C:L/I:L, but the actual evidence only verifies an availability crash (A:H), so confidentiality/integrity impact is speculative - treat RCE as an unproven worst case rather than confirmed capability.

Exploit ScenarioDerived

An attacker locates an internet-exposed MapServer WMS endpoint with GetLegendGraphic enabled (a standard WMS configuration) and sends a single crafted HTTP GetLegendGraphic request containing a non-empty BBOX and roughly 95 repeated LAYER= parameters. The synthesis loop in msWMSDispatch() appends LAYERS= entries past the 100-slot heap array boundary, corrupting heap metadata and crashing the worker process. A public Docker-based PoC (verified with AddressSanitizer on rel-8-6-4) reproduces the out-of-bounds write; the attack is remote, unauthenticated, and low-complexity per the CVSS vector.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 20, 2026

Unauthenticated remote denial of service in MapServer 8.2.0 through 8.6.4: a single WMS GetLegendGraphic request carrying a non-empty BBOX and enough repeated LAYER parameters writes synthesized LAYERS entries past the end of the heap-allocated CGI parameter arrays, corrupting heap metadata and crashing the server process. The vulnerable loop in msWMSDispatch() increments NumParams while indexing at NumParams, so it continues past the array's capacity once roughly 95 or more LAYER parameters are supplied; the upstream advisory documents a Docker-based reproduction verified under AddressSanitizer with an out-of-bounds write landing exactly at the 800-byte boundary of the initial 100-entry allocation. Code execution via heap grooming is theorized in the advisory but was not demonstrated, and our assessment scores this as availability-only impact (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, A:H); a public PoC reference exists in the upstream advisory and demonstrates a reproducible crash, but it is not verified as working exploit code for anything beyond denial of service. Priority is this_week rather than emergency-level.

RemediationAI

Vendor-released patch: MapServer 8.6.5 (release tag rel-8-6-5), which deletes the vulnerable parameter-appending loop in msWMSDispatch() and instead picks the LAYER versus LAYERS key from the REQUEST value; upgrade per the advisory at https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959 and the referenced commits a7d5eb844a59ea076b7972a018753242f18e6f7b and ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8 (PRs 7555 and 7569). If upgrading cannot be scheduled immediately, the effective compensating control is to stop exposing the vulnerable code path: remove GetLegendGraphic from the wms_enable_request lists in your mapfiles (or restrict it to trusted clients), accepting that WMS clients relying on server-rendered legends will break. As a secondary guard, filter requests at a reverse proxy or WAF that reject GetLegendGraphic queries carrying an unusually large number of LAYER parameters or abnormally long query strings, understanding that encoding variations and parameter-count tuning (the crash threshold shifts with parse-time capacity doubling) can evade naive signature rules and that such filtering does not fix the underlying out-of-bounds write. Deployments that cannot disable the operation or upgrade should be treated as remotely crashable by any unauthenticated client.

Affected VersionsENISA

MapServer < 8.6.5

Affected Packages

euvd mapserver fix: 8.6.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MapServer's CGI request handling stores query parameters in a cgiRequestObj structure (src/cgiutil.h) holding parallel char** arrays ParamNames and ParamValues plus an int NumParams, with no capacity field. msAllocCgiObj (src/cgiutil.c) allocates both arrays at MS_DEFAULT_CGI_PARAMS = 100 pointers (800 bytes each on 64-bit). loadParams() tracks growth in a local maxParams variable and doubles it via msSmallRealloc, but that capacity is discarded when the function returns, so downstream code cannot know the real allocation size. In msWMSDispatch (src/mapwms.cpp, around lines 5989-5995 in rel-8-6-4), the GetLegendGraphic + non-empty BBOX branch looped over ParamNames looking for LAYER entries and appended duplicate "LAYERS" names/values at index NumParams while incrementing NumParams inside the loop; each LAYER match extended the loop by one iteration, so the writes walked past the heap allocation once the hidden capacity was exhausted. Because parse-time capacity doubling can mask the bug (K=96 crashes while K=97 does not; K=196 crashes while K=197 does not), the overflow depends on landing in a specific expansion window, and the published PoC uses K=95 against the initial 100-entry buffer. The root cause class is CWE-787 (out-of-bounds write). The upstream fix removes the array-mutation loop entirely and instead selects the parameter key based on the REQUEST value - comparing against "LAYER" when the request is GetLegendGraphic and "LAYERS" otherwise - so the shared parameter table is never written to after parsing. Both the CVE record and the GHSA cite GHSA-4mwc-qc95-5959, PRs 7555 and 7569, and commits a7d5eb844a59ea076b7972a018753242f18e6f7b and ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8; the commit also adjusts msautotest/renderers/resolution.map to send LAYER= for GetLegendGraphic requests.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.6 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H
vuln.today AI 7.5 HIGH

Remote unauthenticated single request (AV:N/AC:L/PR:N/UI:N) reliably crashes the process (A:H); confidentiality/integrity set to N because only a DoS crash was demonstrated and RCE was not shown.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
High

Lifecycle Timeline

2
Patch available
Nov 20, 2026 - 21:04 EUVD
CVE Published
Nov 20, 2026 - 19:18 cve.org
HIGH 8.6

DescriptionCVE.org

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 POC Analysis

CWE-787 (out-of-bounds write) in msWMSDispatch() at src/mapwms.cpp:5989-5995 (tag rel-8-6-4).

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity unauthenticated denial-of-service vulnerability in MapServer versions 8.2.0 through 8.6.4 allows any remote attacker to crash the server with a single crafted request. This impacts the availability of geographic mapping services, potentially disrupting business operations and customer-facing applications that rely on MapServer for location-based functionality. Leadership should prioritize patching and interim mitigations to prevent service outages.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include restricting network access to MapServer instances, deploying a WAF rule to limit LAYER parameters per request, and monitoring for crash attempts.

Threat Intelligence Overview

EPSS Score
1.0%
Top 37% exploitable
Prevalence
Low
open-source GIS web-mapping engine, industry-specific geospatial deployment footprint
Data Quality
3 sources
Confidence: Low
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 1.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy