CVE-2003-1307
NoneCVSS
—
EPSS
1.7%
Published
Dec 31, 2003
CISA due date
—
Cloudanix analysis
A very old local issue lets someone who can already change certain web scripts on a server briefly pause the web server and potentially see new visitor traffic.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Web Framework
- Class
- Privilege Escalation
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Local authenticated user with write access to PHP scripts can send signals to the Apache process group and reuse server file descriptors to intercept connections.
Why it matters to the business
Attackers with limited local access could disrupt web services or intercept traffic, leading to service outages or data exposure on affected servers.
How an attack unfolds
A local user creates or modifies a PHP script that issues a STOP signal to the parent Apache process group, then binds to the released TCP port to capture incoming connections; the flaw has been publicly exploitable for years with no active threat actor campaigns noted.
How to fix it
The issue is disputed by PHP maintainers and listed as fixed in version 0 for the affected py3-docker packages on Chainguard and Wolfi; confirm current package versions and remove any unnecessary local script write permissions if still running legacy Apache mod_php configurations.
How to confirm the fix worked
Verify that deployed py3-docker images report version 0 or later, review Apache and PHP configurations for removal of mod_php where possible, and test that local users cannot send signals to the httpd process group.
Typical attack path
- Obtain local user account with write access to PHP scripts on the web server
- Write or upload a PHP script that sends a STOP signal to the Apache process group
- Reuse the freed file descriptors to bind to the original listening TCP port
- Intercept and inspect or manipulate subsequent client connections
How to detect it
Search historical web server logs and process accounting for unexpected STOP signals sent to httpd processes or sudden port-binding attempts by non-root users around the Apache listener port.
What your security team should do
- Audit all systems for presence of mod_php and replace with modern PHP-FPM or other handlers
- Enforce least-privilege file permissions on web content directories
- Monitor for any new exploit code referencing this 2003 issue given its public exploit maturity
The record
The mod_php module for the Apache HTTP Server allows local users with write access to PHP scripts to send signals to the server's process group and use the server's file descriptors, as demonstrated by sending a STOP signal, then intercepting incoming connections on the server's TCP port. NOTE: the PHP developer has disputed this vulnerability, saying "The opened file descriptors are opened by Apache. It is the job of Apache to protect them ... Not a bug in PHP.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | apache2 | 0 | No fix |
| Debian:11 | apache2 | 0 | No fix |
| Debian:12 | apache2 | 0 | No fix |
| Debian:13 | apache2 | 0 | No fix |
| Debian:14 | apache2 | 0 | No fix |
Related vulnerabilities
- CVE-2015-0228 The lua_websocket_read function in lua_request.c in the mod_lua module in the Apache HTTP… Also affects apache2
- CVE-2014-3583 The handle_headers function in mod_proxy_fcgi.c in the mod_proxy_fcgi module in the… Also affects apache2
- CVE-2013-4352 The cache_invalidate function in modules/cache/cache_storage.c in the mod_cache module in… Also affects apache2
- CVE-2013-5704 The mod_headers module in the Apache HTTP Server 2.2.22 allows remote attackers to bypass… Also affects apache2
- CVE-2013-1896 mod_dav.c in the Apache HTTP Server before 2.2.25 does not properly determine whether DAV… Also affects apache2
- CVE-2013-1862 mod_rewrite.c in the mod_rewrite module in the Apache HTTP Server 2.2.x before 2.2.25… Also affects apache2
- CVE-2012-3499 Multiple cross-site scripting (XSS) vulnerabilities in the Apache HTTP Server 2.2.x… Also affects apache2
- CVE-2012-4558 Multiple cross-site scripting (XSS) vulnerabilities in the balancer_handler function in… Also affects apache2