# CVE-2022-39224: Arbitrary shell execution when extracting or listing files contained in a malicious rpm.

- Severity: High 7.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.41%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-09-21T17:00:12.000Z
- Modified: 2026-06-17T04:57:56.900Z
- Also known as: GHSA-88cv-mj24-8w3q
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- jordansissel ruby-arr-pm: < 0.0.12
- arr-pm (RubyGems): before 0.0.12
- ruby-arr-pm_project ruby-arr-pm: before 0.0.12

## Every score

- GitHub_M: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.0 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/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-8w3q> (exploit, third-party-advisory, web)
- <https://github.com/jordansissel/ruby-arr-pm/pull/15> (patch, third-party-advisory, web)
- <https://github.com/jordansissel/ruby-arr-pm/pull/14> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39224> (advisory)
- <https://github.com/jordansissel/ruby-arr-pm> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/arr-pm/CVE-2022-39224.yml> (web)

## Sources

- CVE List: [CVE-2022-39224](https://www.cve.org/CVERecord?id=CVE-2022-39224), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-88cv-mj24-8w3q](https://github.com/advisories/GHSA-88cv-mj24-8w3q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-39224](https://nvd.nist.gov/vuln/detail/CVE-2022-39224), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-39224 · Whole record: https://cve.day/CVE-2022-39224.json · Rebuilt by cve.day 2026-11-25T22:58:15.192Z
