CVE-2022-46648
Ruby vulnerability analysis and mitigation

Overview

The vulnerability CVE-2022-46648 affects ruby-git versions prior to v1.13.0. This security flaw allows a remote authenticated attacker to execute arbitrary Ruby code by having a user load a repository containing a specially crafted filename to the product (NVD, JVN Report).

Technical details

The vulnerability is classified as a code injection vulnerability (CWE-94). It has been assigned a CVSS v3.1 base score of 8.0 (HIGH) with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H. The vulnerability specifically relates to how ruby-git handles file paths in its ls-files functionality, where it previously used eval for unescaping paths, which could lead to code execution (NVD, Ruby-Git PR).

Impact

If successfully exploited, this vulnerability allows an attacker to execute arbitrary Ruby code on the affected system. This could potentially lead to unauthorized access, data manipulation, or system compromise (JVN Report).

Mitigation and workarounds

The vulnerability has been fixed in ruby-git version 1.13.0. Users are advised to update to this version or later. For Debian 10 (buster) users, the fix has been backported to version 1.2.8-1+deb10u1 (Debian Advisory, Ruby-Git PR).

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-68271CRITICAL10
  • RubyRuby
  • openc3
NoYesJan 13, 2026
GHSA-5qw5-wf2q-f538HIGH8.8
  • RubyRuby
  • activerecord-jdbc-adapter
NoYesJan 16, 2026
CVE-2026-22589HIGH7.5
  • RubyRuby
  • spree_core
NoYesJan 10, 2026
GHSA-mpwp-4h2m-765cMEDIUM6.6
  • RubyRuby
  • activejob
NoYesJan 16, 2026
CVE-2026-22588MEDIUM6.5
  • RubyRuby
  • spree_api
NoYesJan 08, 2026

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