CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2022 · Gnu

CVE-2022-48338
Gnu Emacs vulnerability

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.

Affected products

Emacs. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Gnu Emacs runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Gnu products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.