VulnarioBlogTerraform vulnerabilities

Terraform Vulnerabilities: The 5 Most Critical Terraform Security Bugs (CVEs)

Terraform vulnerabilities are security flaws in Terraform that attackers can abuse to steal data, take over a server or interrupt a service. Terraform is HashiCorp's infrastructure-as-code tool. The National Vulnerability Database (NVD) lists 5 CVEs for Terraform, 1 of them rated critical, and 1 was published in the last 12 months. None of them is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog for the product entries we checked.

This guide lists the 5 most critical Terraform security bugs, with the CVE number, CVSS score, affected versions and what to do about each one. It also covers Terraform security basics, the current end-of-life dates and a free way to be told about the next Terraform CVE as soon as it is published.

Key takeaways

  • No Terraform CVE is currently in CISA's KEV catalog for the entries we checked, but critical flaws still get exploited quickly once details are public.
  • 1 Terraform CVE is rated critical (CVSS v3), and 1 new one was published in the last 12 months.
  • The newest CVE in this guide is CVE-2025-13432, published Nov 21, 2025.
  • Supported Terraform releases today (per endoflife.date): 1.17, 1.16. Releases not on the list are past their announced end of life.
  • You can monitor Terraform for free. Vulnario emails you when a new CVE matches your version and the rest of your stack.

How we ranked these Terraform CVEs

We ranked CVEs first by whether CISA lists them as exploited, then by CVSS score (v3 scores before the older v2 scale, which is marked when used), then by publication date (newest first). When a technology has several product entries in NVD, we combined them and removed duplicates. This favors the bugs that matter most in practice, so the guide is a list of the most critical flaws we found, not a complete history.

Every CVE number, score, date and affected version below comes from the NVD record and the CISA KEV catalog, checked on Nov 3, 2026. Scores can change when NVD reanalyzes a record, so open the linked record if you need the current value.

The 5 most critical Terraform CVEs at a glance

Most critical Terraform vulnerabilities (data from NVD and CISA KEV)
#CVECVSSPublishedTypeCISA KEV
1CVE-2018-90579.8 Critical2018-03-27Critical security flawNo
2CVE-2021-362308.8 High2021-07-20Incorrect authorizationNo
3CVE-2023-47827.8 High2023-09-08Path traversalNo
4CVE-2019-193167.5 High2019-12-02Security flawNo
5CVE-2025-134324.3 Medium2025-11-21Incorrect authorizationNo

Each Terraform CVE explained

1. CVE-2018-9057: Critical security flaw

  • CVSS 9.8 Critical
  • Published 2018-03-27
  • CWE-332
What NVD says
aws/resource_aws_iam_user_login_profile.go in the HashiCorp Terraform Amazon Web Services (AWS) provider through v1.12.0 has an inappropriate PRNG algorithm and seeding, which makes it easier for remote attackers to obtain access by leveraging an IAM account that was provisioned with a weak password.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
up to and including 1.12.0
What to do
Apply the vendor's security update for your release and restart the service. See the vendor advisory (opens in a new tab).

NVD record for CVE-2018-9057 (opens in a new tab)

2. CVE-2021-36230: Incorrect authorization

  • CVSS 8.8 High
  • Published 2021-07-20
  • CWE-863
What NVD says
HashiCorp Terraform Enterprise releases up to v202106-1 did not properly perform authorization checks on a subset of API requests executed using the run token, allowing privilege escalation to organization owner. Fixed in v202107-1.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
before 202107-1
What to do
Upgrade to 202107-1 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2021-36230 (opens in a new tab)

3. CVE-2023-4782: Path traversal

  • CVSS 7.8 High
  • Published 2023-09-08
  • CWE-22
What NVD says
Terraform version 1.0.8 through 1.5.6 allows arbitrary file write during the `init` operation if run on maliciously crafted Terraform configuration. This vulnerability is fixed in Terraform 1.5.7.
How it can be attacked
Can be exploited locally on the machine with low attack complexity, needing low privileges and no user interaction. It has high impact on confidentiality, integrity and availability.
Affected versions
1.0.8 to before 1.5.7
What to do
Upgrade to 1.5.7 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2023-4782 (opens in a new tab)

4. CVE-2019-19316: Security flaw

  • CVSS 7.5 High
  • Published 2019-12-02
  • CWE-319
What NVD says
When using the Azure backend with a shared access signature (SAS), Terraform versions prior to 0.12.17 may transmit the token and state snapshot using cleartext HTTP.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing no privileges and no user interaction. It has high impact on confidentiality.
Affected versions
before 0.12.17
What to do
Upgrade to 0.12.17 or a later release, then restart the service.

NVD record for CVE-2019-19316 (opens in a new tab)

5. CVE-2025-13432: Incorrect authorization

  • CVSS 4.3 Medium
  • Published 2025-11-21
  • CWE-863
What NVD says
Terraform state versions can be created by a user with specific but insufficient permissions in a Terraform Enterprise workspace. This may allow for the alteration of infrastructure if a subsequent plan operation is approved by a user with approval permission or auto-applied. This vulnerability, CVE-2025-13432, is fixed in Terraform Enterprise version 1.1.1 and 1.0.3.
How it can be attacked
Can be exploited remotely over the network with low attack complexity, needing low privileges and no user interaction. It has limited impact on integrity.
Affected versions
1.0.0 to before 1.0.3; 1.1.0
What to do
Upgrade to 1.0.3 or a later release, then restart the service.
Advisory
Vendor advisory or patch (opens in a new tab)

NVD record for CVE-2025-13432 (opens in a new tab)

Terraform end of life: which versions still get security fixes

Running a release that still receives security fixes is the most effective way to avoid Terraform vulnerabilities. After a release reaches end of life, newly published CVEs stay unpatched. As of Nov 3, 2026 the supported Terraform releases are 1.17, 1.16.

Terraform release support (source: endoflife.date, checked Nov 3, 2026)
ReleaseReleasedEnd of lifeLatestStatus
Terraform 1.17Oct 21, 2026Not announced1.17.1Supported
Terraform 1.16Aug 26, 2026Not announced1.16.7Supported
Terraform 1.15Apr 29, 2026Oct 21, 20261.15.9End of life
Terraform 1.14Nov 19, 2025Aug 26, 20261.14.9End of life
Terraform 1.13Aug 20, 2025Apr 29, 20261.13.5End of life
Terraform 1.12May 14, 2025Nov 19, 20251.12.2End of life
Terraform 1.11Feb 27, 2025Aug 20, 20251.11.4End of life
Terraform 1.10Nov 26, 2024May 14, 20251.10.5End of life

Dates come from endoflife.date (opens in a new tab), which tracks each project's own support policy. Confirm them with the vendor before planning an upgrade.

How to check if your Terraform is vulnerable

Find the exact version first, then compare it with the affected and fixed versions in each CVE above.

terraform version

On Linux, Debian, Ubuntu and RHEL-based distributions often backport security fixes and keep the old version number, so a package that looks old can already be patched. Check your distribution's own security tracker or the package changelog before concluding that a server is exposed.

Terraform security checklist

  1. Never expose management ports or dashboards to the internet without authentication.
  2. Rotate tokens and credentials, and keep them out of repositories and logs.
  3. Apply least privilege to pipelines, runners and service accounts.
  4. Update the tool and its plugins or extensions on a schedule.
  5. Pin versions of images and dependencies, and scan them.

Your stack is bigger than Terraform. A flaw anywhere in the chain can be the way in, so also review our guides to Ansible vulnerabilities, AWS vulnerabilities and HashiCorp Vault vulnerabilities.

How to get alerted about new Terraform vulnerabilities

NVD received 1 new Terraform CVE in the last twelve months, and critical ones can be exploited within days. Reading advisories by hand is easy to forget, so most teams automate it. You have three practical options:

  • Follow the vendor's announcements and your distribution's security list. They are accurate but cover only one product and you read them manually.
  • Query the NVD feed yourself. It is complete and needs scripting, filtering and a mail or chat integration to maintain.
  • Use a stack-based alert service. You pick your technologies once and receive an email when a matching CVE appears.

Vulnario is the third option, and it is free to start. It scans the National Vulnerability Database, the CISA KEV catalog and GitHub Security Advisories every hour. You choose Terraform and the rest of your stack, confirm your email with a code, and the alerts begin. Each email includes the CVE number, the CVSS score, a marker when CISA lists the flaw as actively exploited, the attack vector, a patch or advisory link and a suggested time frame to fix it.

  • Free: all technologies, alerts grouped at most every 12 hours.
  • Pro ($29/month): alerts are sent on the next hourly scan, so you hear about a new CVE up to 12 hours earlier.

Few stacks run Terraform alone. These guides cover the technologies it is most often deployed with.

Frequently asked questions about Terraform vulnerabilities

What are the most critical Terraform vulnerabilities?

Based on NVD scores and CISA's exploited-vulnerability catalog, the most critical Terraform CVEs include CVE-2018-9057 (CVSS 9.8), CVE-2021-36230 (CVSS 8.8), CVE-2023-4782 (CVSS 7.8). The guide above ranks the 5 most critical with affected versions and fixes.

Have Terraform vulnerabilities been exploited in real attacks?

For the Terraform product entries we checked, none of the CVEs is currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog. A CVE can still be exploited before it is added, so keep Terraform patched.

How many vulnerabilities does Terraform have?

As of Nov 3, 2026 the National Vulnerability Database lists 5 CVEs for Terraform, with 1 rated critical by CVSS v3. 1 was published in the previous twelve months.

Which Terraform versions are still supported?

As of Nov 3, 2026, endoflife.date lists these Terraform releases as supported: 1.17, 1.16. Releases that are not listed are past their announced end of life.

How do I check which Terraform version I run?

Run terraform version on the server and compare the result with the fixed versions in each CVE. On Debian, Ubuntu and RHEL-based systems, fixes are often backported without changing the version number, so also check your distribution's security tracker.

How can I get alerted when a new Terraform CVE is published?

Add Terraform to a service that watches the National Vulnerability Database, CISA KEV and GitHub Security Advisories. Vulnario does this for free: choose Terraform and the rest of your stack, verify your email, and you receive an alert when a new CVE matches. Free alerts are grouped at most every 12 hours, and Pro sends them on the next hourly scan.

Is Terraform secure?

Terraform is as secure as its patch level. NVD published 1 new Terraform CVE in the last twelve months, so running a current, supported release and applying security updates promptly is the most effective protection.

What is CVE-2018-9057?

CVE-2018-9057 is a critical Terraform vulnerability with a CVSS score of 9.8, published Mar 27, 2018. aws/resource_aws_iam_user_login_profile.go in the HashiCorp Terraform Amazon Web Services (AWS) provider through v1.12.0 has an inappropriate PRNG algorithm and seeding, which makes it easier for remote attackers to obtain access by leveraging an IAM account that was provisioned with a weak…

Sources

This article is informational and not a substitute for your own risk assessment. CVSS scores and affected versions may change when NVD updates a record.