Buffer overflow in Mapserver
CVE-2026-33721
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.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.012, 69.8th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Mapserver — versions >= 4.2, < 8.6.1
- Osgeo Mapserver
Weakness classification (CWE)
References
- https://github.com/MapServer/MapServer/security/advisories/GHSA-cv4m-mr84-fgjp (Exploit, Mitigation, Vendor Advisory)
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-1 (Product, Release Notes)
- lists.debian.org/debian-lts-announce/2026/04/msg00017.html