Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDiscover exposed Terrascan server port
-
DeliveryHost attacker HTTP endpoint with X-Terraform-Get header
-
ExploitPOST remote_url to /remote/dir/scan endpoint
-
ExecutionServer fetches attacker URL and leaks .netrc credentials
-
PersistFollow redirect to file:// URI
-
ImpactRead arbitrary local files via scan response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target to be running Terrascan in server mode via the 'terrascan server' subcommand (the default CLI scanning mode is not exposed), network reachability to that daemon (which by default binds 0.0.0.0 with no authentication), and the attacker hosting an HTTP endpoint that returns an X-Terraform-Get header pointing at a file:// URL. No user interaction, credentials, or non-default configuration of the server itself is needed once the daemon is running. Limiting factors: organizations that only invoke Terrascan as a one-shot CLI in CI pipelines are not exposed, and credential exfiltration via Netrc only yields data if a ~/.netrc file exists for the account running the daemon. |
| Impact | Signals are consistent and point to a real priority where Terrascan server mode is exposed: CVSS 4.0 vector AV:N/AC:L/AT:N/PR:N/UI:N with VC:H and SC:H confirms unauthenticated network exploitation yielding high confidentiality impact and a scope change (local file disclosure and credential leakage beyond the vulnerable component). The vulnerability is not listed in CISA KEV and no EPSS value was supplied, and no public exploit was identified at time of analysis, but the abandoned-project status materially raises long-term risk because no fix will arrive. The deployment caveat is decisive: Terrascan CLI usage is unaffected - only the optional 'terrascan server' daemon, which binds 0.0.0.0 with no auth, is exposed; defenders should verify whether any internal CI or scanning workflow runs that daemon rather than treating every Terrascan install as critical. |
| Exploit ScenarioDerived | An attacker scans for exposed Terrascan server endpoints (port typically 9010) on the internet or an internal network and POSTs to /v1/terraform/v14/aws/remote/dir/scan with remote_type=http and remote_url pointing to a server they control. Their server returns an X-Terraform-Get header redirecting to file:///etc/passwd or file:///root/.aws/credentials, which go-getter dutifully reads and includes in the scan response; in parallel, the initial HTTP fetch causes Terrascan to send any ~/.netrc credentials for that hostname to the attacker. No public PoC is referenced, but the primitive is straightforward to weaponize given the documented go-getter behavior. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – May 19, 2026
Server-Side Request Forgery in Tenable's Terrascan IaC scanner (versions 1.18.3 and prior) lets unauthenticated remote attackers read arbitrary local files and exfiltrate ~/.netrc credentials when the tool runs in server mode. Because Terrascan was archived in August 2023, no vendor patch will ever be released, and the daemon binds to 0.0.0.0 with no authentication by default. No public exploit identified at time of analysis, but the CVSS 4.0 score of 9.2 reflects trivial network-reachable abuse paired with significant confidentiality scope change.
Earlier versions of this analysis (1)
Server-Side Request Forgery in Terrascan v1.18.3 and prior allows unauthenticated remote attackers to coerce the scanner into reading local files and leaking ~/.netrc credentials when run in server mode. The flaw stems from the remote directory scan endpoint passing user-supplied URLs directly into hashicorp/go-getter v1.7.5, whose HttpGetter honors X-Terraform-Get redirects to file:// URIs and has Netrc enabled. No public exploit identified at time of analysis, and because Terrascan was archived in August 2023, no vendor patch will ever be released.
RemediationAI
No vendor-released patch identified at time of analysis and none will be issued because Tenable archived the project in August 2023, so the durable fix is to migrate off Terrascan to an actively maintained IaC scanner such as Checkov, KICS, tfsec/Trivy, or Tenable's commercial successor. Until migration is complete, stop running 'terrascan server' entirely and use the CLI mode (which is not affected) inside CI pipelines; if the server must run, bind it to 127.0.0.1 or an internal interface, place it behind an authenticating reverse proxy, and use egress firewall rules to block outbound traffic from the Terrascan host to anything other than known IaC source repositories - trade-off: this breaks legitimate fetches from arbitrary Git/HTTP sources. Additionally, remove or empty ~/.netrc on the account running the daemon to neutralize the credential-leak vector, and block the /v1/*/remote/dir/scan path at any fronting proxy. The upstream repository is at https://github.com/tenable/terrascan (archived).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Terrascan is a static analysis tool for Infrastructure-as-Code (Terraform, Kubernetes, Helm, etc.) originally developed by Accurics and later maintained by Tenable. Its server mode exposes an HTTP API including POST /v1/{iac}/{iacVersion}/{cloud}/remote/dir/scan, which delegates remote fetching to hashicorp/go-getter v1.7.5. The root cause (CWE-918, SSRF) stems from passing the user-supplied remote_url straight to go-getter's HttpGetter without scheme or destination validation; HttpGetter honors the X-Terraform-Get response header, which can redirect a download to a file:// URI, and it has Netrc=true, which causes it to attach ~/.netrc credentials when contacting any hostname the attacker controls.
Know when Terrascan gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
Primary rating from Vendor (tenable) · only source for this CVE.
CVSS VectorVendor: tenable
Lifecycle Timeline
3DescriptionCVE.org
Terrascan v1.18.3 and prior are vulnerable to Server-Side Request Forgery (SSRF) via the remote_url parameter in the remote directory scan endpoint (POST /v1/{iac}/{iacVersion}/{cloud}/remote/dir/scan) when running in server mode. An unauthenticated remote attacker can supply an attacker-controlled HTTP URL as remote_url with remote_type set to "http". The URL is passed directly to hashicorp/go-getter (v1.7.5) without validation. Go-getter's HttpGetter supports the X-Terraform-Get response header, allowing the attacker's server to redirect the download to a file:// URL, enabling local file read. Additionally, HttpGetter has Netrc set to true, causing it to read ~/.netrc and send stored credentials to attacker-controlled hostnames. This affects deployments running terrascan in server mode (terrascan server), which binds to 0.0.0.0 with no authentication. Note: Terrascan was archived in August 2023 and no patch will be released.
Executive ViewAI
Tenable's Terrascan Infrastructure-as-Code scanner (versions 1.18.3 and prior) contains a critical vulnerability that enables unauthorized access to system credentials from any network-connected instance. The product was archived in August 2023 with no vendor patches forthcoming, creating a persistent security exposure for organizations still deploying it. Leadership should treat this as an active incident requiring immediate inventory and remediation.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) disable server mode and restrict Terrascan to local CLI-only usage; (2) if server mode cannot be immediately disabled, isolate the daemon behind network access controls (firewall/VPN) restricting connectivity to trusted internal networks only; (3) immediately rotate all authentication credentials that may have been accessed; (4) monitor systems for unauthorized file access and credential compromise; (5) prioritize rapid decommissioning given the archived product status and lack of vendor support.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Server-Side Request Forgery in Tenable Terrascan v1.18.3 and prior allows unauthenticated remote attackers to coerce the
Server-Side Request Forgery in Terrascan up to v1.18.3 lets unauthenticated remote attackers coerce the scanner's HTTP c
EUVD-2026-30957
GHSA-p747-w96h-fwcj
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB