CVE-2009-0840
published 2009-03-31CVE-2009-0840: 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…
PriorityP346critical10CVSS 2.0
AVNACLAuNCCICAC
EPSS
5.28%
91.5th percentile
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.
Affected
20 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | mapserver | < mapserver 5.4.2-1 (bookworm) | mapserver 5.4.2-1 (bookworm) |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | — | — |
| osgeo | mapserver | >= 0 < 5.4.2-1 | 5.4.2-1 |
| osgeo | mapserver | >= 0 < 5.4.2-1 | 5.4.2-1 |
| osgeo | mapserver | >= 0 < 5.4.2-1 | 5.4.2-1 |
| osgeo | mapserver | >= 0 < 5.4.2-1 | 5.4.2-1 |
| umn | mapserver | — | — |
CVSS provenance
nvdv2.010.0CRITICALAV:N/AC:L/Au:N/C:C/I:C/A:C
osv10.0CRITICAL
vendor_debian10.0MEDIUM
vendor_redhat10.0CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2009-2281: mapserver - Multiple heap-based buffer underflows in the readPostBody function in cgiutil.c ...
vendor_debian·2009·CVSS 10.0
CVE-2009-2281 [CRITICAL] CVE-2009-2281: mapserver - Multiple heap-based buffer underflows in the readPostBody function in cgiutil.c ...
Multiple 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.
Scope: local
bookworm: resolved (fixed in 5.4.2-1)
bullseye: resolved (fixed in 5.4.2-1)
forky: resolved (fixed in 5.4.2-1)
sid: resolved (fixed in 5.4.2-1)
trixie: resolved (fixed in 5.4.2-1)
Debian
CVE-2009-0840: mapserver - Heap-based buffer underflow in the readPostBody function in cgiutil.c in mapserv...
vendor_debian·2009·CVSS 10.0
CVE-2009-0840 [CRITICAL] CVE-2009-0840: mapserver - Heap-based buffer underflow in the readPostBody function in cgiutil.c in mapserv...
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.
Scope: local
bookworm: resolved (fixed in 5.4.2-1)
bullseye: resolved (fixed in 5.4.2-1)
forky: resolved (fixed in 5.4.2-1)
sid: resolved (fixed in 5.4.2-1)
trixie: resolved (fixed in 5.4.2-1)
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-1177 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
Multiple 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.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-0839 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
Stack-based buffer overflow in mapserv.c in mapserv in MapServer 4.x before 4.10.4 and 5.x before 5.2.2, when the server has a map with a long IMAGEPATH or NAME attribute, allows remote attackers to execute arbitrary code via a crafted id parameter in a query action.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-1176 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserv.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.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-0842 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserv 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.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-0841 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
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.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-0840 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
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.
Red Hat
mapserver: incomplete upstream fix for CVE-2009-0840
vendor_redhat·CVSS 10.0
CVE-2009-2281 [CRITICAL] mapserver: incomplete upstream fix for CVE-2009-0840
mapserver: incomplete upstream fix for CVE-2009-0840
Multiple 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.
Red Hat
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
vendor_redhat·CVSS 10.0
CVE-2009-0843 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
The 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.
GHSA
GHSA-53rh-gvx6-42x8: Heap-based buffer underflow in the readPostBody function in cgiutil
ghsa_unreviewed·2022-05-02
CVE-2009-0840 [HIGH] CWE-119 GHSA-53rh-gvx6-42x8: Heap-based buffer underflow in the readPostBody function in cgiutil
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.
GHSA
GHSA-6726-5cj2-9h6f: Multiple heap-based buffer underflows in the readPostBody function in cgiutil
ghsa_unreviewed·2022-05-02·CVSS 10.0
CVE-2009-2281 [CRITICAL] CWE-119 GHSA-6726-5cj2-9h6f: Multiple heap-based buffer underflows in the readPostBody function in cgiutil
Multiple 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.
OSV
CVE-2009-2281: Multiple heap-based buffer underflows in the readPostBody function in cgiutil
osv·2009-10-23·CVSS 10.0
CVE-2009-2281 [CRITICAL] CVE-2009-2281: Multiple heap-based buffer underflows in the readPostBody function in cgiutil
Multiple 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.
OSV
CVE-2009-0840: Heap-based buffer underflow in the readPostBody function in cgiutil
osv·2009-03-31·CVSS 10.0
CVE-2009-0840 [CRITICAL] CVE-2009-0840: Heap-based buffer underflow in the readPostBody function in cgiutil
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.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2009-2281 mapserver: incomplete upstream fix for CVE-2009-0840
bugzilla·2009-07-03·CVSS 10.0
CVE-2009-2281 [CRITICAL] CVE-2009-2281 mapserver: incomplete upstream fix for CVE-2009-0840
CVE-2009-2281 mapserver: incomplete upstream fix for CVE-2009-0840
Nico Golde reported, that upstream fix for mapserver's security flaw CVE-2009-0840 is incomplete and does not correctly handle case when value of 0xffffffff is specified in Content-Length header. During the memory allocation +1 is added to the user-specified content-length value. Therefore malloc may be called with argument 0, typically resulting in small memory chuck to be allocated.
References:
http://thread.gmane.org/gmane.comp.security.oss.general/1861
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523027#14
Discussion:
This flaw was fixed upstream in version 4.10.5, 5.2.3, and 5.4.2:
http://osgeo-org.1803224.n2.nabble.com/MapServer-5-4-2-released-also-5-2-3-and-4-10-5-td3315624.html
Current Fedora release is 5.
Bugzilla
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
bugzilla·2009-04-01·CVSS 10.0
CVE-2009-0839 [CRITICAL] mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
mapserver: multiple security fixes in 5.2.2 and 4.10.4 (CVE-2009-0839, CVE-2009-0840, CVE-2009-0841, CVE-2009-0842, CVE-2009-0843, CVE-2009-1176, CVE-2009-1177)
New upstream mapserver versions 5.2.2 and 4.10.4 have been released:
http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html
to address multiple security issues found during the security audit of the mapserver's code. Details about issues fixed:
http://www.securityfocus.com/archive/1/archive/1/502271/100/0/threaded
http://www.positronsecurity.com/advisories/2009-000.html
CVE assigned to the issues:
CVE-2009-0839:
Stack-based buffer overflow in mapserv.c in mapserv in MapServer 4.x
before 4.10.4 and 5.x before 5.2.2, when the server has a map with a
long IMAGEPATH or NAME attribute, allows remote attackers to e
http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.htmlhttp://secunia.com/advisories/34520http://secunia.com/advisories/34603http://trac.osgeo.org/mapserver/ticket/2943http://www.debian.org/security/2009/dsa-1914http://www.positronsecurity.com/advisories/2009-000.htmlhttp://www.securityfocus.com/archive/1/502271/100/0/threadedhttp://www.securityfocus.com/bid/34306http://www.securitytracker.com/id?1021952https://exchange.xforce.ibmcloud.com/vulnerabilities/49545https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.htmlhttps://www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.htmlhttp://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.htmlhttp://secunia.com/advisories/34520http://secunia.com/advisories/34603http://trac.osgeo.org/mapserver/ticket/2943http://www.debian.org/security/2009/dsa-1914http://www.positronsecurity.com/advisories/2009-000.htmlhttp://www.securityfocus.com/archive/1/502271/100/0/threadedhttp://www.securityfocus.com/bid/34306http://www.securitytracker.com/id?1021952https://exchange.xforce.ibmcloud.com/vulnerabilities/49545https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.htmlhttps://www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.html
2009-03-31
Published