Path-Check / gaen-mobile

The mobile application supporting the GAEN Exposure Notifications protocol.
MIT License
42 stars 36 forks source link

CVE-2022-21223 (Critical) detected in cocoapods-downloader-1.4.0.gem #993

Open mend-bolt-for-github[bot] opened 1 year ago

mend-bolt-for-github[bot] commented 1 year ago

CVE-2022-21223 - Critical Severity Vulnerability

Vulnerable Library - cocoapods-downloader-1.4.0.gem

Library home page: https://rubygems.org/gems/cocoapods-downloader-1.4.0.gem

Path to dependency file: /ios/Gemfile.lock

Path to vulnerable library: /home/wss-scanner/.gem/ruby/2.7.0/cache/cocoapods-downloader-1.4.0.gem

Dependency Hierarchy: - cocoapods-1.10.1.gem (Root Library) - :x: **cocoapods-downloader-1.4.0.gem** (Vulnerable Library)

Found in HEAD commit: dfc6472b08bceae52f840d61037eead68f69fbcb

Found in base branch: develop

Vulnerability Details

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.

Publish Date: 2022-04-01

URL: CVE-2022-21223

CVSS 3 Score Details (9.8)

Base Score Metrics: - Exploitability Metrics: - Attack Vector: Network - Attack Complexity: Low - Privileges Required: None - User Interaction: None - Scope: Unchanged - Impact Metrics: - Confidentiality Impact: High - Integrity Impact: High - Availability Impact: High

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-21223

Release Date: 2022-04-01

Fix Resolution: cocoapods-downloader - 1.6.2


Step up your Open Source Security Game with Mend here