Integer overflow in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory consumption or application crash) via a truncated manifest entry in a PHAR archive.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Link | Tags |
---|---|
https://github.com/php/php-src/commit/ca46d0acbce55019b970fcd4c1e8a10edfdded93 | issue tracking third party advisory patch |
https://access.redhat.com/errata/RHSA-2018:1296 | third party advisory vendor advisory |
http://php.net/ChangeLog-5.php | release notes vendor advisory |
https://security.netapp.com/advisory/ntap-20180112-0001/ | third party advisory |
https://www.tenable.com/security/tns-2017-04 | third party advisory |
http://www.debian.org/security/2017/dsa-3783 | third party advisory vendor advisory |
https://security.gentoo.org/glsa/201702-29 | third party advisory vendor advisory |
http://php.net/ChangeLog-7.php | release notes vendor advisory |
http://www.securityfocus.com/bid/95774 | vdb entry third party advisory |
http://www.securitytracker.com/id/1037659 | vdb entry third party advisory |
https://bugs.php.net/bug.php?id=73764 | issue tracking |