CVE-2022-48337

GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system…

Critical · published February 20, 2023

CVSS v3.1
9.8
EPSS
2%
Percentile
75.8
In the wild
Unconfirmed
What it is

🔥 A seemingly innocent command in GNU Emacs can become a launchpad for attackers! Just a few sneaky shell metacharacters in a file name can open the floodgates to command execution. 🚨 Think of it like a restaurant that allows customers to customize their orders without checking the ingredients — if someone orders a dish with a secret ingredient, it could turn into a culinary catastrophe! This vulnerability lets attackers execute arbitrary commands on the system, potentially gaining full control over the user's environment. If exploited, they could manipulate files, run unauthorized processes, or even disrupt services entirely, leaving a trail of chaos in their wake!

Put simply

Think of it like a restaurant that allows customers to customize their orders without checking the ingredients — if someone orders a dish with a secret ingredient, it could turn into a culinary catastrophe! The flaw in GNU Emacs arises from the way the etags program uses system functions without adequately sanitizing input, allowing shell metacharacters to be misused when running commands like 'etags -u *'.

What to do

This vulnerability lets attackers execute arbitrary commands on the system, potentially gaining full control over the user's environment. If exploited, they could manipulate files, run unauthorized processes, or even disrupt services entirely, leaving a trail of chaos in their wake! Immediately update GNU Emacs to version 28.3 or later to patch this vulnerability. Additionally, ensure that any use of etags is monitored and validate the input to avoid potential exploitation. Regular audits of your environment will also help identify any unintended command executions. You've got this! By following these steps, you can secure your environment and keep those pesky attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01617 · 75.8th percentile
Published
2023-02-20T00:00Z
EPSS history
Timeline
  • 20 FEB 00:00Z
    GNU Emacs through 28.2 allows attackers to execute commands via shell metacharacters in the name of a source-code file, because lib-src/etags.c uses the system…
    cvelistv5