HashiCorp Terraform Amazon Web Services (AWS) uses an insecure PRNGGHSA-r48h-jr2j-9g78
CRITICALFix: hashicorp/terraform-provider-aws#3934GHSA-r48h-jr2j-9g78 is a critical-severity (CVSS 9.8) CWE-332 vulnerability in github.com/hashicorp/terraform-provider-aws. A fix is available for github.com/hashicorp/terraform-provider-aws — see the affected versions and patch details below.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/hashicorp/terraform-provider-awsReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/hashicorp/terraform-provider-aws | all versions | 1.14.0go get github.com/hashicorp/terraform-provider-aws@v1.14.0 |
Affected Products
terraformhashicorpDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/hashicorp/terraform-provider-aws, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/hashicorp/terraform-provider-aws to 1.14.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-r48h-jr2j-9g78 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-r48h-jr2j-9g78 in your dependencies?
Find it across Go, including transitive dependencies.