CVE-2018-9057
HashiCorp Terraform Amazon Web Services (AWS) uses an insecure PRNG
Reported by mitre · Published March 27, 2018
github.com/hashicorp/terraform-provider-aws is fixed in 1.14.0 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/hashicorp/terraform-provider-aws | Go Modules | 1.14.0 |
| terraform | hashicorp | 1.12.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| wolfi | terraform-provider-aws | * |
| n/a | n/a | * |
| chainguard | terraform-provider-aws | * |
| github.com | hashicorp/terraform-provider-aws | 0 |
Timeline
- Mar 27, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Feb 21, 2024 CVE Updated
- Mar 17, 2026 Security Advisory
- Sep 18, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-9057
vulnetix vdb fixes CVE-2018-9057
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-9057/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2018-9057 advisory
- https://github.com/hashicorp/terraform-provider-aws/pull/3934 patch
- https://github.com/hashicorp/terraform-provider-aws/pull/3989 patch
- https://github.com/hashicorp/terraform-provider-aws/commit/efa8cd45c6484ff70b2a515ea7ff06f2459d4ddf patch
- https://github.com/hashicorp/terraform-provider-aws/blob/02b039aa82dd7fc6e4a97a0922cc5dbbab724021/resource_aws_iam_user_login_profile.go#L70-L80 url
- https://github.com/advisories/GHSA-r48h-jr2j-9g78 advisory