CVE-2009-0840
Heap-based buffer underflow in the readPostBody function in cgiutil.c in mapserv in MapServer 4.x...
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.
Exploit likelihood
What each source reports
NVD Score used
10.0
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.
- Record
CVE-2009-0840- CVSS 2.0
- 10.0 High
AV:N/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-119
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2009-0840- Updated
- 2026-11-02
EUVDEUVD-2009-0837 No score
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.
- Record
EUVD-2009-0837- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-53rh-gvx6-42x8 No score
Heap-based buffer underflow in the readPostBody function in cgiutil.c in mapserv in MapServer 4.x...
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.
- Record
GHSA-53rh-gvx6-42x8- Weakness
- CWE-119
- Updated
- 2026-11-02
OSV No score
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.
- Record
CVE-2009-0840- Updated
- 2026-11-02
OSVDEBIAN-CVE-2009-0840 No score
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.
- Record
DEBIAN-CVE-2009-0840- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
mapserverDebian:12 |
before 5.4.2-1 | 5.4.2-1 |
mapserverDebian:13 |
before 5.4.2-1 | 5.4.2-1 |
mapserverDebian:14 |
before 5.4.2-1 | 5.4.2-1 |
mapserverDebian:4.0 From an advisory covering 7 CVEs |
before 4.10.0-5.1+etch4, plus listed versions 4.10.0-5+etch14.10.0-5.1+etch2 |
4.10.0-5.1+etch4 |
mapserverDebian:5.0 From an advisory covering 7 CVEs |
before 5.0.3-3+lenny4, plus listed versions 5.0.3-3 |
5.0.3-3+lenny4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2009-0840 is a high vulnerability (CVSS 10.0) in Osgeo Mapserver, published March 31, 2009. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 5.28%, the 92nd percentile. Fixed in mapserver 5.4.2-1.
References
positronsecurity.com/advisories/2009-000.html
securitytracker.com/id?1021952
securityfocus.com/archive/1/502271/100/0/threaded
secunia.com/advisories/34603
redhat.com/archives/fedora-package-announce/2009-April/msg00170.html
securityfocus.com/bid/34306
Show 9 moreShow less
secunia.com/advisories/34520
debian.org/security/2009/dsa-1914
exchange.xforce.ibmcloud.com/vulnerabilities/49545
trac.osgeo.org/mapserver/ticket/2943
redhat.com/archives/fedora-package-announce/2009-April/msg00147.html
lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html
nvd.nist.gov/vuln/detail/CVE-2009-0840
github.com/advisories/GHSA-53rh-gvx6-42x8
security-tracker.debian.org/tracker/CVE-2009-0840