GHSA-7627-mp87-jf6q

Suggest an improvement
Source
https://github.com/advisories/GHSA-7627-mp87-jf6q
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/04/GHSA-7627-mp87-jf6q/GHSA-7627-mp87-jf6q.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7627-mp87-jf6q
Aliases
Published
2022-04-02T00:00:13Z
Modified
2023-11-01T04:58:04.219060Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Command injection in cocoapods-downloader
Details

The package cocoapods-downloader before 1.6.0, from 1.6.2 and before 1.6.3 are vulnerable to Command Injection via git argument injection. When calling the Pod::Downloader.preprocess_options function and using git, both the git and branch parameters are passed to the git ls-remote subcommand in a way that additional flags can be set. The additional flags can be used to perform a command injection.

Database specific
{
    "nvd_published_at": "2022-04-01T18:15:00Z",
    "cwe_ids": [
        "CWE-74",
        "CWE-88"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2022-04-04T21:58:52Z"
}
References

Affected packages

RubyGems / cocoapods-downloader

Package

Name
cocoapods-downloader
Purl
pkg:gem/cocoapods-downloader

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.0

Affected versions

0.*

0.1.0
0.1.1
0.1.2
0.2.0
0.3.0
0.4.0
0.4.1
0.5.0
0.6.0
0.6.1
0.7.0
0.7.1
0.7.2
0.8.0
0.8.1
0.9.0
0.9.1
0.9.2
0.9.3

1.*

1.0.0.beta.1
1.0.0.beta.2
1.0.0.beta.3
1.0.0.rc.1
1.0.0
1.0.1
1.1.0
1.1.1
1.1.2
1.1.3
1.2.0
1.2.1
1.2.2
1.3.0
1.4.0
1.5.0
1.5.1

RubyGems / cocoapods-downloader

Package

Name
cocoapods-downloader
Purl
pkg:gem/cocoapods-downloader

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.6.2
Fixed
1.6.3

Affected versions

1.*

1.6.2