CVE-2007-1890

PHP 4 < 4.4.5 and PHP 5 < 5.2.1 - Integer Overflow in msg_receive Function

Title source: manual
STIX 2.1

Exploitation Summary

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

AI-analyzed exploit summary This exploit targets an integer overflow vulnerability in PHP's msg_receive function, allowing arbitrary code execution via a buffer overflow. It demonstrates the issue by sending a malformed message to a message queue.

Description

Integer overflow in the msg_receive function in PHP 4 before 4.4.5 and PHP 5 before 5.2.1, on FreeBSD and possibly other platforms, allows context-dependent attackers to execute arbitrary code via certain maxsize values, as demonstrated by 0xffffffff.

Exploits (1)

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

This exploit targets an integer overflow vulnerability in PHP's msg_receive function, allowing arbitrary code execution via a buffer overflow. It demonstrates the issue by sending a malformed message to a message queue.

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

References (3)

Core 3
Core References
Exploit, Vendor Advisory x_refsource_misc
http://www.php-security.org/MOPB/MOPB-43-2007.html
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23236
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33775

Scores

EPSS 0.0784
EPSS Percentile 93.9%

Details

Status published
Products (35)
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 25 more
Published Apr 06, 2007
Tracked Since Feb 18, 2026