CVE-2022-39224 json
Arbitrary shell execution when extracting or listing files contained in a malicious rpm.
published 2022-09-21 4 y ago modified 2026-06-17 4 mo ago also GHSA-88cv-mj24-8w3q , EUVD-2022-6740
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
Arr-pm is an RPM reader/writer library written in Ruby. Versions prior to 0.0.12 are subject to OS command injection resulting in shell execution if the RPM contains a malicious "payload compressor" field. This vulnerability impacts the `extract` and `files` methods of the `RPM::File` class of this library. Version 0.0.12 patches these issues. A workaround for this issue is to ensure any RPMs being processed contain valid/known payload compressor values such as gzip, bzip2, xz, zstd, and lzma. The payload compressor field in an rpm can be checked by using the rpm command line tool.
Patch / fix
- rubygems arr-pm 0.0.12
- ruby-arr-pm_project ruby-arr-pm 0.0.12
- github.com/jordansissel/ruby-arr-pm#15 pull request
- github.com/jordansissel/ruby-arr-pm#14 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- 18 mo ago
Exploit prediction
1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/jordansissel/ruby-arr-pm/security/advisories/GHSA-88cv-mj24-8w3q referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | arr-pm | <0.0.12 |
0.0.12 |
Affected products
- jordansissel ruby-arr-pm
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/jordansissel/ruby-arr-pm/pull/15
web, patch, third-party-advisory
-
github.com
/jordansissel/ruby-arr-pm/pull/14
web, patch, third-party-advisory
-
github.com
/jordansissel/ruby-arr-pm/security/advisories/GHSA-88cv-mj24-8w3q
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39224
advisory
-
github.com
/jordansissel/ruby-arr-pm
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/arr-pm/CVE-2022-39224.yml
web
Sources
- CVE List CVE-2022-39224
- GitHub Advisory GHSA-88cv-mj24-8w3q
- NVD CVE-2022-39224
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.