OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-58375
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 05:28 UTC · Revision 1
Source evidence
OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation
core-osv · Original sourcePublished 16 Aug 2026, 13:14 UTC
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.
osv:CVE-2024-58375
Complete source record
{
"id": "296588f839e816a3b60f4a5d19cbd288f235c43497ba7fa64df14397851c4e87",
"url": "https://osv.dev/vulnerability/CVE-2024-58375",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "OpenTofu before 1.8.3 Secret Variable Leaking via Static Evaluation",
"summary": "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.",
"evidence": "osv:CVE-2024-58375",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-58375",
"aliases": [
"CVE-2024-58375",
"GHSA-wpr2-j6gr-pjw9",
"GO-2024-3182"
],
"metrics": [
{
"type": "CVSS_V4",
"score": "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"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/opentofu/opentofu",
"type": "GIT",
"events": [
{
"introduced": "b1834a291027c5d4f14ca6e6acd4152bb42b6c65"
},
{
"fixed": "7dfe15a7fa2fde489ad99d5434180b3854cfb289"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.8.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "1.8.0"
},
{
"last_affected": "1.8.2"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v1.8.2",
"v1.8.1",
"v1.8.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58375.json"
}
}
],
"modified": "2026-10-28T02:30:50.176715838Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58375.json",
"https://github.com/opentofu/opentofu/security/advisories/GHSA-wpr2-j6gr-pjw9",
"https://nvd.nist.gov/vuln/detail/CVE-2024-58375",
"https://www.vulncheck.com/advisories/opentofu-before-secret-variable-leaking-via-static-evaluation"
],
"provider_metadata": {
"cwe_ids": [
"CWE-497"
],
"cna_assigner": "VulnCheck",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58375.json"
}
},
"related_cves": [
{
"value": "CVE-2024-58375",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518371,
"published_at": "2026-08-16T13:14:03.955+00:00"
}