SQL injection in MapServer MySQL JOIN support via source attributes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- None · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
MapServer before 8.6.5 is affected. Its MySQL JOIN support copies a source layer attribute into a query without parameterization or escaping, which is an SQL injection flaw (CWE-89). When MySQL JOIN support is enabled, an attacker who controls that attribute, such as through imported shapefile or DBF data, can alter the JOIN predicate and read unrelated records from the MySQL or MariaDB JOIN table. CISA's SSVC assessment lists exploitation as proof of concept.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
Description from the CNA
MapServer is a system for developing web-based GIS applications. Prior to 8.6.5, MapServer's MySQL JOIN implementation in src/mapjoin.c copies the source layer attribute selected by JOIN ... FROM into joininfo->target and inserts it into the query built by msMySQLJoinNext() without parameterization or SQL escaping. When MySQL JOIN support is enabled, an attacker who can control that source feature attribute, including through imported shapefile or DBF data or another untrusted spatial source, can inject SQL operators or expressions that change the intended JOIN predicate. This can bypass the intended key comparison and expose unrelated records from the MySQL or MariaDB JOIN table through output templates, query responses, or downstream application logic. This issue is fixed in version 8.6.5.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade MapServer to version 8.6.5, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-20
- Fix · CNA MapServer (MapServer) Fixed in 8.6.5
Timeline
- 2026-11-20 Threatist record created from CVE-2026-77327
- 2026-11-20 CISA SSVC decision points changed
- 2026-11-25 EPSS moved to the below the 50th percentile
- 2026-11-27 EPSS moved to the 50th–90th percentile
References
Other 6
- https://github.com/MapServer/MapServer/security/advisories/GHSA-7624-4mwh-9cxr
- https://github.com/MapServer/MapServer/pull/7547
- https://github.com/MapServer/MapServer/pull/7567
- https://github.com/MapServer/MapServer/commit/b1aa22b1ea4ba4293c0fddea92e01ce0dc18a300
- https://github.com/MapServer/MapServer/commit/f4f95059e2610d431e0b46d75d713cd52b84f64c
- https://github.com/MapServer/MapServer/releases/tag/rel-8-6-5
More OSGeo vulnerabilities
- TI-2024-24187 Remote code execution in GeoServer via property name expressions KEVCVSS 3.1CRITICAL 9.8
- TI-2022-08629 Code generation flaw in jai-ext enables remote code execution KEVCVSS 3.1CRITICAL 10.0
- TI-2025-36149 Unauthenticated XXE in GeoServer WMS GetMap request KEVCVSS 3.1CRITICAL 9.8
- TI-2026-101125 Service security bypass in GeoServer via prefixed service names KEVCVSS 4.0HIGH 8.8
- TI-2026-101124 Unauthenticated XML injection in GeoServer WFS GetFeatureById KEVCVSS 3.1HIGH 8.6
- TI-2025-36983 MapServer - WFS XML Filter Query SQL injection CVSS 4.0HIGH 8.9
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences