{"schemaVersion":3,"id":"CVE-2007-4596","aliases":["CGA-22mg-52cw-8mp8","CGA-4fqp-53q4-7qrj","CGA-5vvp-f683-qpjc","CGA-fjf6-7w67-6jq5","CGA-h4wm-28qg-9m2f","CGA-m853-jwq9-j3vf","CGA-phjx-rfg8-9qv3","CGA-rpx4-p9mv-76cc","CGA-v369-h689-h2wf","CGA-vf4r-c96v-j83g"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2007-08-30T17:00:00.000Z","modified":"2024-08-07T15:01:09.601Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"2.0","versionLabel":"v2.0","source":"NVD","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","computed":false,"selection":"backend-summary"},"metrics":[{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.08248,"percentile":0.94859,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.46800000000000036,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.0778},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.08248,"percentile":0.94859}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0778,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.08248,"percentile":0.94859}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"4314","name":"PHP 'Perl' Extension - 'Safe_mode' Bypass","source":"exploit-database","url":"https://www.exploit-db.com/exploits/4314","maturity":"weaponized","reliabilityScore":0.8,"verified":true,"type":"local","platforms":["windows"],"requiresAuth":null,"exploitdb":{"verified":true,"type":"local","platform":"windows","file":"exploits/windows/local/4314.php","codes":["OSVDB-45834","CVE-2007-4596"]},"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"chainguard","product":"php-8.1","name":"php-8.1","label":"php-8.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"php-8.2","name":"php-8.2","label":"php-8.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"php-8.3","name":"php-8.3","label":"php-8.3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"php-8.4","name":"php-8.4","label":"php-8.4","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.4","purlType":"apk","versions":[{"text":"< 8.4.12-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.4.12-r1","eol":null,"hubHref":null},{"vendor":"chainguard","product":"php-8.5","name":"php-8.5","label":"php-8.5","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.5","purlType":"apk","versions":[{"text":"< 8.5.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.5.2-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.1","name":"php-8.1","label":"php-8.1","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.2","name":"php-8.2","label":"php-8.2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.3","name":"php-8.3","label":"php-8.3","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.4","name":"php-8.4","label":"php-8.4","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.4","purlType":"apk","versions":[{"text":"< 8.4.12-r1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.4.12-r1","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.5","name":"php-8.5","label":"php-8.5","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.5","purlType":"apk","versions":[{"text":"< 8.5.2-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.5.2-r0","eol":null,"hubHref":null},{"vendor":"php","product":"php","name":"PHP","label":"php","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"php","label":"PHP","category":"lang"}},"hubHref":"/vendor/php/php"}],"affectedCount":11,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.exploit-db.com/exploits/4314","label":"www.exploit-db.com/exploits/4314","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-CP54-6PQC-J4MW","CGA-FPGW-32QV-RG73","CGA-HJJ9-68QC-MM2P","CGA-JCWM-PQ6F-RXG4","CGA-PGPR-RVPC-PJ98"]},"timeline":[{"kind":"published","date":"2007-08-30T17:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-07T15:01:09.601Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":42,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T20:09:06.025Z","stale":false,"partial":false}}