Javier Fernández-Sanguino Peña discovered various vulnerabilities in cgiwrap:
Minimum UID does not include all system users
The CGIwrap program will not seteuid itself to uids below the 'minimum' uid
to prevent scripts from being misused to compromise the system. However,
the Debian package sets the minimum uid to 100 when it should be 1000.
CGIs can be used to disclose system information
The cgiwrap (and php-cgiwrap) package installs some debugging CGIs
(actually symbolink links, which link to cgiwrap and are called 'cgiwrap'
and 'nph-cgiwrap' or link to php-cgiwrap). These CGIs should not be
installed in production environments as they disclose internal and
potentially sensible information.
For the testing distribution (etch) this is fixed in version 3.9-3.0etch1
For the unstable distribution (sid) this is fixed in version 3.9-3.1
This upgrade is recommended if you use cgiwrap.
If you have the secure testing lines in your sources.list, you can update by running this command as root:
If you use cgiwrap:
apt-get update && apt-get install cgiwrap
If you use php-cgiwrap:
apt-get update && apt-get install php-cgiwrap
The Debian testing security team does not track security issues for then stable (sarge) and oldstable (woody) distributions. If stable is vulnerable, the Debian security team will make an announcement once a fix is ready.
To use the Debian testing security archive, add the following lines to your /etc/apt/sources.list:
deb http://secure-testing.debian.net/debian-secure-testing etch/security-updates main contrib non-free
deb-src http://secure-testing.debian.net/debian-secure-testing etch/security-updates main contrib non-free