# CVE-2022-48339

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-20 · Modified: 2025-03-18
- Aliases: RHSA-2023:3481, UBUNTU-CVE-2022-48339, USN-5955-1, DEBIAN-CVE-2022-48339
- Record: https://cvemate.com/vulnerability/CVE-2022-48339 · JSON: https://cvemate.com/vulnerability/CVE-2022-48339/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- EPSS: 1.163%, percentile 68.31%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian emacs (Debian): \< 1:28.2+1-11
- ubuntu emacs (Ubuntu): \< 1:26.3+1-1ubuntu2+esm1 \| \< 1:27.1+1-3ubuntu5.2
- ubuntu emacs24 (Ubuntu): \< 24.5+1-6ubuntu1.1+esm2
- ubuntu emacs25 (Ubuntu): \< 25.2+1-6ubuntu0.1~esm2
- ubuntu xemacs21 (Ubuntu): All versions (No fix recorded)
- ubuntu xemacs21-packages (Ubuntu): All versions (No fix recorded)
- gnu emacs: ≤ 28.2
- redhat emacs (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-common (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-debuginfo (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-el (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-filesystem (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-nox (Red Hat): \< 1:24.3-23.el7\_9.1
- redhat emacs-terminal (Red Hat): \< 1:24.3-23.el7\_9.1

## References

- <https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=1b4dc4691c1f87fc970fbe568b43869a15ad0d4c>
- <https://www.debian.org/security/2023/dsa-5360>
- <https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/>
- <https://access.redhat.com/errata/RHSA-2023:3481>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2171989>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2023/rhsa-2023_3481.json>
- <https://access.redhat.com/security/cve/CVE-2022-48339>
- <https://www.cve.org/CVERecord?id=CVE-2022-48339>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-48339>
- <https://ubuntu.com/security/CVE-2022-48339>
- <https://ubuntu.com/security/notices/USN-5955-1>
- <https://ubuntu.com/security/notices/USN-7027-1>
- <https://security-tracker.debian.org/tracker/CVE-2022-48339>

---

Data as of 2026-12-05T03:12:22.553Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
