CVE & CISA-KEV Catalog

CVE-2022-48338

HIGHEPSS 73th pctl
7.3
CVSS v3
NVD

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.

How to fix

Remediation Available
emacsDebian
Fixed in:1:27.1+1-3.1+deb11u2CVE-2022-48338
Fixed in:1:28.2+1-11CVE-2022-48338
Fixed in:1:28.2+1-11CVE-2022-48338
Fixed in:1:28.2+1-11CVE-2022-48338
emacsRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacsRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-commonRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-commonRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-common-debuginfoRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-common-debuginfoRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-debuginfoRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-debuginfoRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-debugsourceRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-debugsourceRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-filesystemRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-filesystemRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-lucidRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-lucidRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-lucid-debuginfoRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-lucid-debuginfoRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-noxRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-noxRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-nox-debuginfoRed Hat / RHEL
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacs-nox-debuginfoRocky
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
Fixed in:1:27.2-8.el9_2.1RHSA-2023:2626
emacsUbuntu
Fixed in:1:26.3+1-1ubuntu2+esm1USN-7027-1
Fixed in:1:27.1+1-3ubuntu5.2USN-7027-1
Fixed in:1:29.3+1-1ubuntu2+esm1USN-7027-1
emacs-bin-commonUbuntu
Fixed in:1:26.3+1-1ubuntu2+esm1USN-7027-1
Fixed in:1:27.1+1-3ubuntu5.2USN-7027-1
Fixed in:1:29.3+1-1ubuntu2+esm1USN-7027-1
emacs-commonUbuntu
Fixed in:1:26.3+1-1ubuntu2+esm1USN-7027-1
Fixed in:1:27.1+1-3ubuntu5.2USN-7027-1
Fixed in:1:29.3+1-1ubuntu2+esm1USN-7027-1
emacs-elUbuntu
Fixed in:1:26.3+1-1ubuntu2+esm1USN-7027-1
Fixed in:1:27.1+1-3ubuntu5.2USN-7027-1
Fixed in:1:29.3+1-1ubuntu2+esm1USN-7027-1
emacs24Ubuntu
Fixed in:24.5+1-6ubuntu1.1+esm4USN-7027-1
emacs24-bin-commonUbuntu
Fixed in:24.5+1-6ubuntu1.1+esm4USN-7027-1
emacs24-commonUbuntu
Fixed in:24.5+1-6ubuntu1.1+esm4USN-7027-1
emacs24-elUbuntu
Fixed in:24.5+1-6ubuntu1.1+esm4USN-7027-1
emacs25Ubuntu
Fixed in:25.2+1-6ubuntu0.1~esm2USN-7027-1
emacs25-bin-commonUbuntu
Fixed in:25.2+1-6ubuntu0.1~esm2USN-7027-1
emacs25-commonUbuntu
Fixed in:25.2+1-6ubuntu0.1~esm2USN-7027-1
emacs25-elUbuntu
Fixed in:25.2+1-6ubuntu0.1~esm2USN-7027-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredLow
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

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

Exploit Intelligence

1.64%probability of exploitation in 30 days
73rdpercentile

Elevated risk: more likely to be exploited than 73% of all known CVEs.

References

Related Vulnerabilities

Other CWE-77 (Command Injection) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-3400Critical10.0100%KEV + Ransom-
CVE-2024-21887Critical9.1100%KEV + Ransom-
CVE-2023-1671Critical9.8100%KEVFix
CVE-2023-1389High8.8100%KEVFix
CVE-2021-1498Critical9.8100%KEVFix
CVE-2012-1823Critical9.8100%KEVFix
Embed a live status badge for CVE-2022-48338
CVE-2022-48338 severity badge

Markdown

[![CVE-2022-48338](https://tridentstack.com/cve/badge/CVE-2022-48338.svg)](https://tridentstack.com/cve/CVE-2022-48338)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-48338"><img src="https://tridentstack.com/cve/badge/CVE-2022-48338.svg" alt="CVE-2022-48338"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-03-18.