xref: /web-php/releases/4_3_1.php (revision f1cb7e74)
1<?php
2$_SERVER['BASE_PAGE'] = 'releases/4_3_1.php';
3include_once __DIR__ . '/../include/prepend.inc';
4site_header("PHP 4.3.1 Release Announcement");
5?>
6
7<h1>
8PHP Security Advisory: CGI vulnerability in PHP version 4.3.0
9</h1>
10
11<dl>
12 <dt>Issued on:</dt>
13 <dd>February 17, 2003</dd>
14 <dt>Software:</dt>
15 <dd>PHP version 4.3.0</dd>
16 <dt>Platforms:</dt>
17 <dd>All</dd>
18</dl>
19
20<p>
21 The PHP Group has learned of a serious security vulnerability in
22 the CGI SAPI of PHP version 4.3.0.
23</p>
24
25<h2>Description</h2>
26
27<p>
28 PHP contains code for preventing direct access to the CGI binary with
29 configure option "--enable-force-cgi-redirect" and php.ini option
30 "cgi.force_redirect". In PHP 4.3.0 there is a bug which renders these
31 options useless.
32</p>
33
34<p>
35 NOTE: This bug does NOT affect any of the other SAPI modules.
36 (such as the Apache or ISAPI modules, etc.)
37</p>
38
39<h2>Impact</h2>
40
41<p>
42 Anyone with access to websites hosted on a web server which employs
43 the CGI module may exploit this vulnerability to gain access to any file
44 readable by the user under which the webserver runs.
45</p>
46
47<p>
48 A remote attacker could also trick PHP into executing arbitrary PHP code
49 if attacker is able to inject the code into files accessible by the CGI.
50 This could be for example the web server access-logs.
51</p>
52
53<h2>Solution</h2>
54
55<p>
56 The PHP Group has released a new PHP version, 4.3.1, which incorporates
57 a fix for the vulnerability. All users of affected PHP versions are
58 encouraged to upgrade to this latest version. <a href="/downloads.php">The
59 downloads page</a> has the new 4.3.1 source tarballs, Windows binaries
60 and source patch from 4.3.0 available for download. You will only need
61 to upgrade if you're using the CGI module of PHP 4.3.0. There are no
62 other bugfixes contained in this release.
63</p>
64
65<h2>Workarounds</h2>
66
67<p>None.</p>
68
69<h2>Credits</h2>
70
71<p>
72 The PHP Group would like to thank Kosmas Skiadopoulos for discovering
73 this vulnerability.
74</p>
75
76<?php site_footer(); ?>
77