OS Command Injection in Emacs - CVE-2022-48337

 

OS Command Injection in Emacs - CVE-2022-48337

Published: February 26, 2023


Vulnerability identifier: #VU72573
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2022-48337
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available
Affected software:
Emacs
Operational Decision Manager
Debian Linux
Amazon Linux AMI
Oracle Linux
Gentoo Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Desktop 15
SUSE Linux Enterprise Server for SAP Applications 12
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Anolis OS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
Oracle Solaris
SUSE Linux Enterprise Server 12 SP2 BCL
SUSE Linux Enterprise Server 12 SP4 LTSS
SUSE Linux Enterprise Server 12 SP4 ESPOS
SUSE Linux Enterprise High Performance Computing 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP1 LTSS
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
Basesystem Module
Desktop Applications Module
openSUSE Leap
Ubuntu
openEuler
Fedora
Red Hat OpenShift Builds
Migration Toolkit for Runtimes
OpenShift Pipelines
Red Hat Advanced Cluster Security for Kubernetes
OpenShift Logging
Netcool Operations Insight
Red Hat OpenShift Dev Spaces
IBM Cloud Pak for Business Automation
IBM Automation Decision Services
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
Red Hat OpenShift GitOps
OpenShift Virtualization
OpenShift Data Foundation (formerly OpenShift Container Storage)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
emacs25 (Ubuntu package)
emacs-el (Ubuntu package)
emacs-common (Ubuntu package)
emacs-bin-common (Ubuntu package)
emacs (Ubuntu package)
emacs25-bin-common (Ubuntu package)
emacs25-el (Ubuntu package)
emacs24-el (Ubuntu package)
emacs24-common (Ubuntu package)
emacs24-bin-common (Ubuntu package)
emacs24 (Ubuntu package)
emacs25-common (Ubuntu package)
app-editors/emacs
emacs
etags-debuginfo
etags
emacs-debugsource
emacs-el
emacs-debuginfo
emacs-x11-debuginfo
emacs-x11
emacs-nox-debuginfo
emacs-nox
emacs-info
emacs (Red Hat package)
emacs (Debian package)
emacs-filesystem
emacs-terminal
emacs-common
emacs-help
emacs-lucid
emacs-devel
emacs-doc
IBM Cloud Pak for Watson AIOps
DB2 on Cloud Pak for Data
DB2 Warehouse on Cloud Pak for Data

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when parsing name of a source-code file in lib-src/etags.c. A remote attacker can trick the victim use the "etags -u *" command on the directory with attacker controlled content and execute arbitrary OS commands on the target system.



How to mitigate CVE-2022-48337

Install updates from vendor's website.

Sources