Patching the Remote Code Execution (CVE-2019-9535) vulnerability in iTerm2 macOS terminal emulator app

    Follow

    Overview:

    iTerm2 is a popularly used GPL licensed macOS terminal emulator. A Remote Code Execution vulnerability was exposed recently in the Tmux integration feature of this open source application. The successful exploitation of this vulnerability allows an attacker to execute arbitrary commands which provides malicious output to the terminal. Besides this, it could also be exploited using command-line utilities that print attacker-controlled content.

     CVE assigned:

    CVE-2019-9535

     Affected Software's:

    iTerm2 versions before 3.3.6

     Solution:

    To address this vulnerability, the vendor has released patch for iTerm2 application. For more information, please refer to our blog:

    Use SanerNow platform to apply this critical patch quickly across the organization as shown below.

     SanerNow:

    Vulnerability detection and patching of iTerm2:

    1. Login to SanerNow platform

    2. Switch to the account/site specific view and Go to 'VM tool'

    3. If your Application (iTerm2) is vulnerable, Saner lists CVE-2019-9535 in 'Top Vulnerabilities or 'Recently Discovered Vulnerabilities' as shown in the below diagram:

    IMAGE_1.png

     4. Search for this vulnerability in VM tool. If you are affected, apply the patch through PM -> Missing Patches.

    5. Select 'Groups/Devices' in the 'Asset Source' section and click 'Apply'.

    6. Select the product 'iTerm2' from the 'Asset' section as shown in the below image:

    IMAGE_2.png

     7. Select ‘Apply Selected Patches’ at the rightmost corner. This will prompt for ‘Creating Patch Task’. Fill in ‘Task Name’ and ‘Remediation Schedule' as per your preference and click on ‘Apply Selected Patches' as shown below:

     IMAGE_3.png

     8. Remediation job will be created, which will fix the vulnerability by upgrading iTerm2 to the latest patch version.

    9. Once remediation is done, the Saner agent automatically scans again and uploads the result to SanerNow as shown below:

    IMAGE_4.png

     

    Was this article helpful?
    0 out of 0 found this helpful

    Comments