Input validation error in PHP - CVE-2007-3799

 

Input validation error in PHP - CVE-2007-3799

Published: October 3, 2018 / Updated: June 9, 2025


Vulnerability identifier: #VU110388
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-3799
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to corrupt data.

The session_start function in ext/session in PHP 4.x up to 4.4.7 and 5.x up to 5.2.3 allows remote attackers to insert arbitrary attributes into the session cookie via special characters in a cookie that is obtained from (1) PATH_INFO, (2) the session_id function, and (3) the session_start function, which are not encoded or filtered when the new session cookie is generated, a related issue to CVE-2006-0207.


Affected software

PHP

How to mitigate CVE-2007-3799

Install update from vendor's website.

PHP - addressed in versions 4.4.8, 4.10, 5.2.15

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins