Issue #19435: CGI directory traversal

An error in separating the path and filename of the CGI script to run in http.server.CGIHTTPRequestHandler allows running arbitrary executables in the directory under which the server was started.

  • Disclosure date: 2013-10-29 (Python issue #19435 reported)

Fixed In

Python issue

Directory traversal attack for CGIHTTPRequestHandler.

  • Python issue: issue #19435
  • Creation date: 2013-10-29
  • Reporter: Alexander Kruppa

Timeline

Timeline using the disclosure date 2013-10-29 as reference:

  • 2013-10-29: Python issue #19435 reported by Alexander Kruppa
  • 2013-10-30 (+1 days): commit 04e9de4
  • 2013-10-30 (+1 days): commit 1ef959a
  • 2013-11-10 (+12 days): Python 2.7.6 released
  • 2014-02-09 (+103 days): Python 3.3.4 released
  • 2014-03-16: Python 3.4.0 released
  • 2014-10-11 (+347 days): Python 3.2.6 released