Description
The is_cgi method in CGIHTTPServer.py in the CGIHTTPServer module in Python 2.5, 2.6, and 3.0 allows remote attackers to read script source code via an HTTP GET request that lacks a / (slash) character at the beginning of the URI.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | python2.6 | 2.6.6-8+deb6u1 | DLA-25-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | python +5 | 2.6.6-20.el6 | RHSA-2011:0554 |
| RHEL 6 | python-docs | 2.6.6-2.el6 | RHSA-2011:0554 |
| RHEL 5 | python +4 | 2.4.3-44.el5 | RHSA-2011:0492 |
| RHEL 4 | python +4 | 2.3.4-14.10.el4 | RHSA-2011:0491 |
Advisories 4
- RHSA-2011:0554 Red Hat Security Advisory: python security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2011:0492 Red Hat Security Advisory: python security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- RHSA-2011:0491 Red Hat Security Advisory: python security update Red Hat Security Advisories (RHSA) · Jun 28, 2026
- DLA-25-1 python2.6 - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://svn.python.org/view?view=revision&revision=71303
- MDVSA-2011:096 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=680094
- http://bugs.python.org/issue2254
- [oss-security] 20110224 Re: CVE request: Information disclosure in CGIHTTPServer from Python mailing-list
- 51040 third-party-advisory
- 50858 third-party-advisory
- [oss-security] 20110223 CVE request: Information disclosure in CGIHTTPServer from Python mailing-list
- 1025489 vdb-entry
- USN-1596-1 vendor-advisory
- http://hg.python.org/cpython/rev/c6c4398293bd/
- USN-1613-2 vendor-advisory
- 51024 third-party-advisory
- USN-1613-1 vendor-advisory
- 46541 vdb-entry