CVE-2007-4596
Status: ModifiedHigh (7.5)—Exploit
Severity7.5High · CVSS 2.0
Exploitation probability8.25 %higher than 95% of CVEs
Active exploitationNonot in the CISA catalog
Public exploitAvailablePublished on Exploit-DB
The perl extension in PHP does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code via the Perl eval function. NOTE: this might only be a vulnerability in limited environments.
CVSS
- Base score
- 7.5
- Version
- 2.0
- Vector
- AV:N/AC:L/Au:N/C:P/I:P/A:P
Exploitation probability (EPSS)
- Probability of exploitation in the next 30 days
- 8.25 %
- Percentile among all scored CVEs
- 95
- Score date
- 10/23/2026
EPSS (Exploit Prediction Scoring System, FIRST) estimates how likely a vulnerability is to be exploited in the wild within 30 days. It complements CVSS (impact) and CISA KEV (confirmed exploitation).
Public exploits
Exploit code or detection templates are publicly available. This is not the same as confirmed active exploitation (KEV), but it raises the risk: patch with priority.
- Published on Exploit-DB · PHP 'Perl' Extension - 'Safe_mode' Bypass (8/25/2007)
Affected technologies (1)
CWEs
- CWE-94
References
Raw JSON (NVD)
Show
{
"id": "CVE-2007-4596",
"cveTags": [],
"metrics": {
"cvssMetricV2": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"cvssData": {
"version": "2.0",
"baseScore": 7.5,
"accessVector": "NETWORK",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"authentication": "NONE",
"integrityImpact": "PARTIAL",
"accessComplexity": "LOW",
"availabilityImpact": "PARTIAL",
"confidentialityImpact": "PARTIAL"
},
"acInsufInfo": false,
"impactScore": 6.4,
"baseSeverity": "HIGH",
"obtainAllPrivilege": false,
"exploitabilityScore": 10,
"obtainUserPrivilege": false,
"obtainOtherPrivilege": true,
"userInteractionRequired": false
}
]
},
"affected": [
{
"source": "cve@mitre.org",
"affectedData": [
{
"vendor": "n/a",
"product": "n/a",
"versions": [
{
"status": "affected",
"version": "n/a"
}
]
}
]
}
],
"published": "2007-08-30T18:17:00.000",
"references": [
{
"url": "https://www.exploit-db.com/exploits/4314",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
],
"source": "cve@mitre.org"
},
{
"url": "https://www.exploit-db.com/exploits/4314",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
],
"source": "af854a3a-2127-422b-91ae-364da2661108"
}
],
"vulnStatus": "Modified",
"weaknesses": [
{
"type": "Primary",
"source": "nvd@nist.gov",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "The perl extension in PHP does not follow safe_mode restrictions, which allows context-dependent attackers to execute arbitrary code via the Perl eval function. NOTE: this might only be a vulnerability in limited environments."
},
{
"lang": "es",
"value": "La extensión de Perl en el PHP no sigue las restricciones del safe_mode, lo que permite a los atacantes dependientes del contexto ejecutar código de su elección a través de la función eval de Perl. NOTA: puede que esto sólo sea una vulnerabilidad en entornos limitados."
}
],
"lastModified": "2026-06-16T22:44:24.237",
"configurations": [
{
"nodes": [
{
"negate": false,
"cpeMatch": [
{
"criteria": "cpe:2.3:a:php:php:-:*:*:*:*:*:*:*",
"vulnerable": true,
"matchCriteriaId": "029B5A37-BA8D-4FEC-BE90-856BB9D0D0E1"
}
],
"operator": "OR"
}
]
}
],
"vendorComments": [
{
"comment": "Due to the nature of safe_mode and open_basedir restrictions, and in alignment with the PHP group’s stance on these features, Mandriva does not consider this a security issue.",
"lastModified": "2007-09-21T00:00:00",
"organization": "Mandriva"
}
],
"sourceIdentifier": "cve@mitre.org"
}