Quantum Secular Labs / Blog / Advisories

CVE-2009-0840: Osgeo Mapserver: Buffer overflow

CVE-2009-0840 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

Heap-based buffer underflow in the readPostBody function in cgiutil.c in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2 allows remote attackers to have an unknown impact via a negative value in the Content-Length HTTP header.

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-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary.

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