Skip to main content

Mapserver: From 6.4.0 to before 8.6.3, msSLDParseUserStyle always calls _SLDApplyRuleValues(psRule, psLayer, 1); for any <Rule> carrying <ElseFilter/> — it… (CVE-2026-45104)

0
Medium
Published: 05/27/2026 (05/27/2026, 20:16:00 UTC)
Source: GCVE Database
Product: mapserver

Description

MapServer versions from 6.4.0 up to but not including 8.6.3 contain a vulnerability where processing a specific SLD (Styled Layer Descriptor) with an <ElseFilter/> element can cause a NULL pointer dereference. This occurs because the function msSLDParseUserStyle incorrectly assumes a class is added when it may not be, leading to an out-of-bounds index. A crafted 200-byte SLD via the WMS SLD_BODY parameter can trigger this without authentication. The issue is fixed in version 8.6.3.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Ubuntu:16.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=xenial
Affected versions
=7.0.0-4build1=7.0.0-5ubuntu1=7.0.0-7=7.0.0-8=7.0.0-8build1=7.0.0-9=7.0.0-9ubuntu1=7.0.0-9ubuntu2=7.0.0-9ubuntu3=7.0.0-9ubuntu3.1
Ubuntu:18.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=bionic
Affected versions
=7.0.6-2build1=7.0.7-1=7.0.7-1build1=7.0.7-1build2
Ubuntu:20.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=focal
Affected versions
=7.4.1-1build1=7.4.1-1build3=7.4.2-1=7.4.2-1build1=7.4.3-1=7.4.3-1build2=7.4.3-2=7.4.3-2build1
Ubuntu:22.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=jammy
Affected versions
=7.6.3-1~exp1ubuntu1=7.6.4-2=7.6.4-2build2
Ubuntu:24.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=noble
Affected versions
=8.0.1-2build1=8.0.1-2build2=8.0.1-2build3=8.0.1-2build5=8.0.1-4ubuntu1=8.0.1-4ubuntu2
Ubuntu:25.10more threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=questing
Affected versions
=8.4.0-1build1=8.4.0-4=8.4.0-4build1
Ubuntu:26.10more threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=stonking
Affected versions
=8.6.0-1build1=8.6.4-1=8.6.5-1=8.6.5-1build1
Ubuntu:26.04:LTSmore threats →ghsa
mapserver
pkg:deb/ubuntu/mapserver?arch=source&distro=resolute
Affected versions
=8.4.0-4build1=8.4.1-1=8.4.1-1build1=8.4.1-2=8.4.1-2build1=8.6.0-1=8.6.0-1build1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 01:30:53 UTC

Technical Analysis

MapServer, a web-based GIS application system, has a vulnerability in versions 6.4.0 through before 8.6.3 where the function msSLDParseUserStyle calls _SLDApplyRuleValues with an invalid index when processing an SLD <Rule> containing <ElseFilter/> without a symbolizer. This leads to a NULL pointer dereference due to indexing _class[-1]. The vulnerability can be triggered remotely without authentication by sending a well-formed 200-byte SLD via the WMS SLD_BODY parameter. The flaw is resolved in version 8.6.3.

Potential Impact

The vulnerability causes a NULL pointer dereference resulting in a denial of service (application crash) with no confidentiality, integrity, or authentication impact. It can be triggered remotely without authentication by sending a crafted SLD payload to the WMS service.

Mitigation Recommendations

An official fix is available in MapServer version 8.6.3. Users should upgrade to version 8.6.3 or later to remediate this vulnerability. No other mitigation or workaround is indicated.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-45104
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1

Threat ID: 6ad3f65b2cdf04f656665d52

Added to database: 10/17/2026, 22:27:39 UTC

Last enriched: 10/18/2026, 01:30:53 UTC

Last updated: 10/18/2026, 01:30:53 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses