Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed WMS endpoint
-
ExploitSend crafted SLD via SLD_BODY parameter
-
ExecutionTrigger NULL pointer dereference in _SLDApplyRuleValues
-
ImpactCrash MapServer process (denial of service)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
|
| Exploitation Conditions | Exploitation requires a MapServer 6.4.0-8.6.2 instance exposed via WMS that accepts the SLD_BODY= parameter (user-supplied SLD styling). The malicious payload must be a structurally valid SLD whose <Rule> contains <ElseFilter/> and defines no symbolizer, which forces msSLDParseRule to create zero classes while _SLDApplyRuleValues still indexes class -1. No authentication and no user interaction are required (PR:N/UI:N). The principal limiting factor is configuration: a deployment that does not expose WMS, or does not accept user-controlled SLD via SLD_BODY, is not reachable through this vector. |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H scores 7.5 and is internally consistent with the description: network-reachable, low complexity, no privileges, no user interaction, with impact confined to availability (no confidentiality or integrity loss). This is a clean denial-of-service primitive - a roughly 200-byte SLD reliably crashes the parser - making it trivially repeatable against any internet-facing WMS endpoint that accepts user-supplied SLD via SLD_BODY. Tempering that, exploitation is currently no public exploit identified at time of analysis, the CVE is not in CISA KEV, and EPSS data was not provided, so widespread active exploitation cannot be asserted. SSVC decision data was also not supplied. Net assessment: a genuine availability risk for exposed SLD-enabled WMS deployments that warrants prompt patching, but not a code-execution or data-exposure threat. |
| Exploit ScenarioDerived | An attacker locates an internet-facing MapServer WMS endpoint and issues an unauthenticated request with an SLD_BODY parameter containing a small, well-formed SLD whose <Rule> includes <ElseFilter/> but no symbolizer. Parsing dereferences a NULL pointer and the MapServer process crashes, denying service to legitimate users; the request can be replayed to sustain the outage. No public exploit is identified, but the trigger is described in enough detail to reconstruct easily given AV:N/AC:L. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Denial of service in MapServer 6.4.0 through 8.6.2 allows remote unauthenticated attackers to crash the server by submitting a small well-formed SLD document via the WMS SLD_BODY= parameter. The flaw is a NULL pointer dereference reached when an SLD <Rule> carries <ElseFilter/> but defines no symbolizer, causing the styling code to index a class array at position -1. No public exploit has been identified at time of analysis, and the issue is fixed in version 8.6.3.
RemediationAI
Apply the vendor-released patch: upgrade to MapServer 8.6.3, which contains the fix. Where immediate upgrade is not possible, reduce exposure by disabling or restricting user-supplied SLD on the WMS service - block or reject the SLD_BODY and SLD parameters at a reverse proxy or WAF, and restrict network access to the WMS endpoint to trusted clients; the trade-off is that legitimate clients relying on dynamic SLD styling will lose that capability until patched. Refer to the advisory at https://github.com/MapServer/MapServer/security/advisories/GHSA-4h8g-378q-r75m for authoritative guidance.
Affected VersionsENISA
Affected Packages
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 is a widely deployed open-source server for web-based GIS that implements OGC services including WMS. The vulnerability lives in its Styled Layer Descriptor (SLD) handling: msSLDParseUserStyle unconditionally calls _SLDApplyRuleValues(psRule, psLayer, 1) for any rule containing <ElseFilter/>, assuming msSLDParseRule had created exactly one class. When the rule is structurally valid but contains no symbolizer, msSLDParseRule adds zero classes, so _SLDApplyRuleValues dereferences _class[-1]. This maps to CWE-129 (Improper Validation of Array Index): the code trusts an assumed array length instead of checking the actual class count before indexing, and the resulting negative index produces a NULL pointer dereference and process crash.
Know when Mapserver gets its next vulnerability
- 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
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from GitHub Advisory.
CVSS VectorGitHub Advisory
Lifecycle Timeline
1DescriptionGitHub Advisory
MapServer is a system for developing web-based GIS applications. From 6.4.0 to before 8.6.3, msSLDParseUserStyle always calls _SLDApplyRuleValues(psRule, psLayer, 1); for any <Rule> carrying <ElseFilter/> - it assumes msSLDParseRule added one class. When the rule has no symbolizer (a structurally valid SLD), msSLDParseRule adds zero, and _SLDApplyRuleValues ends up indexing _class[-1], resulting in a NULL pointer dereference. A 200-byte well-formed SLD via the WMS SLD_BODY= parameter is enough to trigger this, no auth required. This vulnerability is fixed in 8.6.3.
Executive ViewAI
MapServer versions 6.4.0 through 8.6.2 contain a denial-of-service vulnerability allowing remote attackers to crash the server through a malformed WMS styling request. Organizations operating MapServer for web mapping or GIS services face service unavailability risk; business impact depends on whether affected systems are critical to operational workflows.
Vendor-released patch: version 8.6.3. If immediate patching is infeasible, implement network-level access controls limiting exposure to WMS endpoints, disable the SLD_BODY parameter where operationally acceptable, and enforce request rate limiting to reduce denial-of-service surface.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
MapServer is a system for developing web-based GIS applications. Rated high severity (CVSS 8.9), this vulnerability is r
Stack-based buffer overflow in MapServer before 6.0.6, 6.2.x before 6.2.4, 6.4.x before 6.4.5, and 7.0.x before 7.0.4 al
Unauthenticated SQL injection in MapServer 8.4.0 through 8.6.3 lets remote attackers who can reach a PostGIS-backed quer
In MapServer before 7.0.3, OGR driver error messages are too verbose and may leak sensitive information if data connecti
SQL injection vulnerability in the msPostGISLayerSetTimeFilter function in mappostgis.c in MapServer before 6.4.1, when
Reflected XSS in MapServer 6.0 through 8.6.1 allows unauthenticated remote attackers to inject arbitrary HTML and JavaSc
Reflected cross-site scripting (CWE-79) in MapServer's OpenLayers HTML output affects versions 6.0 through 8.6.3 and is
MapServer versions 4.2 through 8.6.0 are vulnerable to a heap buffer overflow in the SLD (Styled Layer Descriptor) parse
MapServer before 7.0.8, 7.1.x and 7.2.x before 7.2.3, 7.3.x and 7.4.x before 7.4.5, and 7.5.x and 7.6.x before 7.6.3 doe
EUVD-2026-32631
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB