{"id":"CVE-2026-77326","aliases":[],"cve":{"records":[{"id":"CVE-2026-77326","source":"GitHub_M","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-08-20T19:24:11.617Z","published":"2026-11-20T19:09:20.128Z","modified":"2026-11-20T19:19:28.541Z"}],"publishers":[{"name":"GitHub_M","role":"CNA","organizationId":"a0819718-46f1-4df5-94e2-005712e83aaa","modified":"2026-11-20T19:09:20.128Z"},{"name":"CISA-ADP","role":"ADP","organizationId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","modified":"2026-11-20T19:19:28.541Z"}],"references":[{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959","tags":["x_refsource_CONFIRM"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/pull/7555","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/pull/7569","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7b","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5","tags":["x_refsource_MISC"],"source":"GitHub_M"},{"url":"https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959","tags":["exploit"],"source":"CISA-ADP"}],"weaknesses":[{"id":"CWE-787","description":"CWE-787: Out-of-bounds Write","source":"GitHub_M"}],"applicability":[],"prioritization":[{"source":"CISA-ADP","type":"SSVC","role":"CISA Coordinator","timestamp":"2026-11-20T19:19:13.754291Z","decisions":[{"name":"Exploitation","value":"poc"},{"name":"Automatable","value":"yes"},{"name":"Technical Impact","value":"partial"}]}]},"title":"MapServer: Heap buffer overflow in WMS GetLegendGraphic via repeated LAYER parameters","titleSource":"GitHub_M","descriptionSource":"GitHub_M","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.","score":8.6,"severity":"high","published":"2026-11-20T19:09:20.128Z","modified":"2026-11-20T19:19:28.541Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"MapServer","name":"MapServer","platforms":[],"versions":[{"version":"< 8.6.5","status":"affected"}],"cpes":[],"source":"GitHub_M","url":"https://www.cve.org/CVERecord?id=CVE-2026-77326"}],"remediation":[],"references":["https://github.com/MapServer/MapServer/security/advisories/GHSA-4mwc-qc95-5959","https://github.com/MapServer/MapServer/pull/7555","https://github.com/MapServer/MapServer/pull/7569","https://github.com/MapServer/MapServer/commit/a7d5eb844a59ea076b7972a018753242f18e6f7b","https://github.com/MapServer/MapServer/commit/ea1d87a6d45bbe5814a545a8b4d6a5e6b6842ea8","https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5"],"sources":[{"name":"CVE","id":"CVE-2026-77326","modified":"2026-11-20T19:19:28.541Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-77326"}],"assessments":[{"source":"GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","score":8.6}],"sourceAffected":[],"observedAt":"2026-11-20T19:42:31.487Z","kev":{"status":"not-listed","checkedAt":"2026-11-28T23:10:31.542Z"},"coverage":[{"source":"NVD","status":"available","checkedAt":"2026-11-20T20:00:34.272Z","attemptedAt":"2026-11-20T20:00:34.272Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-11-20T19:55:34.168Z","attemptedAt":"2026-11-20T19:55:34.168Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-11-20T19:55:33.992Z","attemptedAt":"2026-11-20T19:55:33.992Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-11-20T19:55:33.508Z","attemptedAt":"2026-11-20T19:55:33.508Z"}],"evidence":[{"source":"NVD","id":"CVE-2026-77326","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-77326","modified":"2026-11-20T19:18:54.110","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H","checkedAt":"2026-11-20T20:00:34.272Z"}],"aiSummary":{"text":"MapServer versions before 8.6.5 have a heap buffer overflow via repeated LAYER parameters in a WMS GetLegendGraphic request, allowing an unauthenticated attacker to potentially crash the process or execute code. The issue is caused by a lack of capacity retention or reallocation in the msWMSDispatch() function. Code execution was not demonstrated.","model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","generatedAt":"2026-11-20T19:46:04.006Z","sources":[{"name":"CVE","url":"https://www.cve.org/CVERecord?id=CVE-2026-77326"}]}}