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

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (2.34%). Schedule for your next planned update.

Does your project use an affected arr-pm version?

Paste your Gemfile.lock to check it for CVE-2022-39224 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

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. 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

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:

Advisory Timeline

  • First published September 21, 2022 (1527 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, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
arr-pm RubyGems · Affected: 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. It has a 2.3% probability of exploitation within 30 days (EPSS score). 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

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
2.34%
EPSS percentile: 84.3

This places it in the top quartile of EPSS-scored vulnerabilities — 84.3% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.

Also Known As

GHSA-88cv-mj24-8w3q

Related CVEs

  • CVE-2026-126366
    HIGH

    msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM

  • CVE-2026-126081
    HIGH

    Action Pack: Possible Strong Parameters Bypass in Parameters#each_key

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock