{"id":"CVE-2015-4642","aliases":["BELL-CVE-2015-4642","EUVD-2015-4661","GHSA-2g3c-3p8m-g2p4","MGASA-2015-0258"],"status":"published","title":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and...","description":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.05999,"percentile":0.93373,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-78"],"published":"2015-07-05T17:22:03Z","modified":"2026-06-17T00:27:39Z","affected":[{"source":"osv","ecosystem":"Mageia:4","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.5.26-1.mga4"}]}],"bundled":4},{"source":"osv","ecosystem":"Mageia:4","package":"php-apc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.15-4.16.mga4"}]}],"bundled":4}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.securitytracker.com/id/1032709","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://www.securityfocus.com/bid/75290","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://openwall.com/lists/oss-security/2015/06/18/6","tags":["mailing-list","x_refsource_MLIST","x_transferred","web"]},{"url":"http://php.net/ChangeLog-5.php","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://bugs.php.net/bug.php?id=69646","tags":["x_refsource_CONFIRM","x_transferred","Exploit"]},{"url":"http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=d2ac264ffea5ca2e85640b6736e0c7cd4ee9a4a9","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.gentoo.org/glsa/201606-10","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-4642"},{"url":"http://git.php.net/?p=php-src.git;a=commit;h=d2ac264ffea5ca2e85640b6736e0c7cd4ee9a4a9"},{"url":"https://github.com/advisories/GHSA-2g3c-3p8m-g2p4"},{"url":"https://docs.bell-sw.com/security/cves/CVE-2015-4642","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2015-0258.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=16115","tags":["report"]},{"url":"http://php.net/ChangeLog-5.php#5.5.26","tags":["web"]},{"url":"http://openwall.com/lists/oss-security/2015/06/16/12","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2015-4642","description":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.","status":"published","published":"2016-05-16T10:00:00Z","modified":"2024-08-06T06:18:12.095Z","updated_at":"2026-11-02T14:35:43.322279Z"}],"euvd":[{"id":"EUVD-2015-4661","description":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.","status":"published","published":"2016-05-16T10:00:00Z","modified":"2024-08-06T06:18:12Z","updated_at":"2026-11-03T02:22:03.142599Z"}],"ghsa":[{"id":"GHSA-2g3c-3p8m-g2p4","title":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and...","description":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.","status":"published","published":"2022-05-17T00:48:49Z","modified":"2025-04-12T13:01:06Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T15:01:27.480327Z"}],"nvd":[{"id":"CVE-2015-4642","description":"The escapeshellarg function in ext/standard/exec.c in PHP before 5.4.42, 5.5.x before 5.5.26, and 5.6.x before 5.6.10 on Windows allows remote attackers to execute arbitrary OS commands via a crafted string to an application that accepts command-line arguments for a call to the PHP system function.","status":"published","published":"2016-05-16T10:59:14.533Z","modified":"2026-06-17T00:27:39.177Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-78"],"updated_at":"2026-11-02T14:03:16.97467Z"}],"osv":[{"id":"BELL-CVE-2015-4642","title":"CVE-2015-4642 does not affect BellSoft software","status":"withdrawn","published":"2016-05-16T10:59:00Z","modified":"2026-01-26T09:47:28.625432Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:28:13.47097Z"},{"id":"MGASA-2015-0258","title":"Updated php package fixes security vulnerability","description":"Incorrect handling of paths with NULs (CVE-2015-4598).\n\nOS command injection vulnerability in escapeshellarg (CVE-2015-4642).\n\nInteger overflow in ftp_genlist() resulting in heap overflow (CVE-2015-4643).\n\nSegfault in php_pgsql_meta_data (CVE-2015-4644).\n\nPHP has been updated to version 5.5.26, which fixes multiple bugs and\npotential security issues.  Please see the upstream ChangeLog for details.\n","status":"published","published":"2015-07-05T17:22:03Z","modified":"2026-04-16T06:24:32.845615282Z","updated_at":"2026-11-02T15:49:39.792687Z"}]}}
