CVE-2026-77326
MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
Mitigation
- Upgrade MapServer to 8.6.5 or later.
Who should check
- Anyone running MapServer < 8.6.5
Vulnerability facts
- Affected
- MapServer < 8.6.5
- Fixed in
- MapServer 8.6.5
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 8.6 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: High
- EPSS
- 0.96% chance of exploitation in 30 days (percentile 60, 2026-11-28)
- CWE
- CWE-787
- Modified
Description
MapServer is a system for developing web-based GIS applications. From 8.2.0 until 8.6.5, an unauthenticated attacker can send a WMS GetLegendGraphic request with a nonempty BBOX and repeated LAYER parameters to trigger a heap buffer overflow in msWMSDispatch() in src/mapwms.cpp. The handler appends synthesized entries to cgiRequestObj.ParamNames and cgiRequestObj.ParamValues at NumParams without retaining the arrays' capacity or reallocating them, while incrementing NumParams inside the loop. Once the parser's hidden capacity is exhausted, the writes pass the heap allocation boundary. A single request can corrupt heap memory and crash the process; code execution may be possible but was not demonstrated. This issue is fixed in version 8.6.5.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| MapServer | < 8.6.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-77326. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-77326.md Affected: MapServer < 8.6.5 Fixed in: MapServer 8.6.5 Steps: 1. Search this machine and project for MapServer: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
FAQ
Is CVE-2026-77326 being exploited?
There is no confirmed exploitation: CVE-2026-77326 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.96% chance of exploitation in the next 30 days (as of 2026-11-28).
How serious is CVE-2026-77326?
High: CVSS 8.6 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-77326?
MapServer < 8.6.5.
Is there a fix for CVE-2026-77326?
Yes. Fixed in MapServer 8.6.5. Upgrade MapServer to 8.6.5 or later.
How do I check if I'm affected by CVE-2026-77326?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More mapserver vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.9 | CVE-2026-77328 MapServer: PostgreSQL JOIN second-order SQL injection in src/mappostgresql.c | MapServer | EPSS 66% | |
| MEDIUM 6.1 | CVE-2026-77325 MapServer: Reflected XSS in WMS OpenLayers output via the `X-Forwarded-Host` header | MapServer | EPSS 42% | |
| MEDIUM 5.3 | CVE-2026-77323 MapServer Reflected XSS via unescaped offset/limit query params injected into <script> in OGC API Features HTML output | MapServer | EPSS 59% | |
| HIGH 7.5 | CVE-2026-77324 MapServer: WCS POST: NULL-Dereference Denial of Service When `BoundingBox` Omits `crs` | MapServer | EPSS 75% | |
| MEDIUM 6.9 | CVE-2026-77327 MapServer: MySQL JOIN second-order SQL injection in src/mapjoin.c | MapServer | EPSS 68% |