Advisory

GHSA-hpqj-7cj6-hfj8

Also known as: CVE-2022-40764

Summary

Snyk CLI affected by Command Injection vulnerability

Details

Snyk CLI before 1.996.0 allows arbitrary command execution, affecting Snyk IDE plugins and the snyk npm package. Exploitation could follow from the common practice of viewing untrusted files in the Visual Studio Code editor, for example. The original demonstration was with shell metacharacters in the vendor.json ignore field, affecting snyk-go-plugin before 1.19.1. This affects, for example, the Snyk TeamCity plugin (which does not update automatically) before 20220930.142957.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-10-04 00:00 UTC
Modified
2023-11-08 04:10 UTC

Affected packages and fixes

snyk

npm · All systems

Affected

  • introduced 0, fixed 1.996.0 (semver)

Fixed versions

1.996.0

Fix

snyk-go-plugin

npm · All systems

Affected

  • introduced 0, fixed 1.19.1 (semver)

Fixed versions

1.19.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences