Osgeo Mapserver vulnerabilities
22 vulnerabilities
Known vulnerabilities in Osgeo Mapserver, newest first, with CVSS severity, EPSS, KEV listings, ransomware use and the affected versions.
PrioritiseCVE-2026-45104mapserver +3 moreMapServer: NULL pointer dereference in SLD `<ElseFilter>` rule parsing reachable via WMS `SLD_BODY`MapServer is a system for developing web-based GIS applications. From 6.4.0 to before 8.6.3, msSLDParseUserStyle always calls _SLDApplyRuleValues(psRule, psLayer, 1); for any <Rule> carrying <ElseFilter/> — it assumes msSLDParseRule added one class. When the rule has no symbolizer (a structurally valid SLD), msSLDParseRule adds zero, and _SLDApplyRuleValues ends up indexing _class[-1], resulting in a NULL pointer dereference. A 200-byte well-formed SLD via the WMS SLD_BODY= parameter is enough to trigger this, no auth required. This vulnerability is fixed in 8.6.3.CVSS7.5HighEPSS0.32%RoutineCVE-2026-42030mapserver +3 moreMapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewerMapServer is a system for developing web-based GIS applications. From version 6.0 to before version 8.6.2, a reflected XSS vulnerability in MapServer's WMS server allows an unauthenticated attacker to inject arbitrary HTML/JavaScript into the browser of any user who opens a crafted WMS URL. The vulnerability is triggered via FORMAT=application/openlayers combined with an unsanitized SRS parameter in WMS 1.3.0 requests. This issue has been patched in version 8.6.2.CVSS6.1MediumEPSS0.25%RoutineCVE-2026-33721mapserver +5 moreMapServer has heap buffer overflow in SLD `Categorize` Threshold parsingMapServer is a system for developing web-based GIS applications. Starting in version 4.2 and prior to version 8.6.1, a heap-buffer-overflow write in MapServer’s SLD (Styled Layer Descriptor) parser lets a remote, unauthenticated attacker crash the MapServer process by sending a crafted SLD with more than 100 Threshold elements inside a ColorMap/Categorize structure (commonly reachable via WMS GetMap with SLD_BODY). Version 8.6.1 patches the issue.CVSS7.5HighEPSS1.26%PrioritiseCVE-2025-59431mapserver +3 moreMapServer - WFS XML Filter Query SQL injectionMapServer is a system for developing web-based GIS applications. Prior to 8.4.1, the XML Filter Query directive PropertyName is vulnerably to Boolean-based SQL injection. It seems like expression checking is bypassed by introducing double quote characters in the PropertyName. Allowing to manipulate backend database queries. This vulnerability is fixed in 8.4.1.CVSS9.8CriticalEPSS0.43%RoutineCVE-2021-32062fedoraproject · fedora +3 morefedoraproject fedoraMapServer 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).CVSS5.3MediumEPSS1.51%PrioritiseCVE-2010-1678osgeo · mapserver +1 moreosgeo mapserverMapserver 5.2, 5.4 and 5.6 before 5.6.5-2 improperly validates symbol index values during Mapfile parsing.CVSS7.5HighEPSS2.17%PrioritiseCVE-2017-5522debian · debian_linux +3 moredebian debian_linuxStack-based buffer overflow in MapServer before 6.0.6, 6.2.x before 6.2.4, 6.4.x before 6.4.5, and 7.0.x before 7.0.4 allows remote attackers to cause a denial of service (crash) or execute arbitrary code via vectors involving WFS get feature requests.CVSS9.8CriticalEPSS4.76%PrioritiseCVE-2016-9839osgeo · mapserver +2 moreosgeo mapserverIn MapServer before 7.0.3, OGR driver error messages are too verbose and may leak sensitive information if data connection fails.CVSS7.5HighEPSS1.50%RoutineCVE-2013-7262osgeo · mapserver +3 moreosgeo mapserverSQL injection vulnerability in the msPostGISLayerSetTimeFilter function in mappostgis.c in MapServer before 6.4.1, when a WMS-Time service is used, allows remote attackers to execute arbitrary SQL commands via a crafted string in a PostGIS TIME filter.CVSS6.8MediumEPSS2.22%RoutineCVE-2011-2975osgeo · mapserver +2 moreosgeo mapserverDouble free vulnerability in the msAddImageSymbol function in mapsymbol.c in MapServer before 6.0.1 might allow remote attackers to cause a denial of service (application crash) or have unspecified other impact via crafted mapfile data.CVSS6.8MediumEPSS4.60%RoutineCVE-2011-2704osgeo · mapserver +2 moreosgeo mapserverStack-based buffer overflow in MapServer before 4.10.7 and 5.x before 5.6.7 allows remote attackers to execute arbitrary code via vectors related to OGC filter encoding.CVSS7.5HighEPSS5.22%RoutineCVE-2011-2703osgeo · mapserver +2 moreosgeo mapserverMultiple SQL injection vulnerabilities in MapServer before 4.10.7, 5.x before 5.6.7, and 6.x before 6.0.1 allow remote attackers to execute arbitrary SQL commands via vectors related to (1) OGC filter encoding or (2) WMS time support.CVSS7.5HighEPSS2.73%RoutineCVE-2010-2540osgeo · mapserver +2 moreosgeo mapservermapserv.c in mapserv in MapServer before 4.10.6 and 5.x before 5.6.4 does not properly restrict the use of CGI command-line arguments that were intended for debugging, which allows remote attackers to have an unspecified impact via crafted arguments.CVSS10.0CriticalEPSS3.83%RoutineCVE-2010-2539osgeo · mapserver +2 moreosgeo mapserverBuffer overflow in the msTmpFile function in maputil.c in mapserv in MapServer before 4.10.6 and 5.x before 5.6.4 allows local users to cause a denial of service via vectors involving names of temporary files.CVSS2.1LowEPSS0.32%RoutineCVE-2009-2281osgeo · mapserver +2 moreosgeo mapserverMultiple heap-based buffer underflows in the readPostBody function in cgiutil.c in mapserv in MapServer 4.x through 4.10.4 and 5.x before 5.4.2 allow remote attackers to execute arbitrary code via (1) a crafted Content-Length HTTP header or (2) a large HTTP request, related to an integer overflow that triggers a heap-based buffer overflow. NOTE: this issue reportedly exists because of an incomplete fix for CVE-2009-0840.CVSS10.0CriticalEPSS5.95%PrioritiseCVE-2009-1177osgeo · mapserver +2 moreosgeo mapserverMultiple stack-based buffer overflows in maptemplate.c in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2 have unknown impact and remote attack vectors.CVSS10.0CriticalEPSS2.87%PrioritiseCVE-2009-1176osgeo · mapserver +2 moreosgeo mapservermapserv.c in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2 does not ensure that the string holding the id parameter ends in a '\0' character, which allows remote attackers to conduct buffer-overflow attacks or have unspecified other impact via a long id parameter in a query action.CVSS10.0CriticalEPSS4.09%RoutineCVE-2009-0843osgeo · mapserver +2 moreosgeo mapserverThe msLoadQuery function in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2 allows remote attackers to determine the existence of arbitrary files via a full pathname in the queryfile parameter, which triggers different error messages depending on whether this pathname exists.CVSS7.8HighEPSS3.13%RoutineCVE-2009-0842osgeo · mapserver +2 moreosgeo mapservermapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2 allows remote attackers to read arbitrary invalid .map files via a full pathname in the map parameter, which triggers the display of partial file contents within an error message, as demonstrated by a /tmp/sekrut.map symlink.CVSS4.3MediumEPSS2.65%PrioritiseCVE-2009-0841osgeo · mapserver +2 moreosgeo mapserverDirectory traversal vulnerability in mapserv.c in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2, when running on Windows with Cygwin, allows remote attackers to create arbitrary files via a .. (dot dot) in the id parameter.CVSS10.0CriticalEPSS5.28%