MapServerに認証不要で攻撃され、ヒープ領域が壊される脆弱性
Summary
MapServerのWMS GetLegendGraphic処理に、ヒープバッファオーバーフローの脆弱性が見つかりました。認証なしで細工したリクエストを送られると、メモリが壊れてプロセスが異常終了するおそれがあります。影響を受けるのは8.2.0から8.6.5までの版で、修正版の8.6.5で対応できます。コード実行の可能性も指摘されていますが、実証はされていません。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
MapServerのWMS GetLegendGraphic処理に、ヒープバッファオーバーフローの脆弱性が見つかりました。認証なしで細工したリクエストを送られると、メモリが壊れてプロセスが異常終了するおそれがあります。影響を受けるのは8.2.0から8.6.5までの版で、修正版の8.6.5で対応できます。コード実行の可能性も指摘されていますが、実証はされていません。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-77326 mapserver Fix available
- Ubuntu UBUNTU-CVE-2026-77326 mapserver No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- web github.com