7.8
CWE
78
Advisory Published
Updated

CVE-2022-45939: OS Command Injection

First published: Mon Nov 28 2022(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 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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
GNU Emacs<=28.2
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=36
Fedoraproject Fedora=37
debian/emacs
1:27.1+1-3.1+deb11u5
1:28.2+1-15+deb12u3
1:29.4+1-3
debian/xemacs21<=21.4.24-9
21.4.24-11
21.4.24-12
<=28.2
=10.0
=11.0
=36
=37

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 CVE-2022-45939?

    CVE-2022-45939 is a vulnerability in GNU Emacs that allows attackers to execute commands through shell metacharacters in the name of a source-code file.

  • How does CVE-2022-45939 affect GNU Emacs?

    CVE-2022-45939 affects GNU Emacs versions up to 28.2.

  • How does CVE-2022-45939 affect Debian Linux?

    CVE-2022-45939 affects Debian Linux versions 10.0 and 11.0.

  • How does CVE-2022-45939 affect Fedora Linux?

    CVE-2022-45939 affects Fedora Linux versions 36 and 37.

  • How can I fix CVE-2022-45939 in GNU Emacs?

    To fix CVE-2022-45939 in GNU Emacs, update to version 28.3 or later.

  • How can I fix CVE-2022-45939 in Debian Linux?

    To fix CVE-2022-45939 in Debian Linux, apply the recommended security updates.

  • How can I fix CVE-2022-45939 in Fedora Linux?

    To fix CVE-2022-45939 in Fedora Linux, update to a version that includes the security patch.

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.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203