Quick answers
- Is CVE-2017-3312 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2017-3312 being exploited in the wild.
- How severe is CVE-2017-3312?
- Medium severity, with a CVSS score of 6.7, published 27 January 2017.
- Which products and versions are affected?
- Oracle MySQL Server 5.5.53 and earlier, 5.6.34 and earlier, 5.7.16 and earlier.
- Is there a fix for CVE-2017-3312?
- A patch was published on 2017-01-19: Debian released fixed mysql-5.5 packages Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2017-3312 attacked?
- It is attacked with local access, in an operating system.
- Am I affected by CVE-2017-3312?
- Check whether you run Oracle MySQL Server at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
Technical details
This vulnerability exists in the 'mysqld_safe' script and general packaging subcomponent of MySQL and MariaDB. It is a privilege escalation flaw where the script incorrectly handles the creation or management of error log files. A local attacker with low-privileged access to the underlying operating system can exploit this to escalate privileges, potentially reaching root access on some distributions. The attack is considered difficult to execute as it requires specific timing or conditions (high complexity) and requires interaction from a person other than the attacker. The issue is addressed in MySQL versions 5.5.54, 5.6.35, and 5.7.17, as well as MariaDB 5.5.54, 10.0.29, and 10.1.21.
Affected products
- Oracle MySQL Server 5.5.53 and earlier, 5.6.34 and earlier, 5.7.16 and earlier
- MariaDB Foundation MariaDB 5.5.0 before 5.5.54, 10.0.0 before 10.0.29, 10.1.0 before 10.1.21
Timeline
- 2017-01-17: advisory: Oracle Critical Patch Update (CPU) published
- 2017-01-19: patched: Debian released fixed mysql-5.5 packages
- 2017-01-22: patched: Debian released fixed mariadb-10.0 packages
- 2017-01-27: disclosed: NVD publication date
References
- http://www.debian.org/security/2017/dsa-3767
- http://www.debian.org/security/2017/dsa-3770
- http://www.oracle.com/technetwork/security-advisory/cpujan2017-2881727.html
- http://www.securityfocus.com/bid/95491
- http://www.securitytracker.com/id/1037640
- https://access.redhat.com/errata/RHSA-2017:2192
- https://access.redhat.com/errata/RHSA-2017:2787