Loading...
Skip to main content

CVE-2022-39224 — Vulnerability in arr-pm — CVE Details

HIGH

arr-pm vulnerable to arbitrary shell execution when extracting or listing files contained in a malicious rpm.

Published September 21, 2022Updated November 8, 2023Source: osv

Summary

### Impact Arbitrary shell execution is possible when using RPM::File#files and RPM::File#extract if the RPM contains a malicious "payload compressor" field. This vulnerability impacts the `extract` and `files` methods of the `RPM::File` class in the affected versions of this library. ### Patches Version 0.0.12 is available with a fix for these issues. ### Workarounds When using an affected version of this library (arr-pm), ensure any RPMs being processed contain valid/known payload compressor values. Such values include: gzip, bzip2, xz, zstd, and lzma. You can check the payload compressor field in an rpm by using the rpm command line tool. For example: ``` % rpm -qp example-1.0-1.x86_64.rpm --qf "%{PAYLOADCOMPRESSOR}\n" gzip ``` ### Impact on known dependent projects This library is used by [fpm](https://github.com/jordansissel/fpm). The vulnerability may impact fpm only when using the flag `-s rpm` or `--input-type rpm` to convert a malicious rpm to another format. It does not impact creating rpms. ### References * https://github.com/jordansissel/ruby-arr-pm/pull/14 * https://github.com/jordansissel/ruby-arr-pm/pull/15 ### Credit Thanks to @joernchen for reporting this problem and contributing to the resolution :) ### For more information If you have any questions or comments about this advisory: * Open an issue in [the arr-pm issue tracker](https://github.com/jordansissel/ruby-arr-pm/)

Advisory Timeline

  • First published September 21, 2022 (1482 days ago).
  • Last revised November 8, 2023 — 412 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update arr-pm to 0.0.12 or later
gem install arr-pm -v 0.0.12

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
arr-pm
rubygems
0.0.10, 0.0.11, 0.0.2, 0.0.3 (+6 more)0.0.12

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-78
    OS Command InjectionMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 7.0 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2022-39224?
arr-pm vulnerable to arbitrary shell execution when extracting or listing files contained in a malicious rpm. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 7.0/10).
How do I check if my project is affected by CVE-2022-39224?
CVE-2022-39224 affects arr-pm. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2022-39224 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
7.0

High exploitability or significant impact. Prioritize remediation within days.

Also Known As

GHSA-88cv-mj24-8w3q

Related CVEs

  • CVE-2026-94462
    HIGH

    Spree: Broken Access Control in `PATCH /api/v3/store/carts/:id/associate` (IDOR)

  • CVE-2026-77601
    HIGH

    OpenC3 COSMOS: Authenticated OS command injection via the `pypi_url` setting

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies