CVE-2026-47357: Terrascan SSRF Exposes Local Files, Credentials
The National Vulnerability Database has detailed CVE-2026-47357, a critical Server-Side Request Forgery (SSRF) vulnerability in Terrascan v1.18.3 and earlier. This flaw exists in the remote directory scan endpoint (POST /v1/{iac}/{iacVersion}/{cloud}/remote/dir/scan) when Terrascan is deployed in server mode. An unauthenticated attacker can manipulate the remote_url parameter, setting remote_type to “http” and supplying an attacker-controlled HTTP URL.
The vulnerability leverages hashicorp/go-getter (v1.7.5), which Terrascan uses without adequate validation. The attacker’s server can exploit go-getter’s X-Terraform-Get response header to redirect the download to a file:// URL, enabling local file disclosure. Compounding this, go-getter has Netrc enabled by default, leading to the exposure of credentials stored in ~/.netrc to the attacker’s host. This is particularly dangerous for deployments running terrascan server that bind to 0.0.0.0 without authentication. Crucially, Terrascan was archived in August 2023, meaning no official patch will be released for this high-severity (CVSS 7.5) issue.
What This Means For You
- If your organization uses Terrascan in server mode, especially if exposed publicly or internally without authentication, you are at severe risk. This isn't just a theoretical vulnerability; it's a direct path to local file reads and credential theft via SSRF. Given that Terrascan is unmaintained, you must immediately assess your deployment strategy. Either disable server mode entirely or implement robust network segmentation and strict access controls to prevent unauthenticated access. Assume any credentials stored in `~/.netrc` on affected systems are compromised and revoke them.
Related ATT&CK Techniques
🛡️ Detection Rules
3 rules · 6 SIEM formats3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.
CVE-2026-47357: Terrascan SSRF Remote Directory Scan with file:// URL
title: CVE-2026-47357: Terrascan SSRF Remote Directory Scan with file:// URL
id: scw-2026-05-19-ai-1
status: experimental
level: critical
description: |
Detects the specific SSRF exploit pattern for CVE-2026-47357 in Terrascan. An attacker crafts a POST request to the '/v1/{iac}/{iacVersion}/{cloud}/remote/dir/scan' endpoint with 'remote_type=http' and a 'remote_url' starting with 'file://'. This indicates an attempt to read local files via the vulnerable go-getter library.
author: SCW Feed Engine (AI-generated)
date: 2026-05-19
references:
- https://shimiscyberworld.com/posts/nvd-CVE-2026-47357/
tags:
- attack.initial_access
- attack.t1190
logsource:
category: webserver
detection:
selection:
cs-method:
- 'POST'
uri|startswith:
- '/v1/'
uri|endswith:
- '/remote/dir/scan'
cs-uri-query|contains:
- 'remote_type=http'
cs-uri-query|contains:
- 'remote_url=file://'
condition: selection
falsepositives:
- Legitimate administrative activity
Source: Shimi's Cyber World · License & reuse
Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-47357 | Vulnerability | CVE-2026-47357 |
Source & Attribution
| Source Platform | NVD |
| Channel | National Vulnerability Database |
| Published | May 19, 2026 at 20:16 UTC |
This content was AI-rewritten and enriched by Shimi's Cyber World based on the original source. All intellectual property rights remain with the original author.
Believe this infringes your rights? Submit a takedown request.