GHSA-qrg7-hfx7-95c5

Suggest an improvement
Source
https://github.com/advisories/GHSA-qrg7-hfx7-95c5
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/01/GHSA-qrg7-hfx7-95c5/GHSA-qrg7-hfx7-95c5.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-qrg7-hfx7-95c5
Aliases
Published
2023-01-25T19:40:43Z
Modified
2023-11-01T04:59:01.695027Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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:

Database specific
{
    "nvd_published_at": "2023-02-07T13:15:00Z",
    "cwe_ids": [
        "CWE-77",
        "CWE-78",
        "CWE-88"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2023-01-25T19:40:43Z"
}
References

Affected packages

Go / github.com/rancher/wrangler

Package

Name
github.com/rancher/wrangler
View open source insights on deps.dev
Purl
pkg:golang/github.com/rancher/wrangler

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.7.4-security1

Go / github.com/rancher/wrangler

Package

Name
github.com/rancher/wrangler
View open source insights on deps.dev
Purl
pkg:golang/github.com/rancher/wrangler

Affected ranges

Type
SEMVER
Events
Introduced
0.8.0
Fixed
0.8.5-security1

Go / github.com/rancher/wrangler

Package

Name
github.com/rancher/wrangler
View open source insights on deps.dev
Purl
pkg:golang/github.com/rancher/wrangler

Affected ranges

Type
SEMVER
Events
Introduced
1.0.0
Fixed
1.0.1

Affected versions

1.*

1.0.0

Go / github.com/rancher/wrangler

Package

Name
github.com/rancher/wrangler
View open source insights on deps.dev
Purl
pkg:golang/github.com/rancher/wrangler

Affected ranges

Type
SEMVER
Events
Introduced
0.8.6
Fixed
0.8.11