Description
MapServer before 7.0.8, 7.1.x and 7.2.x before 7.2.3, 7.3.x and 7.4.x before 7.4.5, and 7.5.x and 7.6.x before 7.6.3 does not properly enforce the MS_MAP_NO_PATH and MS_MAP_PATTERN restrictions that are intended to control the locations from which a mapfile may be loaded (with MapServer CGI).
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 | 7.6.2-2 | — |
| Debian 13 | mapserver | 7.6.2-2 | — |
| Debian 12 | mapserver | 7.6.2-2 | — |
| Debian 11 | mapserver | 7.6.2-1+deb11u1 | DLA-4506-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | mapserver | No fix yet | — |
| Ubuntu 26.04 LTS | mapserver | No fix yet | — |
| Ubuntu 25.10 | mapserver | No fix yet | — |
| Ubuntu 24.04 LTS | mapserver | No fix yet | — |
| Ubuntu 22.04 LTS | mapserver | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | mapserver | No fix yet | — |
| Ubuntu 18.04 LTS | mapserver | No fix yet | — |
| Ubuntu 16.04 LTS | mapserver | No fix yet | — |
Advisories 1
- DLA-4506-1 mapserver - security update Debian Security (DSA / DLA) · Mar 23, 2026
References
- https://mapserver.org/development/changelog/changelog-7-6.html
- https://mapserver.org/development/changelog/changelog-7-4.html
- https://mapserver.org/development/changelog/changelog-7-2.html
- https://mapserver.org/development/changelog/changelog-7-0.html
- FEDORA-2021-74dadee887 vendor-advisory
- FEDORA-2021-faab70f09a vendor-advisory