CVE-2007-4596

PHP perl Extension - safe_mode Bypass Code Execution

Title source: manual
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-4596. PoCs published by NetJackal.

AI-analyzed exploit summary This exploit bypasses PHP's safe_mode by leveraging the Perl extension to execute arbitrary system commands. It provides a web interface to input commands, which are then executed via Perl's system call.

Description

The perl extension in PHP does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code via the Perl eval function. NOTE: this might only be a vulnerability in limited environments.

Exploits (1)

exploitdb WORKING POC VERIFIED
by NetJackal · phplocalwindows
https://www.exploit-db.com/exploits/4314

This exploit bypasses PHP's safe_mode by leveraging the Perl extension to execute arbitrary system commands. It provides a web interface to input commands, which are then executed via Perl's system call.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: PHP with Perl extension (safe_mode bypass)
No auth needed
Prerequisites: PHP with Perl extension enabled · safe_mode enabled (for bypass context)
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (1)

Core 1
Core References
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4314

Scores

EPSS 0.0778
EPSS Percentile 93.9%

Details

CWE
CWE-94
Status published
Products (1)
php/php
Published Aug 30, 2007
Tracked Since Feb 18, 2026