HackerFeeds
All CVEs

CVE-2026-77326: MapServer Out-of-bounds Write

HIGH8.6

Published 2026-11-20 · Updated 2026-11-24 · Source security-advisories@github.com

Not known to be exploited · high severity — update MapServer to 8.6.5 or later in your next patch cycle.

What to do

  1. Update MapServer to version 8.6.5 or later. Versions from 8.2.0 up to, but not including, 8.6.5 are affected.
  2. Until it is patched, do not leave MapServer reachable from the internet or other untrusted networks; restrict access by firewall, VPN or allow-list.
  3. Avoid processing untrusted input with the affected component until it is updated.

Affected and fixed versions

ProductAffectedFixed in
MapServer≥ 8.2.0, < 8.6.58.6.5

Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.

How it can be exploited

It can be exploited remotely over the network; the attacker does not need an account, and no action by a victim is required. Attack complexity is low, so a working exploit is expected to be reliable. The impact on availability is rated high, and on confidentiality and integrity low.

CVSS 3.1 metrics for CVE-2026-77326
Attack vectorNetworkIt can be exploited remotely over the network.
Attack complexityLowNo special conditions are needed; the attack is repeatable.
Privileges requiredNoneThe attacker does not need an account.
User interactionNoneNo action by a victim is needed.
ConfidentialityLowPartial loss of confidentiality.
IntegrityLowPartial loss of integrity.
AvailabilityHighTotal loss of availability.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H

Weakness: Out-of-bounds Write

The software writes past the end of a buffer, corrupting memory in a way that can crash it or allow code execution.

Classified as CWE-787.

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.

Advisory text as published in the NVD record.

View on NVD