CVE-2007-1825

PHP 4 < 4.4.5 and 5 < 5.2.1 - Buffer Overflow in imap_mail_compose

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-1825. PoCs published by Stefan Esser.

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in PHP's imap_mail_compose function by supplying an excessively long BOUNDARY parameter. It can lead to arbitrary code execution or denial of service in vulnerable PHP versions.

Description

Buffer overflow in the imap_mail_compose function in PHP 5 before 5.2.1, and PHP 4 before 4.4.5, allows remote attackers to execute arbitrary code via a long boundary string in a type.parameters field. NOTE: as of 20070411, it appears that this issue might be subsumed by CVE-2007-0906.3.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Stefan Esser · phpremotephp
https://www.exploit-db.com/exploits/29807

This exploit targets a buffer overflow vulnerability in PHP's imap_mail_compose function by supplying an excessively long BOUNDARY parameter. It can lead to arbitrary code execution or denial of service in vulnerable PHP versions.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Reliable
Target: PHP versions prior to 4.4.5 and 5.2.1
No auth needed
Prerequisites: PHP with IMAP extension enabled · Vulnerable PHP version
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (4)

Core 4
Core References
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10377
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23234
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33534

Scores

EPSS 0.1038
EPSS Percentile 95.1%

Details

Status published
Products (41)
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
php/php 4.1.1
... and 31 more
Published Apr 02, 2007
Tracked Since Feb 18, 2026