CVE-2017-9120
php: Integer overflow in mysqli_api.c:mysqli_real_escape_string()
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
PHP 7.x through 7.1.5 allows remote attackers to cause a denial of service (buffer overflow and application crash) or possibly have unspecified other impact via a long string because of an Integer overflow in mysqli_real_escape_string.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| ubuntu 16.04-ESM | php7.0 | 7.0.33-0ubuntu0.16.04.16+esm3 |
| ubuntu 18.04 | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 18.04-ESM | php7.2 | 7.2.24-0ubuntu0.18.04.11 |
| ubuntu 20.04 | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 20.04-ESM | php7.4 | 7.4.3-4ubuntu2.10 |
| ubuntu 21.10 | php8.0 | 8.0.8-1ubuntu0.3 |
References
- https://access.redhat.com/errata/RHSA-2019:2519
- https://access.redhat.com/security/cve/CVE-2017-9120
- https://bugs.php.net/bug.php?id=74544
- https://nvd.nist.gov/vuln/detail/CVE-2017-9120
- https://security.netapp.com/advisory/ntap-20181107-0003/
- https://ubuntu.com/security/notices/USN-5300-1
- https://ubuntu.com/security/notices/USN-5300-2
- https://ubuntu.com/security/notices/USN-5300-3