Skip to content

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

HighCVSS 7.8 EPSS 1.4% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
ruby-arr-pm project ruby-arr-pm < 0.0.12 0.0.12 Fixed
rubygems arr-pm(RubyGems) < 0.0.12; = 0.0.2; = 0.0.3; = 0.0.4 +7 more 0.0.12 Fixed
jordansissel ruby-arr-pm = < 0.0.12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
rubygems arr-pm(RubyGems) < 0.0.12 0.0.12
rubygems arr-pm(RubyGems) = 0.0.10 No fix listed
rubygems arr-pm(RubyGems) = 0.0.11 No fix listed
rubygems arr-pm(RubyGems) = 0.0.2 No fix listed
rubygems arr-pm(RubyGems) = 0.0.3 No fix listed
rubygems arr-pm(RubyGems) = 0.0.4 No fix listed
rubygems arr-pm(RubyGems) = 0.0.5 No fix listed
rubygems arr-pm(RubyGems) = 0.0.6 No fix listed
rubygems arr-pm(RubyGems) = 0.0.7 No fix listed
rubygems arr-pm(RubyGems) = 0.0.8 No fix listed
rubygems arr-pm(RubyGems) = 0.0.9 No fix listed
jordansissel ruby-arr-pm = < 0.0.12 No fix listed
ruby-arr-pm project ruby-arr-pm < 0.0.12 0.0.12

References