Advisory Published
Updated

REDHAT-BUG-2171987

First published: Tue Feb 21 2023(Updated: )

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. <a href="https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c">https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c</a>

Affected SoftwareAffected VersionHow to fix
GNU Emacs<=28.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-2171987?

    The severity of REDHAT-BUG-2171987 is categorized as moderate due to the potential for command execution via shell metacharacters.

  • How do I fix REDHAT-BUG-2171987?

    To fix REDHAT-BUG-2171987, you should update GNU Emacs to version 28.3 or later, which addresses the vulnerability.

  • Who is affected by REDHAT-BUG-2171987?

    REDHAT-BUG-2171987 affects users of GNU Emacs versions up to and including 28.2.

  • What type of vulnerability is REDHAT-BUG-2171987?

    REDHAT-BUG-2171987 is a command injection vulnerability, allowing attackers to execute arbitrary commands.

  • Can the vulnerability in REDHAT-BUG-2171987 be exploited remotely?

    Yes, the vulnerability in REDHAT-BUG-2171987 can be exploited remotely if a victim runs a malicious command.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203