CVE-2016-1904
What it is
Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) php_escape_shell_cmd or (2) php_escape_shell_arg function, leading to a heap-based buffer overflow.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 2.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.7% in the next 30 days (EPSS).
- Severity: 7.3 HIGH (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 2.7% · EPSS, next 30 days
- Weakness
- CWE-189
- Record status
- Modified
Affected
- PHP 7.0.0
- PHP 7.0.1
Attack profile CVSS 3.0 · 7.3
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Raw vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2016-1904.md and follow it. Check whether this project is affected by CVE-2016-1904. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.php.net/ChangeLog-7.php
- https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b
- http://www.php.net/ChangeLog-7.php
- https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b
References
- http://www.openwall.com/lists/oss-security/2016/01/14/8
- http://www.php.net/ChangeLog-7.php
- http://www.securitytracker.com/id/1034608
- https://bugs.php.net/bug.php?id=71270
- https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b
- http://www.openwall.com/lists/oss-security/2016/01/14/8
- http://www.php.net/ChangeLog-7.php
- http://www.securitytracker.com/id/1034608
- https://bugs.php.net/bug.php?id=71270
- https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b