-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
                         AUSCERT Security Bulletin

                               ASB-2017.0109
                      Security Advisory: Oracle MySQL
                               20 July 2017

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Oracle MySQL Cluster
                      Oracle MySQL Connectors
                      Oracle MySQL Enterprise Monitor
                      Oracle MySQL Server
Operating System:     Windows
                      UNIX variants (UNIX, Linux, OSX)
Impact/Access:        Execute Arbitrary Code/Commands -- Remote/Unauthenticated
                      Access Privileged Data          -- Remote/Unauthenticated
                      Modify Arbitrary Files          -- Remote/Unauthenticated
                      Delete Arbitrary Files          -- Remote/Unauthenticated
                      Denial of Service               -- Remote/Unauthenticated
Resolution:           Patch/Upgrade
CVE Names:            CVE-2017-5651 CVE-2017-5647 CVE-2017-3732
                      CVE-2017-3653 CVE-2017-3652 CVE-2017-3651
                      CVE-2017-3650 CVE-2017-3649 CVE-2017-3648
                      CVE-2017-3647 CVE-2017-3646 CVE-2017-3645
                      CVE-2017-3644 CVE-2017-3643 CVE-2017-3642
                      CVE-2017-3641 CVE-2017-3640 CVE-2017-3639
                      CVE-2017-3638 CVE-2017-3637 CVE-2017-3636
                      CVE-2017-3635 CVE-2017-3634 CVE-2017-3633
                      CVE-2017-3529 CVE-2016-4436 CVE-2014-1912
Member content until: Saturday, August 19 2017
Reference:            ASB-2017.0059
                      ESB-2017.1102
                      ESB-2017.1101
                      ESB-2016.1554
                      ESB-2015.1938

OVERVIEW

        Multiple vulnerabilities have been identified in Oracle MySQL products:
        
         - MySQL Cluster, versions 7.3.5 and prior.
        
         - MySQL Connectors, versions 5.3.7 and prior, 6.1.10 and prior.
        
         - MySQL Enterprise Monitor, versions 3.1.5.7958 and prior, 3.2.5.1141
        and prior, 3.2.7.1204 and prior, 3.3.2.1162 and prior, 3.3.3.1199 
        and prior.
        
         - MySQL Server, versions 5.5.56 and prior, 5.6.36 and prior, 5.7.18 
        and prior. [1]


IMPACT

        The vendor has provided the following information regarding to the 
        vulnerabilities.
        
        "This Critical Patch Update contains 30 new security fixes for 
        Oracle MySQL. 9 of these vulnerabilities may be remotely exploitable
        without authentication, i.e., may be exploited over a network 
        without requiring user credentials." [1]
        
        "CVE-2016-4436
        
        9.8
        
        AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
        
        Supported versions that are affected are 3.1.5.7958 and earlier, 
        3.2.5.1141 and earlier, 3.3.2.1162 and earlier and . Easily 
        exploitable vulnerability allows unauthenticated attacker with 
        network access via HTTP over TLS to compromise MySQL Enterprise 
        Monitor. Successful attacks of this vulnerability can result in 
        takeover of MySQL Enterprise Monitor.
        
        CVE-2017-5651
        
        9.8
        
        AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
        
        Supported versions that are affected are 3.2.7.1204 and earlier and
        3.3.3.1199 and earlier. Easily exploitable vulnerability allows 
        unauthenticated attacker with network access via HTTP over TLS to 
        compromise MySQL Enterprise Monitor. Successful attacks of this 
        vulnerability can result in takeover of MySQL Enterprise Monitor.
        
        CVE-2017-5647
        
        7.5
        
        AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
        
        Supported versions that are affected are 3.3.3.1199 and earlier. 
        Easily exploitable vulnerability allows unauthenticated attacker 
        with network access via HTTP over TLS to compromise MySQL Enterprise
        Monitor. Successful attacks of this vulnerability can result in 
        unauthorized access to critical data or complete access to all MySQL
        Enterprise Monitor accessible data.
        
        CVE-2017-3633
        
        6.5
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
        
        Supported versions that are affected are 5.6.36 and earlier and 
        5.7.18 and earlier. Difficult to exploit vulnerability allows 
        unauthenticated attacker with network access via Memcached to 
        compromise MySQL Server. Successful attacks of this vulnerability 
        can result in unauthorized ability to cause a hang or frequently 
        repeatable crash (complete DOS) of MySQL Server as well as 
        unauthorized update, insert or delete access to some of MySQL Server
        accessible data.
        
        CVE-2017-3634
        
        6.5
        
        AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.6.36 and earlier and 
        5.7.18 and earlier. Easily exploitable vulnerability allows low 
        privileged attacker with network access via multiple protocols to 
        compromise MySQL Server. Successful attacks of this vulnerability 
        can result in unauthorized ability to cause a hang or frequently 
        repeatable crash (complete DOS) of MySQL Server.
        
        CVE-2017-3732
        
        5.9
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
        
        The supported version that is affected is 11.1.2.4.0. Difficult to 
        exploit vulnerability allows unauthenticated attacker with network 
        access via HTTPS to compromise Oracle API Gateway. Successful 
        attacks of this vulnerability can result in unauthorized access to 
        critical data or complete access to all Oracle API Gateway 
        accessible data.
        
        CVE-2017-3732
        
        5.9
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
        
        The supported version that is affected is 11.1.2.4.0. Difficult to 
        exploit vulnerability allows unauthenticated attacker with network 
        access via HTTPS to compromise Oracle API Gateway. Successful 
        attacks of this vulnerability can result in unauthorized access to 
        critical data or complete access to all Oracle API Gateway 
        accessible data.
        
        CVE-2017-3732
        
        5.9
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
        
        The supported version that is affected is 11.1.2.4.0. Difficult to 
        exploit vulnerability allows unauthenticated attacker with network 
        access via HTTPS to compromise Oracle API Gateway. Successful 
        attacks of this vulnerability can result in unauthorized access to 
        critical data or complete access to all Oracle API Gateway 
        accessible data.
        
        CVE-2017-3635
        
        5.3
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 6.1.10 and earlier. 
        Difficult to exploit vulnerability allows low privileged attacker 
        with network access via multiple protocols to compromise MySQL 
        Connectors. Successful attacks of this vulnerability can result in 
        unauthorized ability to cause a hang or frequently repeatable crash
        (complete DOS) of MySQL Connectors. Note: The documentation has also
        been updated for the correct way to use mysql_stmt_close(). Please 
        see:https://dev.mysql.com/doc/refman/5.7/en/mysql-stmt- 
        execute.html, https://dev.mysql.com/doc/refman/5.7/en/mysql- 
        stmt-fetch.html,https://dev.mysql.com/doc/refman/5.7/en /mysql-stmt-
        close.html,https://dev.mysql.com/doc/refman/5.7/en/mysql- 
        stmt-error.html,https://dev.mysql.com/doc/refman/5.7/en 
        /mysql-stmt-errno.html, and 
        https://dev.mysql.com/doc/refman/5.7/en/mysql-stmt- sqlstate.html.
        
        CVE-2017-3635
        
        5.3
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 6.1.10 and earlier. 
        Difficult to exploit vulnerability allows low privileged attacker 
        with network access via multiple protocols to compromise MySQL 
        Connectors. Successful attacks of this vulnerability can result in 
        unauthorized ability to cause a hang or frequently repeatable crash
        (complete DOS) of MySQL Connectors. Note: The documentation has also
        been updated for the correct way to use mysql_stmt_close(). Please 
        see:https://dev.mysql.com/doc/refman/5.7/en/mysql-stmt- 
        execute.html, https://dev.mysql.com/doc/refman/5.7/en/mysql- 
        stmt-fetch.html,https://dev.mysql.com/doc/refman/5.7/en /mysql-stmt-
        close.html,https://dev.mysql.com/doc/refman/5.7/en/mysql- 
        stmt-error.html,https://dev.mysql.com/doc/refman/5.7/en 
        /mysql-stmt-errno.html, and 
        https://dev.mysql.com/doc/refman/5.7/en/mysql-stmt- sqlstate.html.
        
        CVE-2017-3636
        
        5.3
        
        AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
        
        Supported versions that are affected are 5.5.56 and earlier and 
        5.6.36 and earlier. Easily exploitable vulnerability allows low 
        privileged attacker with logon to the infrastructure where MySQL 
        Server executes to compromise MySQL Server. Successful attacks of 
        this vulnerability can result in unauthorized update, insert or 
        delete access to some of MySQL Server accessible data as well as 
        unauthorized read access to a subset of MySQL Server accessible data
        and unauthorized ability to cause a partial denial of service 
        (partial DOS) of MySQL Server.
        
        CVE-2017-3529
        
        5.3
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. 
        Difficult to exploit vulnerability allows low privileged attacker 
        with network access via multiple protocols to compromise MySQL 
        Server. Successful attacks of this vulnerability can result in 
        unauthorized ability to cause a hang or frequently repeatable crash
        (complete DOS) of MySQL Server.
        
        CVE-2017-3637
        
        5.3
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. 
        Difficult to exploit vulnerability allows low privileged attacker 
        with network access via multiple protocols to compromise MySQL 
        Server. Successful attacks of this vulnerability can result in 
        unauthorized ability to cause a hang or frequently repeatable crash
        (complete DOS) of MySQL Server.
        
        CVE-2017-3639
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3640
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3641
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.5.56 and earlier, 5.6.36
        and earlier and 5.7.18 and earlier. Easily exploitable vulnerability
        allows high privileged attacker with network access via multiple 
        protocols to compromise MySQL Server. Successful attacks of this 
        vulnerability can result in unauthorized ability to cause a hang or
        frequently repeatable crash (complete DOS) of MySQL Server.
        
        CVE-2017-3643
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3644
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3638
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3642
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3645
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.18 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2017-3646
        
        4.9
        
        AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.7.16 and earlier. Easily
        exploitable vulnerability allows high privileged attacker with 
        network access via multiple protocols to compromise MySQL Server. 
        Successful attacks of this vulnerability can result in unauthorized
        ability to cause a hang or frequently repeatable crash (complete 
        DOS) of MySQL Server.
        
        CVE-2014-1912
        
        4.8
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L
        
        Supported versions that are affected are 7.3.5 and earlier. 
        Difficult to exploit vulnerability allows unauthenticated attacker 
        with network access via multiple protocols to compromise MySQL 
        Cluster. Successful attacks of this vulnerability can result in 
        unauthorized update, insert or delete access to some of MySQL 
        Cluster accessible data and unauthorized ability to cause a partial
        denial of service (partial DOS) of MySQL Cluster.
        
        CVE-2017-3648
        
        4.4
        
        AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.5.56 and earlier, 5.6.36
        and earlier and 5.7.18 and earlier. Difficult to exploit 
        vulnerability allows high privileged attacker with network access 
        via multiple protocols to compromise MySQL Server. Successful 
        attacks of this vulnerability can result in unauthorized ability to
        cause a hang or frequently repeatable crash (complete DOS) of MySQL
        Server.
        
        CVE-2017-3647
        
        4.4
        
        AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.6.36 and earlier and 
        5.7.18 and earlier. Difficult to exploit vulnerability allows high 
        privileged attacker with network access via multiple protocols to 
        compromise MySQL Server. Successful attacks of this vulnerability 
        can result in unauthorized ability to cause a hang or frequently 
        repeatable crash (complete DOS) of MySQL Server.
        
        CVE-2017-3649
        
        4.4
        
        AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:N/A:H
        
        Supported versions that are affected are 5.6.36 and earlier and 
        5.7.18 and earlier. Difficult to exploit vulnerability allows high 
        privileged attacker with network access via multiple protocols to 
        compromise MySQL Server. Successful attacks of this vulnerability 
        can result in unauthorized ability to cause a hang or frequently 
        repeatable crash (complete DOS) of MySQL Server.
        
        CVE-2017-3651
        
        4.3
        
        AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
        
        Supported versions that are affected are 5.5.56 and earlier, 5.6.36
        and earlier and 5.7.18 and earlier. Easily exploitable vulnerability
        allows low privileged attacker with network access via multiple 
        protocols to compromise MySQL Server. Successful attacks of this 
        vulnerability can result in unauthorized update, insert or delete 
        access to some of MySQL Server accessible data.
        
        CVE-2017-3652
        
        4.2
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
        
        Supported versions that are affected are 5.5.56 and earlier, 5.6.36
        and earlier and 5.7.18 and earlier. Difficult to exploit 
        vulnerability allows low privileged attacker with network access via
        multiple protocols to compromise MySQL Server. Successful attacks of
        this vulnerability can result in unauthorized update, insert or 
        delete access to some of MySQL Server accessible data as well as 
        unauthorized read access to a subset of MySQL Server accessible 
        data.
        
        CVE-2017-3650
        
        3.7
        
        AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
        
        Supported versions that are affected are 5.7.18 and earlier. 
        Difficult to exploit vulnerability allows unauthenticated attacker 
        with network access via multiple protocols to compromise MySQL 
        Server. Successful attacks of this vulnerability can result in 
        unauthorized read access to a subset of MySQL Server accessible 
        data.
        
        CVE-2017-3653
        
        3.1
        
        AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:N
        
        Supported versions that are affected are 5.5.56 and earlier, 5.6.36
        and earlier and 5.7.18 and earlier. Difficult to exploit 
        vulnerability allows low privileged attacker with network access via
        multiple protocols to compromise MySQL Server. Successful attacks of
        this vulnerability can result in unauthorized update, insert or 
        delete access to some of MySQL Server accessible data." [2]


MITIGATION

        Oracle states:
        
        "Due to the threat posed by a successful attack, Oracle strongly 
        recommends that customers apply CPU fixes as soon as possible. Until
        you apply the CPU fixes, it may be possible to reduce the risk of 
        successful attack by blocking network protocols required by an 
        attack. For attacks that require certain privileges or access to 
        certain packages, removing the privileges or the ability to access 
        the packages from users that do not need the privileges may help 
        reduce the risk of successful attack. Both approaches may break 
        application functionality, so Oracle strongly recommends that 
        customers test changes on non-production systems. Neither approach 
        should be considered a long-term solution as neither corrects the 
        underlying problem." [1]


REFERENCES

        [1] Oracle Critical Patch Update Advisory - July 2017
            http://www.oracle.com/technetwork/security-advisory/cpujul2017-3236622.html

        [2] Text Form of Oracle Critical Patch Update - July 2017 Risk Matrices
            http://www.oracle.com/technetwork/security-advisory/cpujul2017verbose-3236625.html

AusCERT has made every effort to ensure that the information contained
in this document is accurate.  However, the decision to use the information
described is the responsibility of each user or organisation. The decision to
follow or act on information or advice contained in this security bulletin is
the responsibility of each user or organisation, and should be considered in
accordance with your organisation's site policies and procedures. AusCERT
takes no responsibility for consequences which may arise from following or
acting on information or advice contained in this security bulletin.

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours 
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBWW/djIx+lLeg9Ub1AQjeIA/9GNNqC+STt7R8xxXVe77lKBY+7oqo/B2M
a91bE+rznxBHKAQp3PxQJtbq/2c0iwUkv+k1/k9xMQedGDXAamwzbeFeYWIv/VZR
XZWM8rpE9vwAVZCQUkOtvViHtlYmwT8ZWVRtfsT1j0HCgVNFc6pj9JIX7xykX5QX
Vqu8JlKTBUogwEN5KMr8hkEZAkuF+NYCZUOpAivVxBsgOgWaDw08t8l9ODzfWugB
55aGc4Mm6z+Yey1NitE/BqMM+EcZCICmok8V/RSg7YSg5Ekj7LRe6Nx97RLopStG
w5f5ysxZtWOdFyueNoglku4X3vmC3359AIagRNizDgaAHGTDv7zoSdOfD1K0amID
BiSl0cOQoTl+916P/d5ExVPL+UpMC/28FbTFzJK8uXPe+bT7IGRtQLjIF9lHvj5t
KGwxbaQi5/l9vT8KozyQf4smE9H/S3xN6mGaND/dbJXgCs1+xH83B2Dx6RR6o9Zu
ZWL8RQxUOZQpJsUMXTIn9HDRBBoVBiEznNh3wMqztS/Qiq7NNkoD45HC/fEph5Bz
Hi0oIhfEyYWKVYLXOX83OgK873K8UTsqg6wH0CMFNXN6pVOt1Z3cVrb96m+lSKm+
0yKcM6EWuZMyxTh4rDAlVGZYHcaVWigaYFGF1u4+No61JA2QS6QF3K/oTQI1/p6j
4iIGxOSbEeE=
=831X
-----END PGP SIGNATURE-----