QID 354861

Date Published: 2023-04-06

QID 354861: Amazon Linux Security Advisory for emacs : ALAS-2023-1712

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



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Critical - 9.8 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS-2023-1712 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 354861

    Software Advisories
    Advisory ID Software Component Link
    ALAS-2023-1712 amazon linux URL Logo alas.aws.amazon.com/ALAS-2023-1712.html