CVE-2021-3040

Bridgecrew Checkov: Unsafe deserialization of Terraform files allows code execution

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.

Remediation

Solution:

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

Workaround:

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

Category

6.7
CVSS
Severity: Medium
CVSS 3.1 •
CVSS 2.0 •
EPSS 3.38% Top 15%
Vendor Advisory paloaltonetworks.com
Affected: Palo Alto Networks Bridgecrew Checkov
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-3040?
CVE-2021-3040 has been scored as a medium severity vulnerability.
How to fix CVE-2021-3040?
To fix CVE-2021-3040: This issue is fixed in Checkov 2.0.139 and all later versions.
Is CVE-2021-3040 being actively exploited in the wild?
It is possible that CVE-2021-3040 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~3% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-3040?
CVE-2021-3040 affects Palo Alto Networks Bridgecrew Checkov.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.