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.
https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00170.html
https://www.redhat.com/archives/fedora-package-announce/2009-April/msg00147.html
http://www.securitytracker.com/id?1021952
http://www.securityfocus.com/bid/34306
http://www.securityfocus.com/archive/1/502271/100/0/threaded
http://secunia.com/advisories/34603
http://lists.osgeo.org/pipermail/mapserver-users/2009-March/060600.html