# CVE-2026-77326

MapServer heap overflow via WMS GetLegendGraphic allows crash and possible remote code execution.

- Page: https://www.vulneraibility.com/cve/CVE-2026-77326
- CVSS: 8.6
- Known exploited: not in CISA KEV as of our last sync
- EPSS: 0.96% (percentile 62.3)
- CISA SSVC: exploitation poc, automatable yes, technical impact partial (assessed 2026-11-20)
- Weakness: CWE-787
- Also known as: GHSA-4mwc-qc95-5959
- Published: 2026-11-20

## Affected versions

- MapServer: affected < 8.6.5

A version outside these ranges is not a statement that it is unaffected.

## Impact

Unauthenticated crafted WMS GetLegendGraphic (BBOX + repeated LAYER) triggers heap overflow, can crash service and may enable remote code execution.

## Action

Immediate action required

## Recommendation

Upgrade to MapServer 8.6.5; block or inspect WMS GetLegendGraphic requests until patched.

## References

- [other] https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959
- [other] https://github.com/MapServer/MapServer/pull/7555
- [other] https://github.com/MapServer/MapServer/pull/7569
- [other] https://github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7b
- [other] https://github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8
- [other] https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
