# CVE-2024-58375: OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2024-10-03T16:51:50.000Z
- Modified: 2026-10-08T16:16:49.483Z
- Also known as: GHSA-wpr2-j6gr-pjw9, GO-2024-3182
- Weaknesses: CWE-200, CWE-497
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

OpenTofu versions 1.8.0 through 1.8.2 do not properly restrict sensitive variables and locals when users have opted into static evaluation of module sources, versions, and backend configurations. As a result, values marked as sensitive may be exposed through these configuration elements instead of producing an error. This is fixed in OpenTofu 1.8.3, which adds explicit errors to prevent the use of sensitive values in these contexts.

(As written by CVE List.)

## Affected

- opentofu opentofu: before 1.8.3 (not affected: 1.8.3)
- github.com/opentofu/opentofu (Go): from 1.8.0 before 1.8.3

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9> (advisory, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation> (third-party-advisory)
- <https://github.com/opentofu/opentofu> (package)
- <https://pkg.go.dev/vuln/GO-2024-3182> (web)

## Sources

- CVE List: [CVE-2024-58375](https://www.cve.org/CVERecord?id=CVE-2024-58375), CVE Terms of Use, modified 2026-10-08
- GitHub Advisory Database: [GHSA-wpr2-j6gr-pjw9](https://github.com/advisories/GHSA-wpr2-j6gr-pjw9), CC-BY-4.0, modified 2026-08-17
- Go Vulnerability Database: [GO-2024-3182](https://pkg.go.dev/vuln/GO-2024-3182), CC-BY-4.0, modified 2026-08-17
- NVD: [CVE-2024-58375](https://nvd.nist.gov/vuln/detail/CVE-2024-58375), Public domain, modified 2026-10-08

---

Page: https://cve.day/CVE-2024-58375 · Whole record: https://cve.day/CVE-2024-58375.json · Rebuilt by cve.day 2026-11-25T22:58:53.065Z
