Advisory

GHSA-qrg7-hfx7-95c5

Also known as: CVE-2022-31249, GO-2023-1519

Summary

Command injection in Git package in Wrangler

Details

Impact

A command injection vulnerability was discovered in Wrangler's Git package affecting versions up to and including v1.0.0.

Wrangler's Git package uses the underlying Git binary present in the host OS or container image to execute Git operations. Specially crafted commands can be passed to Wrangler that will change their behavior and cause confusion when executed through Git, resulting in command injection in the underlying host.

Workarounds

A workaround is to sanitize input passed to the Git package to remove potential unsafe and ambiguous characters. Otherwise, the best course of action is to update to a patched Wrangler version.

Patches

Patched versions include v1.0.1 and later and the backported tags - v0.7.4-security1, v0.8.5-security1 and v0.8.11.

For more information

If you have any questions or comments about this advisory:

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-01-25 19:40 UTC
Modified
2023-11-08 04:09 UTC

Affected packages and fixes

github.com/rancher/wrangler

Go · All systems

Affected

  • introduced 0, fixed 0.7.4-security1 (semver)

Fixed versions

0.7.4-security1

Fix

github.com/rancher/wrangler

Go · All systems

Affected

  • introduced 0.8.0, fixed 0.8.5-security1 (semver)

Fixed versions

0.8.5-security1

Fix

github.com/rancher/wrangler

Go · All systems

Affected

  • introduced 1.0.0, fixed 1.0.1 (semver)

Fixed versions

1.0.1

Fix

github.com/rancher/wrangler

Go · All systems

Affected

  • introduced 0.8.6, fixed 0.8.11 (semver)

Fixed versions

0.8.11

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