CVE-2006-1608

PHP 4.4.2 and 5.1.2 - Local Arbitrary File Read via compress.zlib:// URI in copy Function

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-1608. PoCs published by Maksymilian Arciemowicz.

AI-analyzed exploit summary This exploit demonstrates a bypass of PHP's 'safe_mode' and 'open_basedir' restrictions by using the 'compress.zlib://' wrapper to read sensitive files (e.g., /etc/passwd) and write them to an unauthorized location. It leverages a vulnerability in PHP versions 4.4.2 and 5.1.2.

Description

The copy function in file.c in PHP 4.4.2 and 5.1.2 allows local users to bypass safe mode and read arbitrary files via a source argument containing a compress.zlib:// URI.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Maksymilian Arciemowicz · textremotephp
https://www.exploit-db.com/exploits/27596

This exploit demonstrates a bypass of PHP's 'safe_mode' and 'open_basedir' restrictions by using the 'compress.zlib://' wrapper to read sensitive files (e.g., /etc/passwd) and write them to an unauthorized location. It leverages a vulnerability in PHP versions 4.4.2 and 5.1.2.

Classification
Working Poc 90%
Attack Type
Info Leak
Complexity
Trivial
Reliability
Reliable
Target: PHP versions 4.4.2 and 5.1.2
No auth needed
Prerequisites: PHP with 'safe_mode' or 'open_basedir' restrictions enabled · Ability to execute arbitrary PHP code on the target system
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (16)

Core 16
Core References
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/25706
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-320-1
Release Notes x_refsource_confirm
http://us.php.net/releases/5_1_3.php
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/19775
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/440869/100/0/threaded
Exploit, Patch third-party-advisory x_refsource_sreasonres
http://securityreason.com/achievement_securityalert/37
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/678
Third Party Advisory vdb-entry x_refsource_vupen
http://www.vupen.com/english/advisories/2006/1290
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/21125
Exploit, Patch, Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/19599
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2006:074
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/24487
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/430461/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://securitytracker.com/id?1015882
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/17439
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/441210/100/0/threaded

Scores

EPSS 0.0110
EPSS Percentile 61.3%

Details

Status published
Products (34)
php/php 4.0 (8 CPE variants)
php/php 4.0.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 (2 CPE variants)
php/php 4.0.4 (2 CPE variants)
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
... and 24 more
Published Apr 10, 2006
Tracked Since Feb 18, 2026