Vulnerability DatabaseGHSA-x5c7-x7m2-rhmf

GHSA-x5c7-x7m2-rhmf
vulnerability analysis and mitigation

Overview

A local directory executable lookup vulnerability was discovered in SOPS (Simple and Flexible Secret Management), affecting Windows systems using versions prior to 3.7.1. The vulnerability was published on April 22, 2021, and primarily impacts Windows users utilizing the SOPS direct editor option. The issue was assigned the identifier GHSA-x5c7-x7m2-rhmf and was classified as a low-severity vulnerability (GitHub Advisory).

Technical details

The vulnerability stems from how SOPS handles executable lookups when using the direct editor option (sops file.yaml) on Windows systems. The issue specifically occurs when running SOPS from cmd.exe or when using the Windows C library SearchPath function, as these tools include the current directory (.) within their PATH by default. This behavior could potentially allow the execution of local binaries named vi, vim, or nano (GitHub Advisory).

Impact

The vulnerability's impact is limited to scenarios where an attacker can place a malicious binary within the directory where SOPS is being executed. The risk is specifically tied to Windows environments using cmd.exe or systems that have the current directory (.) in their default PATH (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in SOPS version 3.7.1. In this version, when Windows users using cmd.exe encounter the issue, a warning message is displayed: 'vim resolves to executable in current directory (.\vim.exe)'. Users are strongly advised to upgrade to version 3.7.1 or later, especially if they are using SOPS within untrusted directories on Windows via cmd.exe or if they have '.' within their default PATH (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