ALAS2023-2023-122


Amazon Linux 2023 Security Advisory: ALAS-2023-122
Advisory Release Date: 2023-03-06 17:50 Pacific
Advisory Updated Date: 2023-03-08 00:51 Pacific
Severity: Important

Issue Overview:

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 C library function in its implementation of the ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input. (CVE-2022-45939)

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 C library function in its implementation of the etags program. For example, a victim may use the "etags -u *" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input. (CVE-2022-48337)

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. (CVE-2022-48338)

An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. 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. (CVE-2022-48339)


Affected Packages:

emacs


Issue Correction:
Run dnf update emacs --releasever=2023.0.20230308 to update your system.

New Packages:
aarch64:
    emacs-nox-debuginfo-28.2-3.amzn2023.0.3.aarch64
    emacs-common-debuginfo-28.2-3.amzn2023.0.3.aarch64
    emacs-debuginfo-28.2-3.amzn2023.0.3.aarch64
    emacs-devel-28.2-3.amzn2023.0.3.aarch64
    emacs-lucid-debuginfo-28.2-3.amzn2023.0.3.aarch64
    emacs-debugsource-28.2-3.amzn2023.0.3.aarch64
    emacs-28.2-3.amzn2023.0.3.aarch64
    emacs-nox-28.2-3.amzn2023.0.3.aarch64
    emacs-lucid-28.2-3.amzn2023.0.3.aarch64
    emacs-common-28.2-3.amzn2023.0.3.aarch64

noarch:
    emacs-filesystem-28.2-3.amzn2023.0.3.noarch
    emacs-terminal-28.2-3.amzn2023.0.3.noarch

src:
    emacs-28.2-3.amzn2023.0.3.src

x86_64:
    emacs-common-debuginfo-28.2-3.amzn2023.0.3.x86_64
    emacs-devel-28.2-3.amzn2023.0.3.x86_64
    emacs-nox-debuginfo-28.2-3.amzn2023.0.3.x86_64
    emacs-lucid-debuginfo-28.2-3.amzn2023.0.3.x86_64
    emacs-debugsource-28.2-3.amzn2023.0.3.x86_64
    emacs-debuginfo-28.2-3.amzn2023.0.3.x86_64
    emacs-common-28.2-3.amzn2023.0.3.x86_64
    emacs-nox-28.2-3.amzn2023.0.3.x86_64
    emacs-28.2-3.amzn2023.0.3.x86_64
    emacs-lucid-28.2-3.amzn2023.0.3.x86_64