Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| MapServer | MapServer | < 8.6.5 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | mapserver | 8.6.5-1 | — |
| Debian 13 | mapserver | No fix yet | — |
| Debian 12 | mapserver | 8.0.0-3+deb12u2 | DLA-4935-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | mapserver | No fix yet | — |
| Ubuntu 24.04 LTS | mapserver | No fix yet | — |
| Ubuntu 22.04 LTS | mapserver | No fix yet | — |
| Ubuntu 20.04 LTS | mapserver | No fix yet | — |
| Ubuntu 18.04 LTS | mapserver | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | mapserver | No fix yet | — |
Advisories 1
- DLA-4935-1 mapserver - security update Debian Security (DSA / DLA) · Nov 25, 2026
References
- 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