CVE-2022-39224 — Vulnerability in arr-pm — CVE Details
arr-pm vulnerable to arbitrary shell execution when extracting or listing files contained in a malicious rpm.
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.
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
- 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
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.
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).
| Package | Fixed 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-78OS Command InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 7.0 score means for each attack dimension.
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/jordansissel/ruby-arr-pm/security/advisories/GHSA-88cv-mj24-8w3qWEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-39224ADVISORY
- https://github.com/jordansissel/ruby-arr-pm/pull/14WEB
- https://github.com/jordansissel/ruby-arr-pm/pull/15WEB
- https://github.com/jordansissel/ruby-arr-pmPACKAGE
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/arr-pm/CVE-2022-39224.ymlWEB
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
Significant impact if exploited, or exploitable with modest effort.
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
Related CVEs
- CVE-2026-126366HIGH
msgpack-ruby JRuby decoder makes uncapped header-count allocations; a 5-byte message forces multi-GiB OOM
- CVE-2026-126081HIGH
Action Pack: Possible Strong Parameters Bypass in Parameters#each_key