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.
Use CWE-119, Osgeo vendor hub and Mapserver product page to widen CVE-2009-2281 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2010-2540, CVE-2017-5522 and CVE-2025-59431 for nearby disclosures in the same product family.