CVE-2009-0840 Memory corruption in n/a

Critical 10.0 Published Updated

Remote attackers can trigger a heap-based buffer underflow in MapServer via a negative Content-Length header, potentially causing crashes or code execution.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2009-0840?

CVE-2009-0840 is a critical memory corruption vulnerability in n/a, published on 31 Mar 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-119

Which versions are affected by CVE-2009-0840?

It affects 2 products.

Products include Osgeo Mapserver, Umn Mapserver.

How do I fix CVE-2009-0840?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2009-0840 being exploited?

There is no known exploitation of CVE-2009-0840 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2009-0840, GHSA-53rh-gvx6-42x8.

Is CVE-2009-0840 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free