CVE-2026-45104
published high CVSS 3.1 · 7.5MapServer: NULL pointer dereference in SLD `<ElseFilter>` rule parsing reachable via WMS `SLD_BODY`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MapServer | — | MapServer>= 6.4.0, < 8.6.3 | Affected | Not stated | GitHub_M |
| Debian | bookworm | mapserver | Advisory build | 8.0.0-3+deb12u2 | DLA-4935-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libjavamapscriptaarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libjavamapscriptppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libjavamapscriptx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmapserver2aarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmapserver2ppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | libmapserver2x86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
Show 15 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserveraarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserverppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserverx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserver-develaarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserver-develppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | mapserver-develx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-mapscriptaarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-mapscriptppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | perl-mapscriptx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-mapscriptngaarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-mapscriptngppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-mapscriptngx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mapserveraarch64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mapserverppc64le | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mapserverx86_64 | Advisory build | 8.6.3-bp160.1.1 | OPENSUSE-SU-2026:20857-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MapServer | MapServer | >= 6.4.0, < 8.6.3 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-129 CWE-129: Improper Validation of Array Index
- CWE-476 CWE-476: NULL Pointer Dereference
References
1Provider assertions
2GitHub_M · cna
MapServer: NULL pointer dereference in SLD `<ElseFilter>` rule parsing reachable via WMS `SLD_BODY`
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- b647ff2d0e1602e21c3e0c286a1aa230c87819a2ad01b4f45f5cfd8532e750f8
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record