CVE-2022-39224
Ruby vulnerability analysis and mitigation

Overview

Arr-pm, a Ruby library for reading and writing RPM files, was found to contain a critical vulnerability (CVE-2022-39224) in versions prior to 0.0.12. The vulnerability was discovered and reported by Joern Schneeweisz, allowing OS command injection through malicious 'payload compressor' fields in RPM files (GitHub Advisory).

Technical details

The vulnerability affects the extract and files methods of the RPM::File class. When processing RPM files, the library would execute shell commands based on the payload compressor field without proper validation, potentially leading to arbitrary code execution. The vulnerability has been assigned a CVSS v3.1 score of 7.0 (High) with a vector string of CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H (GitHub Advisory).

Impact

If exploited, this vulnerability could allow attackers to execute arbitrary shell commands through specially crafted RPM files. This particularly affects systems that process untrusted RPM files using the arr-pm library. The vulnerability impacts projects dependent on arr-pm, notably including the 'fpm' tool when converting RPM files to other formats (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.0.12 of the arr-pm library. For users unable to upgrade immediately, a workaround is available by ensuring that RPMs being processed contain only valid/known payload compressor values such as gzip, bzip2, xz, zstd, and lzma. The payload compressor field can be verified using the rpm command line tool (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Ruby vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-66568CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
CVE-2025-66567CRITICAL9.3
  • RubyRuby
  • ruby-saml
NoYesDec 09, 2025
GHSA-4249-gjr8-jpq3HIGH8.7
  • RubyRuby
  • prosemirror_to_html
NoYesNov 13, 2025
CVE-2025-64501HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 10, 2025
GHSA-vfpf-xmwh-8m65HIGH7.6
  • RubyRuby
  • prosemirror_to_html
NoYesNov 07, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management