Read the docs
TI-2021-22650 Aliases GHSA-x5c7-x7m2-rhmf

Local directory executable lookup in sops (Windows-only)

Priority LOW 38Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

### Impact Windows users using the sops direct editor option (`sops file.yaml`) can have a local executable named either `vi`, `vim`, or `nano` executed if running sops from `cmd.exe` This attack is only viable if an attacker is able to place a malicious binary within the directory you are running sops from. As well, this attack will only work when using `cmd.exe` or the Windows C library [SearchPath function](https://docs.microsoft.com/en-us/windows/win32/api/processenv/nf-processenv-searchpatha). This is a result of these Windows tools including `.` within their `PATH` by default. **If you are using sops within untrusted directories on Windows via `cmd.exe`, please upgrade immediately** **As well, if you have `.` within your default $PATH, please upgrade immediately.** More information can be found on the official Go blog: https://blog.golang.org/path-security ### Patches The problem has been resolved in v3.7.1 Now, if Windows users using cmd.exe run into this issue, a warning message will be printed: `vim resolves to executable in current directory (.\vim.exe)` ### References * https://blog.golang.org/path-security ### For more information If you have any questions or comments about this advisory: * Open a discussion in [sops](https://github.com/mozilla/sops/discussions)

Why it matters now

Fix Fixed go.mozilla.org/sops/v3 (Go): 3.7.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—go.mozilla.org/sops/v3 (Go)before 3.7.13.7.1Patch availableGHSA-x5c7-x7m2-rhmf
  • go.mozilla.org/sops/v3 (Go) Vendor— Affected before 3.7.1 Fixed in 3.7.1 Patch available GHSA-x5c7-x7m2-rhmf

Remediation

  • Fix · GHSA-x5c7-x7m2-rhmf go.mozilla.org/sops/v3 (Go) Fixed in 3.7.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-x5c7-x7m2-rhmf

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences