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).

Exploitability

The vulnerability requires an authenticated user to load a repository containing a specially crafted filename. The attack complexity is considered low, but it does require user interaction and low-level privileges to execute (NVD).

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-2026-85396HIGH8.7
  • Ruby logoRuby
  • ruby-zip
NoYesSep 03, 2026
CVE-2026-81097HIGH8.6
  • Ruby logoRuby
  • rails-mcp-server
NoYesAug 27, 2026
CVE-2026-53769MEDIUM6.5
  • Ruby logoRuby
  • avo
NoYesSep 04, 2026
GHSA-mvxr-6m87-mv2qMEDIUM5.3
  • Ruby logoRuby
  • mail
NoYesSep 02, 2026
CVE-2026-63435MEDIUM5.3
  • Ruby logoRuby
  • ruby-mail
NoYesSep 01, 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