GSD-2022-21223
Vulnerability from gsd - Updated: 2022-04-02 00:00Details
The package cocoapods-downloader before 1.6.2 are vulnerable to Command
Injection via hg argument injection. When calling the download function (when using
hg), the url (and/or revision, tag, branch) is passed to the hg clone command 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-21223",
"description": "The package cocoapods-downloader before 1.6.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command in a way that additional flags can be set. The additional flags can be used to perform a command injection.",
"id": "GSD-2022-21223"
},
"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-21223",
"GHSA-g397-v4w5-4m79"
],
"details": "The package cocoapods-downloader before 1.6.2 are vulnerable to Command\nInjection via hg argument injection. When calling the download function (when using\nhg), the url (and/or revision, tag, branch) is passed to the hg clone command in\na way that additional flags can be set. The additional flags can be used to perform\na command injection.\n",
"id": "GSD-2022-21223",
"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/127"
}
],
"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:31:42.202835Z",
"ID": "CVE-2022-21223",
"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.2"
}
]
}
}
]
},
"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.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command 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-2414280",
"refsource": "MISC",
"url": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/127",
"refsource": "MISC",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/127"
}
]
}
},
"github.com/rubysec/ruby-advisory-db": {
"cve": "2022-21223",
"cvss_v3": 8.1,
"date": "2022-04-02",
"description": "The package cocoapods-downloader before 1.6.2 are vulnerable to Command\nInjection via hg argument injection. When calling the download function (when using\nhg), the url (and/or revision, tag, branch) is passed to the hg clone command in\na way that additional flags can be set. The additional flags can be used to perform\na command injection.\n",
"gem": "cocoapods-downloader",
"ghsa": "g397-v4w5-4m79",
"patched_versions": [
"\u003e= 1.6.2"
],
"title": "Command injection in cocoapods-downloader",
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/127"
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c1.6.2",
"affected_versions": "All versions before 1.6.2",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-74"
],
"date": "2022-04-05",
"description": "The package cocoapods-downloader before 1.6.2 is vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command in a way that additional flags can be set. The additional flags can be used to perform a command injection.",
"fixed_versions": [
"1.6.2"
],
"identifier": "CVE-2022-21223",
"identifiers": [
"GHSA-g397-v4w5-4m79",
"CVE-2022-21223"
],
"not_impacted": "All versions starting from 1.6.2",
"package_slug": "gem/cocoapods-downloader",
"pubdate": "2022-04-02",
"solution": "Upgrade to version 1.6.2 or above.",
"title": "Command Injection",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2022-21223",
"https://github.com/CocoaPods/cocoapods-downloader/pull/127",
"https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280",
"https://github.com/advisories/GHSA-g397-v4w5-4m79"
],
"uuid": "89118a83-d65b-4408-a4ff-471f023c523f"
}
]
},
"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.2",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "report@snyk.io",
"ID": "CVE-2022-21223"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "The package cocoapods-downloader before 1.6.2 are vulnerable to Command Injection via hg argument injection. When calling the download function (when using hg), the url (and/or revision, tag, branch) is passed to the hg clone command 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-2414280",
"refsource": "MISC",
"tags": [
"Third Party Advisory"
],
"url": "https://snyk.io/vuln/SNYK-RUBY-COCOAPODSDOWNLOADER-2414280"
},
{
"name": "https://github.com/CocoaPods/cocoapods-downloader/pull/127",
"refsource": "MISC",
"tags": [
"Patch",
"Third Party Advisory"
],
"url": "https://github.com/CocoaPods/cocoapods-downloader/pull/127"
}
]
}
},
"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:06Z",
"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…