Vulnerability DatabaseGHSA-fwj4-72fm-c93g

GHSA-fwj4-72fm-c93g
vulnerability analysis and mitigation

Overview

The vulnerability (GHSA-fwj4-72fm-c93g) affects Mutagen projects, specifically versions <0.16.6 and >=0.17.0, <0.17.1 of the github.com/mutagen-io/mutagen Go package. The issue involves under-validated ComSpec and cmd.exe resolution in Windows environments, which was discovered and disclosed on May 4, 2023. This security flaw is classified as low severity and primarily affects the shell-based execution functionality in Mutagen projects on Windows systems (GitHub Advisory).

Technical details

The vulnerability stems from how Mutagen resolves the shell using the %ComSpec% mechanism on Windows, with a fallback to a %PATH%-based search for cmd.exe. The technical issue has two main components: first, the %ComSpec% environment variable could potentially be set maliciously, and second, the fallback to a relative cmd.exe path resolution via %PATH% could be risky, particularly in versions prior to Go 1.19 where a malicious cmd.exe could be resolved in the current working directory (GitHub Advisory).

Impact

The impact of this vulnerability is considered low severity. The main risk lies in the potential for malicious exploitation of the %ComSpec% environment variable and the possibility of resolving a malicious cmd.exe in the current working directory, particularly in systems running versions of Go prior to 1.19 (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Mutagen versions 0.16.6 and 0.17.1. The fix involves using the %SystemRoot% environment variable (validated to be an absolute path) to resolve cmd.exe when %ComSpec% is not set correctly. For users unable to update immediately, the recommended workaround is to maintain strict control of environment variable settings on the system, particularly the ComSpec environment variable (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management