CVE-2026-77326

Source
https://cve.org/CVERecord?id=CVE-2026-77326
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-77326.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-77326
Aliases
  • GHSA-4mwc-qc95-5959
Downstream
Published
2026-11-20T19:09:20Z
Modified
2026-11-21T21:00:55Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H CVSS Calculator
Summary
MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters
Details

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.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-787"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77326.json"
}
References

Affected packages

Git / github.com/mapserver/mapserver

Affected ranges

Type
GIT
Repo
https://github.com/mapserver/mapserver
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "fixed": "8.6.5"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StringRangeExpression"
        },
        {
            "range": [
                {
                    "fixed": "a7d5eb844a59ea076b7972a018753242f18e6f7b"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "range": [
                {
                    "fixed": "ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8"
                }
            ],
            "source": "REFERENCES_COMMIT"
        },
        {
            "original_tag": "rel-8-6-5",
            "range": [
                {
                    "fixed": "d25c31936f3f67911a56560e95ed2c8a7cb8ab4f"
                }
            ],
            "source": "REFERENCES_TAG"
        }
    ]
}

Affected versions

Other
rel-3-4
rel-3-5-0
rel-4-0-0
rel-4-10-0
rel-4-10-0-beta1
rel-4-10-0-beta2
rel-4-10-0-beta3
rel-4-10-0-rc1
rel-4-4-0
rel-4-4-0-beta1
rel-4-4-0-beta2
rel-4-4-0-beta3
rel-4-6-0
rel-4-6-0-beta1
rel-4-6-0-beta2
rel-4-6-0-beta3
rel-4-6-0-rc1
rel-4-8-0-beta1
rel-4-8-0-beta2
rel-4-8-0-beta3
rel-4-8-0-rc2
rel-6-4-0
rel-6-4-0-beta1
rel-6-4-0-beta2
rel-6-4-0-rc1
rel-8-6-0
rel-8-6-0-beta1
rel-8-6-0-beta2
rel-8-6-0-rc1
rel-8-6-1
rel-8-6-2
rel-8-6-3
rel-8-6-4
styleObj

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-77326.json"