<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="sa-render.xsl"?>
  <update from="huaweicloud.com" type="security" status="stable" version="1">
    <id>HCE2-SA-2023-0134</id>
    <title>An update for emacs is now available for HCE 2.0</title>
    <severity>Critical</severity>
    <release>HCE 2.0</release>
    <issued date="2023-03-27 08:19:28"/>
    <updated date="2023-03-27 08:19:28"/>
    <references>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-48337" id="CVE-2022-48337" title="CVE-2022-48337 Base Score: 9.8 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-48339" id="CVE-2022-48339" title="CVE-2022-48339 Base Score: 7.8 Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
      <reference href="https://nvd.nist.gov/vuln/detail/CVE-2022-48338" id="CVE-2022-48338" title="CVE-2022-48338 Base Score: 7.3 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H" type="cve"/>
    </references>
    <description>Security Fix(es):

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 &quot;etags -u *&quot; 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)

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. (CVE-2022-48338)
</description>
    <pkglist>
      <collection short="HCE 2.0" package="emacs">
        <name>HCE 2.0</name>
        <package arch="aarch64" name="emacs" version="27.2" release="3.r4.hce2">
          <filename>emacs-27.2-3.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="emacs-common" version="27.2" release="3.r4.hce2">
          <filename>emacs-common-27.2-3.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="emacs-devel" version="27.2" release="3.r4.hce2">
          <filename>emacs-devel-27.2-3.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="emacs-filesystem" version="27.2" release="3.r4.hce2">
          <filename>emacs-filesystem-27.2-3.r4.hce2.noarch.rpm</filename>
        </package>
        <package arch="noarch" name="emacs-help" version="27.2" release="3.r4.hce2">
          <filename>emacs-help-27.2-3.r4.hce2.noarch.rpm</filename>
        </package>
        <package arch="aarch64" name="emacs-lucid" version="27.2" release="3.r4.hce2">
          <filename>emacs-lucid-27.2-3.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="aarch64" name="emacs-nox" version="27.2" release="3.r4.hce2">
          <filename>emacs-nox-27.2-3.r4.hce2.aarch64.rpm</filename>
        </package>
        <package arch="noarch" name="emacs-terminal" version="27.2" release="3.r4.hce2">
          <filename>emacs-terminal-27.2-3.r4.hce2.noarch.rpm</filename>
        </package>
        <package arch="x86_64" name="emacs" version="27.2" release="3.r4.hce2">
          <filename>emacs-27.2-3.r4.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="emacs-common" version="27.2" release="3.r4.hce2">
          <filename>emacs-common-27.2-3.r4.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="emacs-devel" version="27.2" release="3.r4.hce2">
          <filename>emacs-devel-27.2-3.r4.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="emacs-lucid" version="27.2" release="3.r4.hce2">
          <filename>emacs-lucid-27.2-3.r4.hce2.x86_64.rpm</filename>
        </package>
        <package arch="x86_64" name="emacs-nox" version="27.2" release="3.r4.hce2">
          <filename>emacs-nox-27.2-3.r4.hce2.x86_64.rpm</filename>
        </package>
      </collection>
    </pkglist>
  </update>
