GSD-2022-24440
Vulnerability from gsd - Updated: 2022-04-02 00:00Details
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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2022-24440",
"description": "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.",
"id": "GSD-2022-24440"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"affected": [
{
"package": {
"ecosystem": "RubyGems",
"name": "cocoapods-downloader",
"purl": "pkg:gem/cocoapods-downloader"
}
}
],
"aliases": [
"CVE-2022-24440",
"GHSA-7627-mp87-jf6q"
],
"details": "The package cocoapods-downloader before 1.6.0, from 1.6.2 and before\n1.6.3 are vulnerable to Command Injection via git argument injection. When calling\nthe Pod::Downloader.preprocess_options function and using git, both the git and\nbranch parameters are passed to the git ls-remote subcommand in a way that additional\nflags can be set. The additional flags can be used to perform a command injection.\n",
"id": "GSD-2022-24440",
"modified": "2022-04-02T00:00:00.000Z",
"published": "2022-04-02T00:00:00.000Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/124"
},
{
"type": "WEB",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/128"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": 8.1,
"type": "CVSS_V3"
}
],
"summary": "Command injection in cocoapods-downloader"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "report@snyk.io",
"DATE_PUBLIC": "2022-04-01T17:32:08.596333Z",
"ID": "CVE-2022-24440",
"STATE": "PUBLIC",
"TITLE": "Command Injection"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "cocoapods-downloader",
"version": {
"version_data": [
{
"version_affected": "\u003c",
"version_value": "1.6.0"
},
{
"version_affected": "\u003e=",
"version_value": "1.6.2"
},
{
"version_affected": "\u003c",
"version_value": "1.6.3"
}
]
}
}
]
},
"vendor_name": "n/a"
}
]
}
},
"credit": [
{
"lang": "eng",
"value": "Alessio Della Libera of Snyk Research Team"
}
],
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "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."
}
]
},
"impact": {
"cvss": {
"attackComplexity": "HIGH",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 8.1,
"baseSeverity": "HIGH",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
}
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "eng",
"value": "Command Injection"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278",
"refsource": "MISC",
"url": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/124",
"refsource": "MISC",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/124"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/128",
"refsource": "MISC",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/128"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2022-24440",
"cvss_v3": 8.1,
"date": "2022-04-02",
"description": "The package cocoapods-downloader before 1.6.0, from 1.6.2 and before\n1.6.3 are vulnerable to Command Injection via git argument injection. When calling\nthe Pod::Downloader.preprocess_options function and using git, both the git and\nbranch parameters are passed to the git ls-remote subcommand in a way that additional\nflags can be set. The additional flags can be used to perform a command injection.\n",
"gem": "cocoapods-downloader",
"ghsa": "7627-mp87-jf6q",
"patched_versions": [
"= 1.6.0",
"\u003e= 1.6.3"
],
"related": {
"url": [
"https://github.com/CocoaPods/cocoapods-downloader/pull/128"
]
},
"title": "Command injection in cocoapods-downloader",
"unaffected_versions": [
"\u003e= 1.6.0, \u003c 1.6.2"
],
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/124"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c1.6.0||\u003e=1.6.2 \u003c1.6.3",
"affected_versions": "All versions before 1.6.0, all versions starting from 1.6.2 before 1.6.3",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-74"
],
"date": "2022-04-05",
"description": "The package cocoapods-downloader before 1.6.0, from 1.6.2 and before 1.6.3 is 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.",
"fixed_versions": [
"1.6.0",
"1.6.3"
],
"identifier": "CVE-2022-24440",
"identifiers": [
"GHSA-7627-mp87-jf6q",
"CVE-2022-24440"
],
"not_impacted": "All versions starting from 1.6.0 before 1.6.2, all versions starting from 1.6.3",
"package_slug": "gem/cocoapods-downloader",
"pubdate": "2022-04-02",
"solution": "Upgrade to versions 1.6.0, 1.6.3 or above.",
"title": "Command injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-24440",
"https://github.com/CocoaPods/cocoapods-downloader/pull/124",
"https://github.com/CocoaPods/cocoapods-downloader/pull/128",
"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278",
"https://github.com/advisories/GHSA-7627-mp87-jf6q"
],
"uuid": "cb1af2cc-97c1-4680-b46d-fc476d9f00e1"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:cocoapods:cocoapods-downloader:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndExcluding": "1.6.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:cocoapods:cocoapods-downloader:1.6.2:*:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "report@snyk.io",
"ID": "CVE-2022-24440"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "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."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-88"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414278"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/128",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/128"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/124",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/124"
}
]
}
},
"impact": {
"baseMetricV2": {
"acInsufInfo": false,
"cvssV2": {
"accessComplexity": "LOW",
"accessVector": "NETWORK",
"authentication": "NONE",
"availabilityImpact": "PARTIAL",
"baseScore": 7.5,
"confidentialityImpact": "PARTIAL",
"integrityImpact": "PARTIAL",
"vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
"version": "2.0"
},
"exploitabilityScore": 10.0,
"impactScore": 6.4,
"obtainAllPrivilege": false,
"obtainOtherPrivilege": false,
"obtainUserPrivilege": false,
"severity": "HIGH",
"userInteractionRequired": false
},
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "HIGH",
"baseScore": 9.8,
"baseSeverity": "CRITICAL",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"privilegesRequired": "NONE",
"scope": "UNCHANGED",
"userInteraction": "NONE",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"version": "3.1"
},
"exploitabilityScore": 3.9,
"impactScore": 5.9
}
},
"lastModifiedDate": "2022-04-08T19:08Z",
"publishedDate": "2022-04-01T18:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…