Quantum Secular Labs / Blog / Advisories
CVE-2009-0841: Osgeo Mapserver: Path traversal
CVE-2009-0841 has a CVSS v2 base score of 10.0 (the maximum on that scale) and affects Osgeo Mapserver. Per its scoring, it can be exploited over the network, without authentication. The scored impact on confidentiality, integrity and availability is the highest available.
Vulnerability description
Directory 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.
Severity breakdown
CVSS v2.0 10.0: AV:N/AC:L/Au:N/C:C/I:C/A:C
- Access vector: Network. Exploitable remotely over the network.
- Access complexity: Low. No special conditions are required.
- Authentication: None. No authentication is needed.
- Confidentiality impact: Complete. Total information disclosure.
- Integrity impact: Complete. Total loss of integrity.
- Availability impact: Complete. Total shutdown of the component.
Underlying weakness
CWE-22: Improper Limitation of a Pathname to a Restricted Directory
The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Affected products
- Osgeo Mapserver: 4.2.0 beta1; 4.4.0; 4.4.0 beta1; 4.4.0 beta2; 4.4.0 beta3; 4.6.0; 4.6.0 beta1; 4.6.0 beta2; 4.6.0 beta3; 4.6.0 rc1; 4.8.0 beta1; 4.8.0 beta2
- Umn Mapserver: 4.0; 4.0 beta1; 4.0 beta2
References
- http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html
- http://trac.osgeo.org/mapserver/ticket/2942
- http://www.positronsecurity.com/advisories/2009-000.html
- http://secunia.com/advisories/34520
- http://secunia.com/advisories/34603
- http://www.debian.org/security/2009/dsa-1914
- http://www.securityfocus.com/archive/1/502271/100/0/threaded
- http://www.securityfocus.com/bid/34306
- http://www.securitytracker.com/id?1021952
- https://exchange.xforce.ibmcloud.com/vulnerabilities/49548
- https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.html
- https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.html