Bug 1611898 (CVE-2017-9120)

Summary: CVE-2017-9120 php: Integer overflow in mysqli_api.c:mysqli_real_escape_string()
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: fedora, hhorak, jorton, rcollet, webstack-team, yozone
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-08-19 08:47:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1614880, 1614881, 1614892, 1614894, 1614895    
Bug Blocks: 1611899    

Description Sam Fowler 2018-08-03 02:34:34 UTC
PHP is vulnerable to an integer overflow in the mysqli_api.c:mysqli_real_escape_string() function. An attacker could exploit this by performing a crafted query to cause a crash.


Upstream Bug:

https://bugs.php.net/bug.php?id=74544

Comment 2 Pedro Yóssis Silva Barbosa 2018-08-10 15:29:36 UTC
Created php tracking bugs for this issue:

Affects: fedora-all [bug 1614880]

Comment 6 Pedro Yóssis Silva Barbosa 2018-08-13 21:33:48 UTC
Statement:

This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 6 and 7 (versions 5.3.3 and 5.4.16, respectively).

Comment 7 Remi Collet 2018-09-19 10:38:58 UTC
Notice: this issue is not considered by upstream as a security issue, as it rely on bad local configuration (no memory limit)

See: https://wiki.php.net/security

Comment 8 errata-xmlrpc 2019-08-19 08:42:33 UTC
This issue has been addressed in the following products:

  Red Hat Software Collections for Red Hat Enterprise Linux 7
  Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
  Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS

Via RHSA-2019:2519 https://access.redhat.com/errata/RHSA-2019:2519

Comment 9 Product Security DevOps Team 2019-08-19 08:47:26 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2017-9120