CVE-2007-1701: PHP 4 before 4.4.5, and PHP 5 before 5.2.1, when register_globals is enabled, allows context-dependent attackers to execute arbitrary code…
Noroxi assessment
Priority: Monitor (action score 30/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 9.3% (FIRST EPSS); higher than 95.4% of all records.
- Fixed version: php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14; php-devel (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14; php-imap (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14.
Low priority for now. Upgrade to php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14; php-devel (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14; php-imap (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.14 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
PHP 4 before 4.4.5, and PHP 5 before 5.2.1, when register_globals is enabled, allows context-dependent attackers to execute arbitrary code via deserialization of session data, which overwrites arbitrary global variables, as demonstrated by calling session_decode on a string beginning with "_SESSION|s:39:".
- Published
- Mar 26, 2007
- Updated
- Jun 16, 2026
- EPSS
- 9.3% · 95th percentile
- CWE
- CWE-502
Report tools
Action score
30
Low priority for now.
- CVSS
- 27 / 40 · 6.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 3 / 30 · 9.3%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php4.0.0 and later · before 4.4.5
- php php5.0.0 and later · before 5.2.1
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Red Hat:enterprise_linux:2.1::as | php | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-devel | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-imap | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-ldap | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-manual | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-mysql | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-odbc | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:2.1::as | php-pgsql | before 0:4.1.2-2.14 | 0:4.1.2-2.14 |
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-39.ent | 0:4.3.2-39.ent |
| Red Hat:enterprise_linux:4::as | php | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-debuginfo | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-devel | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-domxml | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-gd | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-imap | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-ldap | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
| Red Hat:enterprise_linux:4::as | php-mbstring | before 0:4.3.9-3.22.3 | 0:4.3.9-3.22.3 |
+56
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2007-1649Mar 23, 2007 · PHP 5.2.1 allows context-dependent attackers to read portions of heap memory by executing certain scripts with a serialized data input…33Monitor
- ← EarlierCVE-2007-1700Mar 26, 2007 · The session extension in PHP 4 before 4.4.5, and PHP 5 before 5.2.1, calculates the reference count for the session variables without…33Monitor
- Later →CVE-2007-1709Mar 26, 2007 · Buffer overflow in the confirm_phpdoc_compiled function in the phpDOC extension (PECL phpDOC) in PHP 5.2.1 allows context-dependent…18Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| red hat:php | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-debuginfo | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-devel | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-domxml | 0:4.3.9-3.22.3 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-gd | 0:4.3.9-3.22.3 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-imap | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ldap | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-mbstring | 0:4.3.9-3.22.3 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-mysql | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-ncurses | 0:4.3.9-3.22.3 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:php-odbc | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:php-pgsql | 0:4.3.2-39.ent · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2007-03-25 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-2 d
- Published
- TodayNov 16, 2026+7174 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- M
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-502 · Deserialization of Untrusted DataCVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
nvd-primary
Root cause
Data received over the network is deserialized into the language’s native object format without verifying its source. Code paths inside the object can be triggered during deserialization.
The bug in code
The whole CWE-502 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
payload = sock.recv(65536)
job = pickle.loads(payload)Fixed
payload = sock.recv(65536)
if not hmac.compare_digest(sign(payload), header_sig):
raise PermissionError("invalid signature")
job = JobSchema.validate(json.loads(payload))Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (11 more)Show less
- h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c01086137
- secunia.com/advisories/25423
- secunia.com/advisories/25445
- secunia.com/advisories/25850
- security.gentoo.org/glsa/glsa-200705-19.xml
- www.php-security.org/MOPB/MOPB-31-2007.html
- www.securityfocus.com/bid/23120
- www.vupen.com/english/advisories/2007/1991
- www.vupen.com/english/advisories/2007/2374
- exchange.xforce.ibmcloud.com/vulnerabilities/33658
- oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11034
Vendor advisories and official records. Exploit/PoC links are deliberately left out.