# HashiCorp Terraform Amazon Web Services (AWS) uses an insecure PRNG

Advisory record · `GHSA-r48h-jr2j-9g78`

- **Identifiers:** `GHSA-r48h-jr2j-9g78` · `CVE-2018-9057`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-332](https://cwe.mitre.org/data/definitions/332.html)
- **Tags:** [CWE-332](https://agentprime.io/advisories/tag/cwe-332.md)
- **Published:** 14 May 2022
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 May 2022, 03:29 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `github.com/hashicorp/terraform-provider-aws` (Go): affected `<1.14.0`; fixed in `1.14.0`

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.8 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.019, the 79th percentile, on 5 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:43 UTC: First seen by agentprime
- 31 Oct 2026, 14:43 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-r48h-jr2j-9g78)

## Sources

- [GitHub Advisory Database: GHSA-r48h-jr2j-9g78](https://github.com/advisories/GHSA-r48h-jr2j-9g78)
- [OSV: GHSA-r48h-jr2j-9g78](https://osv.dev/vulnerability/GHSA-r48h-jr2j-9g78)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-9057>
- <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://github.com/hashicorp/terraform-provider-aws/commit/efa8cd45c6484ff70b2a515ea7ff06f2459d4ddf>
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-r48h-jr2j-9g78>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-r48h-jr2j-9g78/>. Everything for agents: <https://agentprime.io/llms.txt>.
