{"schemaVersion":3,"id":"CVE-2009-0840","aliases":["DEBIAN-CVE-2009-0840"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2009-03-31T18:00:00.000Z","modified":"2024-08-07T04:48:52.553Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":10,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":10,"severity":"high","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.05283,"percentile":0.92486,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.05283},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05283,"percentile":0.92486}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05283,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05283,"percentile":0.92486}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_782760D39027C4AF","name":"Exploit Reference (positronsecurity.com)","source":"reference","url":"http://www.positronsecurity.com/advisories/2009-000.html","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer","description":"The product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. This may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/119.html"}],"affected":[{"vendor":"debian","product":"mapserver","name":"mapserver","label":"mapserver","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mapserver","purlType":"deb","versions":[{"text":"< 5.4.2-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.4.2-1","eol":null,"hubHref":null},{"vendor":"osgeo","product":"mapserver","name":"mapserver","label":"mapserver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.2.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.4.0","noFixRecorded":false,"fixedIn":null},{"text":"4.4.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.4.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"4.4.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"4.6.0","noFixRecorded":false,"fixedIn":null},{"text":"4.6.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.6.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"4.6.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"4.6.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"4.8.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.8.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"4.8.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"4.8.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"4.8.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"4.10.0","noFixRecorded":false,"fixedIn":null},{"text":"4.10.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.10.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"4.10.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"4.10.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"4.10.1","noFixRecorded":false,"fixedIn":null},{"text":"4.10.2","noFixRecorded":false,"fixedIn":null},{"text":"4.10.3","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"5.0.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"5.2.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"5.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"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 | 4.8.0:beta3 | 4.8.0:rc1 | 4.8.0:rc2 | 4.10.0 | 4.10.0:beta1 | 4.10.0:beta2 | 4.10.0:beta3 | 4.10.0:rc1 | 4.10.1 | 4.10.2 | 4.10.3 | 5.0.0 | 5.0.0:beta1 | 5.0.0:beta2 | 5.0.0:beta3 | 5.0.0:beta4 | 5.0.0:beta5 | 5.0.0:beta6 | 5.0.0:rc1 | 5.0.0:rc2 | 5.2.0 | 5.2.0:beta1 | 5.2.0:beta2 | 5.2.0:beta3 | 5.2.0:beta4 | 5.2.0:rc1 | 5.2.1","eol":null,"hubHref":"/vendor/osgeo/mapserver"},{"vendor":"umn","product":"mapserver","name":"mapserver","label":"mapserver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.0","noFixRecorded":false,"fixedIn":null},{"text":"4.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"4.0:beta2","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.0 | 4.0:beta1 | 4.0:beta2","eol":null,"hubHref":"/vendor/umn/mapserver"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"http://www.positronsecurity.com/advisories/2009-000.html","label":"www.positronsecurity.com/advisories/2009-000.html","hostname":"www.positronsecurity.com","tags":["X Refsource MISC","Exploit"]},{"url":"http://www.securitytracker.com/id?1021952","label":"www.securitytracker.com/id?1021952","hostname":"www.securitytracker.com","tags":["VDB Entry","X Refsource SECTRACK"]},{"url":"http://www.securityfocus.com/archive/1/502271/100/0/threaded","label":"www.securityfocus.com/archive/1/502271/100/0/threaded","hostname":"www.securityfocus.com","tags":["Mailing List","X Refsource BUGTRAQ"]},{"url":"http://secunia.com/advisories/34603","label":"secunia.com/advisories/34603","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.html","label":"www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"http://www.securityfocus.com/bid/34306","label":"www.securityfocus.com/bid/34306","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID"]},{"url":"http://secunia.com/advisories/34520","label":"secunia.com/advisories/34520","hostname":"secunia.com","tags":["Third Party Advisory","X Refsource SECUNIA"]},{"url":"http://www.debian.org/security/2009/dsa-1914","label":"www.debian.org/security/2009/dsa-1914","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/49545","label":"exchange.xforce.ibmcloud.com/vulnerabilities/49545","hostname":"exchange.xforce.ibmcloud.com","tags":["VDB Entry","X Refsource XF"]},{"url":"http://trac.osgeo.org/mapserver/ticket/2943","label":"trac.osgeo.org/mapserver/ticket/2943","hostname":"trac.osgeo.org","tags":["X Refsource CONFIRM","Vendor Advisory"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.html","label":"www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.html","hostname":"www.redhat.com","tags":["Vendor Advisory","X Refsource FEDORA"]},{"url":"http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html","label":"lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html","hostname":"lists.osgeo.org","tags":["Mailing List","X Refsource MLIST","Patch"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2009-0840","label":"security-tracker.debian.org/tracker/CVE-2009-0840","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-1914-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2009-03-31T18:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T04:48:52.553Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":90,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:04:31.562Z","stale":false,"partial":false}}