Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2022-48338

19
FAUCET Score

CVE-2022-48338 is a local command injection vulnerability affecting GNU Emacs through version 28.2, specifically within the ruby-mode.el's ruby-find-library-file function. This flaw allows unescaped feature-name parameters to be passed to the external 'gem' command, enabling malicious Ruby source files to execute arbitrary commands. Rated 7.3 HIGH (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H), it requires local access and user interaction for exploitation, leading to potential high impact on confidentiality, integrity, and availability. Currently, there is no evidence of active exploitation, public exploit code (Metasploit, Nuclei, ExploitDB), or significant community discussion surrounding this vulnerability.

Impacted Technologies

VendorProductVersion(s)CPE
<= 28.2CPE matchmatch criteria
cpe:2.3:a:gnu:emacs:*:*:*:*:*:*:*:*

CVSS Data

CVSS version used by this source: 3.1

7.3HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Attack Vector
LOCAL
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
Exploitability Score
1.3
Impact Score
5.9
CvssVersion
3.1

Exploit Intelligence

EPSS Score
1.64%
Probability of exploitation in next 30 days
EPSS Percentile
73.9%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0164 is in the 91st percentile among its peer group of 759 CVEs.

Social Chatter

No social media mentions found for this CVE.

The average CVE in this peer group has 0.0 Twitter, 0.1 Reddit, 0.1 Bluesky, 0.0 Mastodon, and 0.1 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.2 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (7)

microsoftpatch availablevia msrc
Product: CBL Mariner 2.0 x64Fixed in: 28.2-4
microsoftpatch availablevia msrc
Product: CBL Mariner 2.0 ARMFixed in: 28.2-4
microsoftpatch availablevia msrc
Product: cbl2 emacs 28.2-4 on CBL Mariner 2.0Fixed in: 28.2-4
microsoftpatch availablevia msrc
Product: 18397-16823Fixed in: 28.2-4
redhatpatch availablevia redhat_api
Product: Red Hat Enterprise Linux 9Fixed in: emacs-1:27.2-8.el9_2.1
View patch
redhatno patchvia redhat_api
Product: Red Hat Enterprise Linux 7Fixed in: emacs
redhatno patchvia redhat_api
Product: Red Hat Enterprise Linux 8Fixed in: emacs

Vendor Advisories (3)

microsoft2023-Mar/CVE-2022-48338

CVE-2022-48338

Mar 14, 2023
redhatCVE-2022-48338Moderate

emacs: local command injection in ruby-mode.el

Feb 21, 2023
microsoft2023-Feb/CVE-2022-48338Important

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.

Feb 14, 2023

References

git.savannah.gnu.org / cgit/emacs.git/commit
Patch
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6
lists.fedoraproject.org / archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK
debian.org / security/2023/dsa-5360
Third Party Advisory