Synopsis
The remote Ubuntu host is missing one or more security updates.
Description
The remote Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 22.04 LTS / 24.04 LTS / 26.04 LTS host has packages installed that are affected by multiple vulnerabilities as referenced in the USN-9495-1 advisory.
It was discovered that MapServer did not properly enforce restrictions on the locations from which a mapfile could be loaded. A remote attacker could possibly use this issue to load unintended mapfiles.
This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, and Ubuntu 20.04 LTS. (CVE-2021-32062)
It was discovered that MapServer incorrectly handled certain XML filter queries. A remote attacker could possibly use this issue to perform SQL injection attacks. This issue only affected Ubuntu 16.04 LTS, Ubuntu 18.04 LTS, Ubuntu 20.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 24.04 LTS.
(CVE-2025-59431)
It was discovered that MapServer incorrectly handled certain Styled Layer Descriptor files. A remote attacker could possibly use this issue to cause MapServer to crash, resulting in a denial of service.
(CVE-2026-33721)
It was discovered that MapServer incorrectly handled certain WMS requests. A remote attacker could possibly use this issue to execute arbitrary JavaScript in a victim's browser, resulting in a cross-site scripting attack. (CVE-2026-42030)
It was discovered that MapServer incorrectly handled certain Styled Layer Descriptor files. A remote attacker could possibly use this issue to cause MapServer to crash, resulting in a denial of service.
(CVE-2026-45104)
It was discovered that MapServer incorrectly handled certain forwarded host headers in its OpenLayers output. A remote attacker could possibly use this issue to execute arbitrary JavaScript in a victim's browser, resulting in a cross-site scripting attack. (CVE-2026-54355)
It was discovered that MapServer incorrectly handled certain request parameters in its OGC API Features HTML output. A remote attacker could possibly use this issue to execute arbitrary JavaScript in a victim's browser, resulting in a cross-site scripting attack. This issue only affected Ubuntu 24.04 LTS and Ubuntu 26.04 LTS. (CVE-2026-77323)
It was discovered that MapServer incorrectly handled certain WCS GetCoverage requests. A remote attacker could possibly use this issue to cause MapServer to crash, resulting in a denial of service.
(CVE-2026-77324)
It was discovered that MapServer did not properly sanitize certain values in its OpenLayers output. A remote attacker could possibly use this issue to execute arbitrary JavaScript in a victim's browser, resulting in a cross-site scripting attack. (CVE-2026-77325)
It was discovered that MapServer incorrectly handled certain WMS GetLegendGraphic requests. A remote attacker could possibly use this issue to cause MapServer to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2026-77326)
It was discovered that MapServer incorrectly handled certain values in PostgreSQL JOIN queries. An attacker could possibly use this issue to perform SQL injection attacks and obtain sensitive information.
(CVE-2026-77328)
Tenable has extracted the preceding description block directly from the Ubuntu security advisory.
Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.
Solution
Update the affected packages.
Plugin Details
File Name: ubuntu_USN-9495-1.nasl
Agent: unix
Supported Sensors: Nessus Agent, Continuous Assessment, Nessus
Risk Information
Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:P/A:N
Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C
Threat Vector: CVSS:4.0/E:P
Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Vulnerability Information
CPE: cpe:/o:canonical:ubuntu_linux:16.04:-:lts, cpe:/o:canonical:ubuntu_linux:18.04:-:lts, cpe:/o:canonical:ubuntu_linux:20.04:-:lts, cpe:/o:canonical:ubuntu_linux:22.04:-:lts, cpe:/o:canonical:ubuntu_linux:24.04:-:lts, cpe:/o:canonical:ubuntu_linux:26.04:-:lts, cpe:/o:canonical:ubuntu_linux:pro:-:lts, p-cpe:/a:canonical:ubuntu_linux:cgi-mapserver, p-cpe:/a:canonical:ubuntu_linux:libmapscript-java, p-cpe:/a:canonical:ubuntu_linux:libmapscript-perl, p-cpe:/a:canonical:ubuntu_linux:libmapserver2, p-cpe:/a:canonical:ubuntu_linux:libmapserver2t64, p-cpe:/a:canonical:ubuntu_linux:mapserver-bin, p-cpe:/a:canonical:ubuntu_linux:php-mapscript-ng, p-cpe:/a:canonical:ubuntu_linux:php-mapscript, p-cpe:/a:canonical:ubuntu_linux:python-mapscript, p-cpe:/a:canonical:ubuntu_linux:python3-mapscript, p-cpe:/a:canonical:ubuntu_linux:ruby-mapscript
Required KB Items: Host/cpu, Host/Debian/dpkg-l, Host/Ubuntu, Host/Ubuntu/release
Exploit Ease: Exploits are available
Patch Publication Date: 12/3/2026
Vulnerability Publication Date: 5/5/2021
Reference Information
CVE: CVE-2021-32062, CVE-2025-59431, CVE-2026-33721, CVE-2026-42030, CVE-2026-45104, CVE-2026-54355, CVE-2026-77323, CVE-2026-77324, CVE-2026-77325, CVE-2026-77326, CVE-2026-77328