CVE-2018-9057
CVE-2018-9057 affecting package terraform for versions less than 1.2.2-2
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, CBL-Mariner.
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| CBL-Mariner 2.0 | terraform | 0:1.2.2-2.cm2 |
| go::GitHub Security Advisory Go | github.com/hashicorp/terraform-provider-aws | 1.14.0 |
| chainguard | terraform-provider-aws | 0 |
| wolfi | terraform-provider-aws | 0 |
References
- https://github.com/hashicorp/terraform-provider-aws
- https://github.com/hashicorp/terraform-provider-aws/blob/02b039aa82dd7fc6e4a97a0922cc5dbbab724021/resource_aws_iam_user_login_profile.go#L70-L80
- https://github.com/hashicorp/terraform-provider-aws/commit/efa8cd45c6484ff70b2a515ea7ff06f2459d4ddf
- https://github.com/hashicorp/terraform-provider-aws/pull/3934
- https://github.com/hashicorp/terraform-provider-aws/pull/3989
- https://github.com/terraform-providers/terraform-provider-aws/pull/3934
- https://nvd.nist.gov/vuln/detail/CVE-2018-9057