CWE
77
Advisory Published
Updated

REDHAT-BUG-2171988: Command Injection

First published: Tue Feb 21 2023(Updated: )

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

    The severity of REDHAT-BUG-2171988 is considered high due to the local command injection vulnerability.

  • How do I fix REDHAT-BUG-2171988?

    To fix REDHAT-BUG-2171988, update GNU Emacs to version 28.3 or later to mitigate the vulnerability.

  • What versions of GNU Emacs are affected by REDHAT-BUG-2171988?

    GNU Emacs versions up to and including 28.2 are affected by REDHAT-BUG-2171988.

  • What is the nature of the vulnerability in REDHAT-BUG-2171988?

    The vulnerability in REDHAT-BUG-2171988 is a local command injection in the ruby-find-library-file function.

  • Is there a workaround for REDHAT-BUG-2171988?

    A possible workaround for REDHAT-BUG-2171988 includes limiting access to the ruby-mode.el functionalities until the software is updated.

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