Insecure Random Number Generation in HashiCorp Terraform AWS Provider

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

CVE-2018-9057

Key Information:

Vendor

Hashicorp

Status
CVE ID
CVE ID:
CVE-2018-9057
Vendor
CVE Published:
27 March 2018

Timeline

  • Vulnerability published

  • Vulnerability Reserved

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Patch this week

Exploitation is likely. Prioritise the fix.

What to do

1Check the vendor's fix

No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.

2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach Terraform. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Patch this week"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is critical (9.8).

What is CVE-2018-9057?

The HashiCorp Terraform AWS provider, specifically in the aws/resource_aws_iam_user_login_profile.go file up to version 1.12.0, utilizes an improper pseudorandom number generator (PRNG) algorithm. This flaw can be exploited by remote attackers who gain access to an IAM account provisioned with a weak password, allowing them to compromise system security more easily.

References

Cross-Tenant Credential Reuse in HashiCorp Terraform MCP Server

CVE-2026-16498
HashicorpTooling10CRITICAL

Denial of Service Vulnerability in HashiCorp Vault and Vault Enterprise

CVE-2025-12044
HashicorpVault👾7.5HIGH

Excessive Resource Consumption Vulnerability in HashiCorp Vault

CVE-2025-6203
HashicorpVault7.5HIGH
View more Hashicorp vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged
.