Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mend-bolt-for-github bot opened this issue Sep 26, 2022 · 0 comments
Open
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-bolt-for-github
Copy link
Contributor

mend-bolt-for-github bot commented Sep 26, 2022

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)
    • 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

@mend-bolt-for-github mend-bolt-for-github bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Sep 26, 2022
@mend-bolt-for-github mend-bolt-for-github bot changed the title CVE-2022-21223 (High) detected in cocoapods-downloader-1.4.0.gem CVE-2022-21223 (Critical) detected in cocoapods-downloader-1.4.0.gem Dec 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
None yet
Development

No branches or pull requests

0 participants