UBUNTU-CVE-2026-54355 (CVE-2026-54355)
Vulnerability from osv_ubuntu – Published: 2026-09-17 21:17 – Updated: 2026-09-23 23:31 – Source websiteMapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.4, MapServer's OpenLayers HTML output for SERVICE=WMS&REQUEST=GetMap&FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host value received as HTTP_X_FORWARDED_HOST through msBuildOnlineResource(), processLine(), and the [mapserv_onlineresource] substitution in src/maputil.c and src/maptemplate.c without escaping it for a single-quoted JavaScript string. When the deployment trusts the forwarded header and does not configure a fixed ows_onlineresource or MS_ONLINERESOURCE value, embedded single quotes can escape the generated URL string. An unauthenticated attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin when opened by a victim, enabling access to sessions or tokens, same-origin data and requests, and actions as the victim. This issue is fixed in version 8.6.4.
{
"affected": [
{
"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_name": "libmapscript-perl",
"binary_version": "7.0.0-9ubuntu3.1"
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@7.0.0-9ubuntu3.1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.7-1build2"
},
{
"binary_name": "libmapscript-java",
"binary_version": "7.0.7-1build2"
},
{
"binary_name": "libmapscript-perl",
"binary_version": "7.0.7-1build2"
},
{
"binary_name": "libmapserver2",
"binary_version": "7.0.7-1build2"
},
{
"binary_name": "mapserver-bin",
"binary_version": "7.0.7-1build2"
},
{
"binary_name": "python-mapscript",
"binary_version": "7.0.7-1build2"
},
{
"binary_name": "ruby-mapscript",
"binary_version": "7.0.7-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@7.0.7-1build2?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.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_name": "python3-mapscript",
"binary_version": "7.4.3-2build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@7.4.3-2build1?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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.6.4-2build2"
},
{
"binary_name": "libmapscript-java",
"binary_version": "7.6.4-2build2"
},
{
"binary_name": "libmapscript-perl",
"binary_version": "7.6.4-2build2"
},
{
"binary_name": "libmapserver2",
"binary_version": "7.6.4-2build2"
},
{
"binary_name": "mapserver-bin",
"binary_version": "7.6.4-2build2"
},
{
"binary_name": "python3-mapscript",
"binary_version": "7.6.4-2build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@7.6.4-2build2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"7.6.3-1~exp1ubuntu1",
"7.6.4-2",
"7.6.4-2build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "cgi-mapserver",
"binary_version": "8.0.1-4ubuntu2"
},
{
"binary_name": "libmapscript-java",
"binary_version": "8.0.1-4ubuntu2"
},
{
"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"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@8.0.1-4ubuntu2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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_name": "cgi-mapserver",
"binary_version": "8.6.0-1build1"
},
{
"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_name": "mapserver-bin",
"binary_version": "8.6.0-1build1"
},
{
"binary_name": "php-mapscript-ng",
"binary_version": "8.6.0-1build1"
},
{
"binary_name": "python3-mapscript",
"binary_version": "8.6.0-1build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "mapserver",
"purl": "pkg:deb/ubuntu/mapserver@8.6.0-1build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"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"
]
}
],
"aliases": [],
"details": "MapServer is a system for developing web-based GIS applications. From 6.0 until 8.6.4, MapServer\u0027s OpenLayers HTML output for SERVICE=WMS\u0026REQUEST=GetMap\u0026FORMAT=application/openlayers reflects an attacker-controlled X-Forwarded-Host value received as HTTP_X_FORWARDED_HOST through msBuildOnlineResource(), processLine(), and the [mapserv_onlineresource] substitution in src/maputil.c and src/maptemplate.c without escaping it for a single-quoted JavaScript string. When the deployment trusts the forwarded header and does not configure a fixed ows_onlineresource or MS_ONLINERESOURCE value, embedded single quotes can escape the generated URL string. An unauthenticated attacker can craft a URL that executes arbitrary JavaScript in the MapServer site origin when opened by a victim, enabling access to sessions or tokens, same-origin data and requests, and actions as the victim. This issue is fixed in version 8.6.4.",
"id": "UBUNTU-CVE-2026-54355",
"modified": "2026-09-23T23:31:21Z",
"published": "2026-09-17T21:17:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-54355"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-54355"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/security/advisories/GHSA-xqj6-vjqr-33vv"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/pull/7517"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/pull/7518"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/commit/edc1033c7963fcffd160d85cf430f49aaf4a1374"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/commit/ff17ef190caaeaa9002ac3d1c7969ec5315c345e"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/commit/edc1033c7963fcffd160d85cf430f49aaf4a1374"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/commit/ff17ef190caaeaa9002ac3d1c7969ec5315c345e"
},
{
"type": "REPORT",
"url": "https://github.com/MapServer/MapServer/releases/tag/rel-8-6-4"
},
{
"type": "REPORT",
"url": "https://mapserver.org/development/changelog/changelog-8-6.html#changelog-8-6"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N",
"type": "CVSS_V4"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-54355"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.