{"id":"UBUNTU-CVE-2021-32062","details":"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).","modified":"2026-05-20T16:04:58.725748468Z","published":"2021-05-06T13:15:00Z","upstream":["CVE-2021-32062"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2021-32062"},{"type":"REPORT","url":"https://github.com/mapserver/mapserver/issues/6313"},{"type":"REPORT","url":"https://github.com/MapServer/MapServer/pull/6314"},{"type":"REPORT","url":"https://github.com/mapserver/mapserver/commit/927ac97cb9ece305306b5ab2b5600d3afe8c1732"},{"type":"REPORT","url":"https://github.com/mapserver/mapserver/commit/7db7cbb26b6bc6e651db268e9536836a56e6825a"},{"type":"REPORT","url":"https://github.com/mapserver/mapserver/commit/82a3eb5f6c8f75cedd095b909cc4990f3d8a99e1"},{"type":"REPORT","url":"https://mapserver.org/development/changelog/changelog-7-6.html"},{"type":"REPORT","url":"https://mapserver.org/development/changelog/changelog-7-0.html"},{"type":"REPORT","url":"https://mapserver.org/development/changelog/changelog-7-4.html"},{"type":"REPORT","url":"https://mapserver.org/development/changelog/changelog-7-2.html"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2021-32062"}],"affected":[{"package":{"name":"mapserver","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.0-4build1","7.0.0-5ubuntu1","7.0.0-7","7.0.0-8","7.0.0-8build1","7.0.0-9","7.0.0-9ubuntu1","7.0.0-9ubuntu2","7.0.0-9ubuntu3","7.0.0-9ubuntu3.1"],"ecosystem_specific":{"binaries":[{"binary_name":"cgi-mapserver","binary_version":"7.0.0-9ubuntu3.1"},{"binary_name":"libmapscript-java","binary_version":"7.0.0-9ubuntu3.1"},{"binary_version":"7.0.0-9ubuntu3.1","binary_name":"libmapscript-perl"},{"binary_name":"libmapserver2","binary_version":"7.0.0-9ubuntu3.1"},{"binary_name":"mapserver-bin","binary_version":"7.0.0-9ubuntu3.1"},{"binary_name":"python-mapscript","binary_version":"7.0.0-9ubuntu3.1"},{"binary_name":"ruby-mapscript","binary_version":"7.0.0-9ubuntu3.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.6-2build1","7.0.7-1","7.0.7-1build1","7.0.7-1build2"],"ecosystem_specific":{"binaries":[{"binary_name":"cgi-mapserver","binary_version":"7.0.7-1build2"},{"binary_name":"libmapscript-java","binary_version":"7.0.7-1build2"},{"binary_name":"libmapscript-perl","binary_version":"7.0.7-1build2"},{"binary_version":"7.0.7-1build2","binary_name":"libmapserver2"},{"binary_version":"7.0.7-1build2","binary_name":"mapserver-bin"},{"binary_name":"python-mapscript","binary_version":"7.0.7-1build2"},{"binary_name":"ruby-mapscript","binary_version":"7.0.7-1build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.4.1-1build1","7.4.1-1build3","7.4.2-1","7.4.2-1build1","7.4.3-1","7.4.3-1build2","7.4.3-2","7.4.3-2build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cgi-mapserver","binary_version":"7.4.3-2build1"},{"binary_name":"libmapscript-java","binary_version":"7.4.3-2build1"},{"binary_name":"libmapscript-perl","binary_version":"7.4.3-2build1"},{"binary_name":"libmapserver2","binary_version":"7.4.3-2build1"},{"binary_name":"mapserver-bin","binary_version":"7.4.3-2build1"},{"binary_name":"php-mapscript","binary_version":"7.4.3-2build1"},{"binary_name":"php-mapscript-ng","binary_version":"7.4.3-2build1"},{"binary_version":"7.4.3-2build1","binary_name":"python3-mapscript"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.6.3-1~exp1ubuntu1","7.6.4-2","7.6.4-2build2"],"ecosystem_specific":{"binaries":[{"binary_name":"cgi-mapserver","binary_version":"7.6.4-2build2"},{"binary_version":"7.6.4-2build2","binary_name":"libmapscript-java"},{"binary_name":"libmapscript-perl","binary_version":"7.6.4-2build2"},{"binary_name":"libmapserver2","binary_version":"7.6.4-2build2"},{"binary_version":"7.6.4-2build2","binary_name":"mapserver-bin"},{"binary_version":"7.6.4-2build2","binary_name":"python3-mapscript"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.0.1-2build1","8.0.1-2build2","8.0.1-2build3","8.0.1-2build5","8.0.1-4ubuntu1","8.0.1-4ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"8.0.1-4ubuntu2","binary_name":"cgi-mapserver"},{"binary_version":"8.0.1-4ubuntu2","binary_name":"libmapscript-java"},{"binary_name":"libmapscript-perl","binary_version":"8.0.1-4ubuntu2"},{"binary_name":"libmapserver2t64","binary_version":"8.0.1-4ubuntu2"},{"binary_name":"mapserver-bin","binary_version":"8.0.1-4ubuntu2"},{"binary_name":"php-mapscript-ng","binary_version":"8.0.1-4ubuntu2"},{"binary_name":"python3-mapscript","binary_version":"8.0.1-4ubuntu2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.0-1build1","8.4.0-4","8.4.0-4build1"],"ecosystem_specific":{"binaries":[{"binary_name":"cgi-mapserver","binary_version":"8.4.0-4build1"},{"binary_name":"libmapscript-java","binary_version":"8.4.0-4build1"},{"binary_name":"libmapscript-perl","binary_version":"8.4.0-4build1"},{"binary_name":"libmapserver2t64","binary_version":"8.4.0-4build1"},{"binary_name":"mapserver-bin","binary_version":"8.4.0-4build1"},{"binary_name":"php-mapscript-ng","binary_version":"8.4.0-4build1"},{"binary_version":"8.4.0-4build1","binary_name":"python3-mapscript"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}},{"package":{"name":"mapserver","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/mapserver?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.0-4build1","8.4.1-1","8.4.1-1build1","8.4.1-2","8.4.1-2build1","8.6.0-1","8.6.0-1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.6.0-1build1","binary_name":"cgi-mapserver"},{"binary_name":"libmapscript-java","binary_version":"8.6.0-1build1"},{"binary_name":"libmapscript-perl","binary_version":"8.6.0-1build1"},{"binary_name":"libmapserver2t64","binary_version":"8.6.0-1build1"},{"binary_version":"8.6.0-1build1","binary_name":"mapserver-bin"},{"binary_version":"8.6.0-1build1","binary_name":"php-mapscript-ng"},{"binary_version":"8.6.0-1build1","binary_name":"python3-mapscript"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32062.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}