CVE-2026-45104: MapServer: NULL pointer dereference in SLD `<ElseFilter>` rule parsing reachable via WMS `SLD_BODY`

Published May 27, 2026
·
Updated

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 SLDBODY= parameter is enough to trigger this, no auth required. This vulnerability is fixed in 8.6.3.

Affected Software

14 affected componentsFixes available
MapServer MapServer>=6.4.0<8.6.3
OSGeo MapServer>=6.4.0<8.6.3
debian/mapserver<8.0.0-3+deb12u2
8.0.0-3+deb12u2
debian/mapserver*
debian/mapserver<8.6.3-1
8.6.3-1
debian/mapserver<=8.0.0-3+deb12u1, <=8.4.0-4+deb13u2
8.0.0-3+deb12u28.6.3-1
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*
ubuntu/mapserver*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/mapserver to a version that resolves this vulnerability.

    Fixed in 8.0.0-3+deb12u2
  2. Upgrade

    Upgrade debian/mapserver to a version that resolves this vulnerability.

    Fixed in 8.6.3-1
  3. Upgrade

    Upgrade debian/mapserver to a version that resolves this vulnerability.

    Fixed in 8.0.0-3+deb12u2Fixed in 8.6.3-1
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.6.3

Event History

May 27, 2026
CVE Published
via MITRE·06:41 PM
Data Sourced
via MITRE·06:41 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·08:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·08:16 PM
DescriptionSeverityWeakness
Jun 2, 2026
Data Sourced
via NVD·06:19 PM
Affected Software
Updated
via NVD·06:19 PM
Weakness

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-45104?

The severity of CVE-2026-45104 is rated as high with a score of 7.5.

2

How do I fix CVE-2026-45104?

To fix CVE-2026-45104, upgrade your MapServer to version 8.6.3 or later.

3

What does CVE-2026-45104 affect?

CVE-2026-45104 affects MapServer versions from 6.4.0 up to but not including 8.6.3.

4

What type of vulnerability is CVE-2026-45104?

CVE-2026-45104 is a null pointer dereference vulnerability that can cause application crashes.

5

How can CVE-2026-45104 be exploited?

CVE-2026-45104 can be exploited via a crafted Web Map Service (WMS) request containing specific SLD elements.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203