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

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                              ESB-2019.4300.6
  Cisco Adaptive Security Appliance Software and Firepower Threat Defense
               Software Remote Code Execution Vulnerability
                             17 December 2019

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

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

Product:           Cisco Adaptive Security Appliance (ASA)
                   Cisco Firepower Threat  Defense (FTD)
Publisher:         Cisco Systems
Operating System:  Cisco
Impact/Access:     Root Compromise -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2019-15992  

Original Bulletin: 
   https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-20191112-asa-ftd-lua-rce

Revision History:  December 17 2019: Updated to latest revision
                   December  4 2019: Vendor added ASA fixed software release information
                   November 25 2019: Vendor added info on ASA fixes
                   November 20 2019: Updated fixed software release information and removed Cisco FTD Software Fixed Software table.
                   November 18 2019: Added fixed software release information.
                   November 14 2019: Initial Release

- --------------------------BEGIN INCLUDED TEXT--------------------

Cisco Adaptive Security Appliance Software and Firepower Threat Defense
Software Remote Code Execution Vulnerability

Priority:        High

Advisory ID:     cisco-sa-20191112-asa-ftd-lua-rce

First Published: 2019 November 12 13:15 GMT

Last Updated:    2019 December 16 14:48 GMT

Version 2.4:     Interim

Workarounds:     No workarounds availableCisco Bug IDs:   CSCvr85295CSCvr96680

CVE-2019-15992   

CWE-119

CVSS Score:
7.2  AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H/E:X/RL:X/RC:X

Summary

  o A vulnerability in the implementation of the Lua interpreter integrated in
    Cisco Adaptive Security Appliance (ASA) Software and Cisco Firepower Threat
    Defense (FTD) Software could allow an authenticated, remote attacker to
    execute arbitrary code with root privileges on the underlying Linux
    operating system of an affected device.

    The vulnerability is due to insufficient restrictions on the allowed Lua
    function calls within the context of user-supplied Lua scripts. A
    successful exploit could allow the attacker to trigger a heap overflow
    condition and execute arbitrary code with root privileges on the underlying
    Linux operating system of an affected device.

    Cisco has released software updates that address this vulnerability. There
    are no workarounds that address this vulnerability.

    This advisory is available at the following link:
    https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/
    cisco-sa-20191112-asa-ftd-lua-rce

Affected Products

  o Vulnerable Products

    This vulnerability affects all versions of Cisco ASA Software and Cisco FTD
    Software.

    Products Confirmed Not Vulnerable

    Only products listed in the Vulnerable Products section of this advisory
    are known to be affected by this vulnerability.

    Cisco has confirmed that this vulnerability does not affect the following
    Cisco products:

       Adaptive Security Device Manager
       Cisco Security Manager
       Firepower Management Center
       Firepower Management Center 1000

Details

  o At publication time, the vulnerability described in this advisory had been
    identified in the following Cisco Products:

    Cisco Adaptive Security Appliance (ASA) Software

    The Dynamic Access Policy (DAP) feature of Cisco ASA Software allows an
    administrator to create policies that apply the appropriate access control
    attributes based on factors dynamically assessed at the time of the
    establishment of the VPN session. DAP offers the capability of defining
    enhanced authentication, authorization, and accounting (AAA) policies by
    using the Lua programming language. These user-defined Lua scripts are
    executed within the scripting sandbox of the device.

    The local implementation of the Lua interpreter, however, imposes
    insufficient restrictions on the allowed Lua function calls within the
    scripting sandbox of the affected device. An attacker who has valid
    administrative credentials can submit a malicious Lua script that, on
    execution, will escape the scripting sandbox and execute arbitrary code
    with root privileges on the underlying Linux Operating System of an
    affected device.

    Cisco Firepower Threat Defense (FTD) Software

    The Custom Application Detectors feature allows an administrator to define
    custom logic to identify and filter IP traffic based on user-defined
    applications on Cisco FTD devices managed through Firepower Management
    Center (FMC).

    As part of the process of defining custom application detection logic, an
    administrator can create two types of detectors: Basic or Advanced. Basic
    application detectors are created in the FMC web-based interface by filling
    out a series of web form fields. Advanced application detectors are created
    externally and uploaded to the FMC web interface as custom Lua files that
    contain user-defined application detector logic. Once configured, the
    advanced custom application detectors are downloaded and executed within
    the scripting sandbox of the managed FTD device.

    An attacker who has valid administrative credentials can configure an
    Advanced Detector on the FMC web interface and submit a malicious Lua
    script. The detector configuration and the malicious script will be pushed
    to a managed FTD device. On execution, the malicious script will escape the
    scripting sandbox and execute arbitrary code with root privileges on the
    underlying Linux operating system of the FTD device.

Workarounds

  o There are no workarounds that address this vulnerability.

Fixed Software

  o Cisco has released free updates that address the vulnerability described in
    this advisory. Customers may only install and expect support for software
    versions and feature sets for which they have purchased a license. By
    installing, downloading, accessing, or otherwise using such software
    upgrades, customers agree to follow the terms of the Cisco software
    license:

    https://www.cisco.com/c/en/us/products/end-user-license-agreement.html

    Additionally, customers may only download software for which they have a
    valid license, procured from Cisco directly, or through a Cisco authorized
    reseller or partner. In most cases this will be a maintenance upgrade to
    software that was previously purchased. Free security software updates do
    not entitle customers to a new software license, additional software
    feature sets, or major revision upgrades.

    When considering software upgrades , customers are advised to regularly
    consult the advisories for Cisco products, which are available from the
    Cisco Security Advisories and Alerts page , to determine exposure and a
    complete upgrade solution.

    In all cases, customers should ensure that the devices to be upgraded
    contain sufficient memory and confirm that current hardware and software
    configurations will continue to be supported properly by the new release.
    If the information is not clear, customers are advised to contact the Cisco
    Technical Assistance Center (TAC) or their contracted maintenance
    providers.

    Customers Without Service Contracts

    Customers who purchase directly from Cisco but do not hold a Cisco service
    contract and customers who make purchases through third-party vendors but
    are unsuccessful in obtaining fixed software through their point of sale
    should obtain upgrades by contacting the Cisco TAC:
    https://www.cisco.com/c/en/us/support/web/tsd-cisco-worldwide-contacts.html

    Customers should have the product serial number available and be prepared
    to provide the URL of this advisory as evidence of entitlement to a free
    upgrade.

    Fixed Releases

    Cisco ASA Software

    In the following table, the left column lists major releases of Cisco ASA
    Software. The right column indicates the first release that includes the
    fix for this vulnerability.

    If a future release date is indicated for software, the date provided
    represents an estimate based on all information known to Cisco as of the
    Last Updated date at the top of the advisory. Availability dates are
    subject to change based on a number of factors, including satisfactory
    testing results and delivery of other priority features and fixes. Cisco
    advises customers to refer to Cisco bug CSCvr85295 for further details.

    Cisco ASA Software Release   First Fixed Release for This Vulnerability
    Prior to 9.4 ^1              9.6.4.36 (Available)
    9.4 ^1                       9.6.4.36 (Available)
    9.5 ^1                       9.6.4.36 (Available)
    9.6                          9.6.4.36 (Available)
    9.7 ^1                       Migrate to 9.8.4.15
    9.8                          9.8.4.15 (Available)
    9.9                          9.9.2.61 (Available)
    9.10                         9.10.1.32 (December 2019)
    9.12                         9.12.3 (Available)
    9.13                         9.13.1.4 (January 2020)

    1. Cisco ASA Software releases 9.4 and earlier and Cisco ASA Software
    releases 9.5 and 9.7 have reached end of maintenance. Customers should
    migrate to a supported release that includes the fix for this
    vulnerability.

    Cisco FTD Software

    Although this vulnerability affects sensors that are running Cisco FTD
    Software, fixing this vulnerability also requires closing the attack vector
    via the Cisco Firepower Management Center (FMC).

    Cisco has released software updates that address the vulnerability
    described in this advisory. The complete fix requires installation of the
    VDB updates that can be installed through FMC on a managed FTD device and
    the installation of FMC hotfixes. Cisco suggests that customers install VDB
    updates and FMC hotfixes in any order before any deployment.

    If a future release date is indicated for software, the date provided
    represents an estimate based on all information known to Cisco as of the
    Last Updated date at the top of the advisory. Availability dates are
    subject to change based on a number of factors, including satisfactory
    testing results and delivery of other priority features and fixes.

    In the following table, the left column lists releases of FMC Software. The
    center column indicates the first VDB update that includes the fix for this
    vulnerability, and the right column indicates the FMC hotfix that includes
    the fix for this vulnerability.

    Cisco    First Fixed   First Fixed FMC Release for This Vulnerability
    FMC      VDB Update
    Software for This
    Release  Vulnerability
    Earlier  VDB Update
    than     329           Migrate to FMC 6.2.3
    6.1.0
    6.1.0    VDB Update    Migrate to FMC 6.2.3
             329
    6.2.0    VDB Update    Migrate to FMC 6.2.3
             329
    6.2.1    VDB Update    Migrate to FMC 6.2.3
             329
    6.2.2    VDB Update    Migrate to FMC 6.2.3
             329
    6.2.3    VDB Update    Sourcefire_3D_Defense_Center_S3_Hotfix_DQ-6.2.3.16-2
             329
    6.3.0    VDB Update    Release no. TBD (December 20, 2019)
             329
    6.4.0    VDB Update    Cisco_Firepower_Mgmt_Center_Hotfix_AA-6.4.0.7-3
             329
    6.5.0    VDB Update    Cisco_Firepower_Mgmt_Center_Hotfix_B-6.5.0.2-2
             329


    Customers can download VDB updates from the Software Center on Cisco.com
    and install them by following the steps indicated in the Firepower
    Management Center Configuration Guide .

    Customers can download FMC hotfixes from the Software Center on Cisco.com
    and install them by following the steps indicated in the Cisco Firepower
    Hotfix Release Notes .

Exploitation and Public Announcements

  o The Cisco Product Security Incident Response Team (PSIRT) is aware that
    proof-of-concept exploit code is available for the vulnerability described
    in this advisory.

    Cisco PSIRT is not aware of any malicious use of the vulnerability that is
    described in this advisory.

Source

  o Cisco would like to thank md4 of HatLab@DBAPPSecurity for reporting this
    vulnerability.

Cisco Security Vulnerability Policy

  o To learn about Cisco security vulnerability disclosure policies and
    publications, see the Security Vulnerability Policy . This document also
    contains instructions for obtaining fixed software and receiving security
    vulnerability information from Cisco.

URL

  o https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/
    cisco-sa-20191112-asa-ftd-lua-rce

Revision History

  o +---------+----------------------+-----------+---------+------------------+
    | Version |     Description      |  Section  | Status  |       Date       |
    +---------+----------------------+-----------+---------+------------------+
    |         | Added FTD fixed      |           |         |                  |
    |         | software release     |           |         |                  |
    |         | information,         |           |         |                  |
    |         | including discussion |           |         |                  |
    |         | of the FMC hotfixes. |           |         |                  |
    |         | Updated ASA fixed    | Summary,  |         |                  |
    |         | software release     | Fixed     |         |                  |
    | 2.4     | information.         | Software, | Interim | 2019-December-16 |
    |         | Expanded revision    | Revision  |         |                  |
    |         | history for version  | History   |         |                  |
    |         | 2.0 of this advisory |           |         |                  |
    |         | when removing the    |           |         |                  |
    |         | history of VDB       |           |         |                  |
    |         | Update 329 from the  |           |         |                  |
    |         | Summary section.     |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    |         | Added ASA fixed      | Fixed     |         |                  |
    | 2.3     | software release     | Software  | Interim | 2019-December-03 |
    |         | information.         |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    |         | Fixed formatting and |           |         |                  |
    | 2.2     | typo in ASA fixed    | Fixed     | Interim | 2019-November-27 |
    |         | software release     | Software  |         |                  |
    |         | information.         |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    |         | Added ASA fixed      | Summary   |         |                  |
    | 2.1     | software release     | and Fixed | Interim | 2019-November-22 |
    |         | information.         | Software  |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    |         | Updated fixed        |           |         |                  |
    |         | software release     |           |         |                  |
    |         | information and      |           |         |                  |
    |         | removed Cisco FTD    |           |         |                  |
    |         | Software fixed       |           |         |                  |
    |         | software table. The  |           |         |                  |
    |         | FTD table was        |           |         |                  |
    |         | removed in version   |           |         |                  |
    |         | 2.0 of this advisory | Summary   |         |                  |
    | 2.0     | because VDB Update   | and Fixed | Interim | 2019-November-19 |
    |         | 329 did not provide  | Software  |         |                  |
    |         | adequate mitigation  |           |         |                  |
    |         | for this             |           |         |                  |
    |         | vulnerability for    |           |         |                  |
    |         | FTD until FMC was    |           |         |                  |
    |         | addressed. FMC was   |           |         |                  |
    |         | later addressed with |           |         |                  |
    |         | hotfixes beginning   |           |         |                  |
    |         | with version 2.4 of  |           |         |                  |
    |         | this advisory.       |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    |         | Added fixed software |           |         |                  |
    |         | release information  | Summary   |         |                  |
    | 1.1     | to the Summary and   | and Fixed | Interim | 2019-November-15 |
    |         | Fixed Software       | Software  |         |                  |
    |         | sections.            |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+
    | 1.0     | Initial public       | -         | Interim | 2019-November-12 |
    |         | release.             |           |         |                  |
    +---------+----------------------+-----------+---------+------------------+

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. 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.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
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

iQIVAwUBXfgnEWaOgq3Tt24GAQh3mQ//Y1zlLyizMCIi+NqamYm4w5QNZAeQl7TQ
T6/l6ozgErtLVh5zRj5RRvuy9kzSH7J0sn7VYcrQoiqRNvdBE8vh+QGapkQykqgC
+ScIBfWnYWg0A0KHgH8QPKgfcbsn6fqddB2IzKLkyW/pqKGTobn+dBUq36HUlGGd
gVx5zi+CHBRQR266LByrD5zdbOlQR4CSSV7GbDHfzUV5J9s7oPXIM4g0o703/2PI
M7b/qx0OlOr+aUK3q1BEDbZ4uKMGJiUDMesOJX5bTmMCiRm3c8y2QxwuST4RbUMN
CekWTEd6CQwEFJbuROtlQ5n6IEWl/c2/iDvcDMI+UOhu6Id+wZJqHOmLI5ZMHu0a
BlCTzrHRdjrrvAVpAqVkzRRfwS1UkuaR7y/NAEdVMo1h8WR+c1Ud9CyMwO+DMOtw
VyJlzkGx0ijN/WZWusRgYSbruky0Ra74q7BHS8843L4Y6Jpr+S4uaQ5zVaYrydVB
2nzmwnfCZfjyR0snWChJ0hJJkqoG8qV5iwaXuNLA/41qfyTXXh4zpt8QytxDsuK9
4zKl2Ung97visf5vvm2vlcuMpK1Q37/Pbv6FOhY75D5n4MAVme26hMiTNr8tD3xV
xE3AVgXwRUrpnXo70k6sW81KjJL1YmHo2tE7TjJvUsBnuOu+Yi+97opRcbzEQ1tL
9exXU5pU/j0=
=d17M
-----END PGP SIGNATURE-----