{"id":"CVE-2022-39224","published":"2022-09-21T23:10:08Z","modified":"2025-04-22T17:21:08Z","title":"Arbitrary shell execution when extracting or listing files contained in a malicious rpm.","vendor":"jordansissel","product":"ruby-arr-pm","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01406,"percentile":0.73255,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/jordansissel/ruby-arr-pm/security/advisories/GHSA-88cv-mj24-8w3q","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jordansissel/ruby-arr-pm/pull/15","tags":["x_refsource_MISC"]},{"url":"https://github.com/jordansissel/ruby-arr-pm/pull/14","tags":["x_refsource_MISC"]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":14.65},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"jordansissel","affectedVersions":[{"vendor":"jordansissel","product":"ruby-arr-pm","versions":["< 0.0.12"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:41:24.618264Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"arr-pm","vulnerableRanges":["<0.0.12"],"patched":["0.0.12"],"from":["GHSA-88cv-mj24-8w3q"],"provenance":"source"}],"summary":{"text":"The arr-pm Ruby library, which reads and writes RPM packages, contains an OS command injection flaw in its extract and files methods of the RPM::File class, affecting versions prior to 0.0.12. An attacker can achieve shell execution by supplying a malicious RPM whose \"payload compressor\" field contains crafted values, and exploitation requires a victim to process that RPM and a user interaction to trigger it, with local access to the system.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:28Z"},"euvd":{"id":"EUVD-2022-6740","exploited":false,"provenance":"source"}}