CVE-2007-1453

PHP 5.2.0 - Buffer Underflow in PHP_FILTER_TRIM_DEFAULT Macro

Title source: manual
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit targets a buffer overflow vulnerability in PHP's ext/filter component, allowing arbitrary code execution via a crafted input to the filter_var function. The PoC includes shellcode for a reverse shell on PPC MacOSX and demonstrates memory manipulation to achieve RCE.

Description

Buffer underflow in the PHP_FILTER_TRIM_DEFAULT macro in the filtering extension (ext/filter) in PHP 5.2.0 allows context-dependent attackers to execute arbitrary code by calling filter_var with certain modes such as FILTER_VALIDATE_INT, which causes filter to write a null byte in whitespace that precedes the buffer.

Exploits (1)

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

This exploit targets a buffer overflow vulnerability in PHP's ext/filter component, allowing arbitrary code execution via a crafted input to the filter_var function. The PoC includes shellcode for a reverse shell on PPC MacOSX and demonstrates memory manipulation to achieve RCE.

Classification
Working Poc 95%
Attack Type
Rce
Complexity
Complex
Reliability
Reliable
Target: PHP 5.2.0
No auth needed
Prerequisites: PHP 5.2.0 with ext/filter enabled · Ability to send crafted input to the filter_var function
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (7)

Core 7
Core References
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25056
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1283
Release Notes x_refsource_misc
http://www.php.net/releases/5_2_1.php
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/22922
Various Sources x_refsource_misc
http://www.php-security.org/MOPB/MOPB-19-2007.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25062
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_32_php.html

Scores

EPSS 0.0952
EPSS Percentile 94.8%

Details

Status published
Products (1)
php/php 5.2.0
Published Mar 14, 2007
Tracked Since Feb 18, 2026