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

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

                               ESB-2021.2057
        CVE-2021-3040 Bridgecrew Checkov: Unsafe deserialization of
                   Terraform files allows code execution
                               10 June 2021

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

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

Product:           Bridgecrew Checkov 2.0
Publisher:         Palo Alto
Operating System:  Network Appliance
Impact/Access:     Execute Arbitrary Code/Commands -- Existing Account
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-3040  

Original Bulletin: 
   https://securityadvisories.paloaltonetworks.com/CVE-2021-3040

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

Palo Alto Networks Security Advisories / CVE-2021-3040

CVE-2021-3040 Bridgecrew Checkov: Unsafe deserialization of Terraform files
allows code execution

047910
Severity 6.7 . MEDIUM
Attack Vector NETWORK
Attack Complexity LOW
Privileges Required HIGH
User Interaction NONE
Scope UNCHANGED
Confidentiality Impact HIGH
Integrity Impact HIGH
Availability Impact LOW
NVD JSON     
Published 2021-06-09
Updated 2021-06-09
Reference
Discovered externally

Description

An unsafe deserialization vulnerability in Bridgecrew Checkov by Prisma Cloud
allows arbitrary code execution when processing a malicious terraform file.

This issue impacts Checkov 2.0 versions earlier than Checkov 2.0.139.

Checkov 1.0 versions are not impacted.

Product Status

       Versions        Affected  Unaffected
Bridgecrew Checkov 2.0 < 2.0.139 >= 2.0.139
Bridgecrew Checkov 1.0 None      all

Severity: MEDIUM

CVSSv3.1 Base Score: 6.7 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:L)

Exploitation Status

Palo Alto Networks is not aware of any malicious exploitation of this issue.

Weakness Type

CWE-502 Deserialization of Untrusted Data

Solution

This issue is fixed in Checkov 2.0.139 and all later versions.

Workarounds and Mitigations

Do not run Checkov on terraform files from untrusted sources or pull requests.

Acknowledgments

Palo Alto Networks thanks Bryan Eastes for discovering and reporting this
issue.

Timeline

2021-06-09 Initial publication
Terms of usePrivacyProduct Security Assurance and Vulnerability Disclosure
Policy Report vulnerabilitiesManage subscriptions
(C) 2020 Palo Alto Networks, Inc. All rights reserved.

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

iQIVAwUBYMFQW+NLKJtyKPYoAQgQaA//SplJTEjX2lwbf0XMzvsn/ezD9OiqZ7np
bGOBS7E52gqw7TT87k3B3L1qsHzizetTsLtaYDHCUIbge7cyDCmAOHND85AyHDMT
MZwPZd6yGV6lJEPZp8n5Z1haoJBfv9o1WfL3hI0Uk6S/GE54qmSlh7TMbop6hrp/
b7AetuOhdH0Z5N134m9C8SFXF9SrP8X7J5djCArc7DkBf4UrGELmIlHrMs/sM/p9
7/Au6logknFZmeW+qdpH8RfeIou4Lb2D4LCcGKkgDiZixzHka+GSRFQMP843Tgjq
Fh5YXRYmCj0yk/GNeBVBaTYrbDPDFrZgH6o3glLTymliH2t6hGFav58I7Ila1rJB
KRD7hZj69VMB/rOP1ZdHSeQOlv3lTJzcJsH9Tw82ZUkKtHdwNTehfZtKSj3MtVCA
Dp3ZnaD8ITEi1b79DpeXPKOnDHCRySA55cPCY5XgCVTR4EikzBuEU1mnpyL+AKva
l6aOM7UVwifE/++GcoqQ/3ANDGddHwzm3rwE4uLO6DS4HsmV4I/0BUfalelWZpak
slv2hYArfruHGHPiShMNa+UxbkPLYtQYmoM+tP2ltDTMcw8u9cuZKbpnV6qR5XqN
4h8RJo50ZFOYvZ6Ahmwzg5kojw+WOxVD5wikRN+QhrXI4fj6zG1jDUsi1dWdKo/P
4rPWt9hyECQ=
=Re01
-----END PGP SIGNATURE-----