Command Injection Affecting emacs package, versions [,29.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.14% (65th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-EMACS-3326700
  • published21 Feb 2023
  • disclosed21 Feb 2023
  • creditUnknown

Introduced: 21 Feb 2023

CVE-2022-48339  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade emacs to version 29.1 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection in the hfy-istext-command function, the parameter file and parameter srcdir come from external input, and parameters are not escaped. If a file name or directory name contains shell metacharacters, code may be executed.

CVSS Base Scores

version 3.1