Alerts This Week
Warning Icon 1 764
Alerts This Week
Warning Icon 1 764

Mageia 8: 2023-0081 moderate vulnerability: emacs command injection risk

mageia
Calendar Grey March 1, 2023
Dist Mageia Esm H88
MGASA-2023-0082 resolves vulnerabilities in GNU Emacs 28.3 related to buffer overflows, fixed for Mageia distributions.
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 i...

Summary

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 ...

Read the Full Advisory

References

- https://bugs.mageia.org/show_bug.cgi?id=31593

- https://lists.debian.org/debian-security-announce/2023/msg00049.html

- https://www.cve.org/CVERecord?id=CVE-2022-48337

- https://www.cve.org/CVERecord?id=CVE-2022-48338

- https://www.cve.org/CVERecord?id=CVE-2022-48339

Resolution

SRPMS

- 8/core/emacs-27.1-1.3.mga8

Publication date: 01 Mar 2023
URL: https://advisories.mageia.org/MGASA-2023-0081.html
Type: security
CVE: CVE-2022-48337, CVE-2022-48338, CVE-2022-48339

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Your message here