CVE-2006-1015

PHP - Argument Injection via Mail Function Additional Parameters

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2006-1015. PoCs published by [email protected].

AI-analyzed exploit summary This exploit leverages a vulnerability in PHP's mail functions to bypass 'safe_mode' and 'open_basedir' restrictions by injecting additional parameters. The provided code snippet demonstrates how an attacker can read arbitrary files and write to specific locations using the '-C' and '-X' flags.

Description

Argument injection vulnerability in certain PHP 3.x, 4.x, and 5.x applications, when used with sendmail and when accepting remote input for the additional_parameters argument to the mail function, allows remote attackers to read and create arbitrary files via the sendmail -C and -X arguments. NOTE: it could be argued that this is a class of technology-specific vulnerability, instead of a particular instance; if so, then this should not be included in CVE.

Exploits (1)

exploitdb WORKING POC VERIFIED
by [email protected] · textlocalphp
https://www.exploit-db.com/exploits/27334

This exploit leverages a vulnerability in PHP's mail functions to bypass 'safe_mode' and 'open_basedir' restrictions by injecting additional parameters. The provided code snippet demonstrates how an attacker can read arbitrary files and write to specific locations using the '-C' and '-X' flags.

Classification
Working Poc 90%
Attack Type
Auth Bypass
Complexity
Trivial
Reliability
Reliable
Target: PHP (versions affected by CVE-2006-1015)
No auth needed
Prerequisites: PHP installation with vulnerable mail functions · Ability to send crafted input to the mail function
mistral-large-3 · analyzed Feb 16, 2026 Full analysis →

References (5)

Core 5
Core References
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/426497/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/16878
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/19979
Third Party Advisory third-party-advisory x_refsource_sreason
http://securityreason.com/securityalert/517
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/05-05-2006.html

Scores

EPSS 0.1108
EPSS Percentile 95.4%

Details

Status published
Products (44)
php/php 3.0
php/php 3.0.1
php/php 3.0.2
php/php 3.0.3
php/php 3.0.4
php/php 3.0.5
php/php 3.0.6
php/php 3.0.7
php/php 3.0.8
php/php 3.0.9
... and 34 more
Published Mar 07, 2006
Tracked Since Feb 18, 2026