# CVE-2026-33721: MapServer has heap buffer overflow in SLD `Categorize` Threshold parsing

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T00:15:00.360Z
- Modified: 2026-06-17T10:37:59.190Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- MapServer MapServer: >= 4.2, < 8.6.1
- osgeo mapserver: from 4.2.0 before 8.6.1

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## 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)
- <https://lists.debian.org/debian-lts-announce/2026/04/msg00017.html>

## Sources

- CVE List: [CVE-2026-33721](https://www.cve.org/CVERecord?id=CVE-2026-33721), CVE Terms of Use, modified 2026-04-17
- NVD: [CVE-2026-33721](https://nvd.nist.gov/vuln/detail/CVE-2026-33721), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-33721 · Whole record: https://cve.day/CVE-2026-33721.json · Rebuilt by cve.day 2026-11-25T22:59:17.355Z
