CVE-2026-33721

MapServer has heap buffer overflow in SLD `Categorize` Threshold parsing

Published Mar 27, 2026 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
MapServer is a system for developing web-based GIS applications. Starting in version 4.2 and prior to version 8.6.1, a heap-buffer-overflow write in MapServer’s SLD (Styled Layer Descriptor) parser lets a remote, unauthenticated attacker crash the MapServer process by sending a crafted SLD with more than 100 Threshold elements inside a ColorMap/Categorize structure (commonly reachable via WMS GetMap with SLD_BODY). Version 8.6.1 patches the issue.

Analysis

AI-generated

Technical impact

A heap buffer overflow occurs in the Styled Layer Descriptor (SLD) parser of MapServer when more than 100 Threshold elements are present in a ColorMap/Categorize block. An attacker can supply a crafted SLD via the WMS GetMap request (using the SLD_BODY parameter) to trigger the overflow, causing the MapServer process to crash. The overflow is a classic memory corruption flaw (CWE‑787) that leads to a denial‑of‑service condition.

Affected Systems

This weakness impacts MapServer versions starting from 4.2 up to, but not including, 8.6.1. The affected product is the MapServer GIS server developed by OSGeo.

Risk and Exploitability

The CVSS score of 5.3 indicates moderate severity, while the EPSS score of less than 1 % suggests a low probability of widespread exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers would need network access to a MapServer instance that accepts SLD_BODY in WMS GetMap requests, but no authentication is required. Once the crafted SLD is processed, the server crashes, interrupting availability for all clients until restarted.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update MapServer to version 8.6.1 or later.
  • If an immediate upgrade is not possible, disable SLD_BODY processing or restrict WMS endpoints to trusted networks.
  • Monitor server logs for repeated crash indications and apply temporary service hardening such as limiting the number of Threshold elements allowed.
  • Verify that no older MapServer binaries are running on the system.

Generated by OpenCVE AI on April 2, 2026 at 04:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4537-1 mapserver security update
History
Type Values Removed Values Added
First Time appeared Osgeo
Osgeo mapserver
CPEs cpe:2.3:a:osgeo:mapserver:*:*:*:*:*:*:*:*
Vendors & Products Osgeo
Osgeo mapserver
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mapserver
Mapserver mapserver
Vendors & Products Mapserver
Mapserver mapserver
Type Values Removed Values Added
Description MapServer is a system for developing web-based GIS applications. Starting in version 4.2 and prior to version 8.6.1, a heap-buffer-overflow write in MapServer’s SLD (Styled Layer Descriptor) parser lets a remote, unauthenticated attacker crash the MapServer process by sending a crafted SLD with more than 100 Threshold elements inside a ColorMap/Categorize structure (commonly reachable via WMS GetMap with SLD_BODY). Version 8.6.1 patches the issue.
Title MapServer has heap buffer overflow in SLD `Categorize` Threshold parsing
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 17, 2026, 5:18 PM
Reserved
Mar 23, 2026, 5:34 PM
Status
Modified
Published
Mar 27, 2026, 1:16 AM
Modified
Jun 17, 2026, 10:37 AM
Severity
Important
Public date
Mar 27, 2026, 12:15 AM