Insecure Random Number Generation in HashiCorp Terraform AWS Provider
CVE-2018-9057
Key Information:
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
More Hashicorp Vulnerabilities
Cross-Tenant Credential Reuse in HashiCorp Terraform MCP Server
Denial of Service Vulnerability in HashiCorp Vault and Vault Enterprise
Excessive Resource Consumption Vulnerability in HashiCorp Vault
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction