Rapid7 Vulnerability & Exploit Database

Red Hat: CVE-2022-48338: local command injection in ruby-mode.el (Multiple Advisories)

Free InsightVM Trial No Credit Card Necessary
2024 Attack Intel Report Latest research by Rapid7 Labs
Back to Search

Red Hat: CVE-2022-48338: local command injection in ruby-mode.el (Multiple Advisories)

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
02/20/2023
Created
05/15/2023
Added
05/15/2023
Modified
11/27/2024

Description

An issue was discovered in GNU Emacs through 28.2. In ruby-mode.el, the ruby-find-library-file function has a local command injection vulnerability. The ruby-find-library-file function is an interactive function, and bound to C-c C-f. Inside the function, the external command gem is called through shell-command-to-string, but the feature-name parameters are not escaped. Thus, malicious Ruby source files may cause commands to be executed.

Solution(s)

  • redhat-upgrade-emacs
  • redhat-upgrade-emacs-common
  • redhat-upgrade-emacs-common-debuginfo
  • redhat-upgrade-emacs-debuginfo
  • redhat-upgrade-emacs-debugsource
  • redhat-upgrade-emacs-filesystem
  • redhat-upgrade-emacs-lucid
  • redhat-upgrade-emacs-lucid-debuginfo
  • redhat-upgrade-emacs-nox
  • redhat-upgrade-emacs-nox-debuginfo

insightVM

Advanced vulnerability management analytics and reporting.
Key Features
  • Lightweight Endpoint Agent
  • Live Dashboards
  • Real Risk Prioritization
  • IT-Integrated Remediation Projects
  • Cloud, Virtual, and Container Assessment
  • Integrated Threat Feeds
  • Easy-to-Use RESTful API
  • Automation-Assisted Patching
  • Automated Containment
Free InsightVM Trial View All Features

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;