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

2 affected components
MapServer MapServer>=6.4.0<8.6.3
OSGeo MapServer>=6.4.0<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 NVD·08:16 PM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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