Skip to content
OpenAdvisories
High · 7.8 CVE-2022-48339 EUVD-2022-51039GHSA-jwxq-f9vm-725g

An issue was discovered in GNU Emacs through 28.2. htmlfontify.el has a command injection vulnerability. In the hfy-istext-command function…

Published Feb 20, 2023 · Updated Mar 18, 2025 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 emacs 1:28.2+1-11 —
Debian 13 emacs 1:28.2+1-11 —
Debian 12 emacs 1:28.2+1-11 —
Debian 11 emacs 1:27.1+1-3.1+deb11u2 DSA-5360-1
Debian 10 emacs 1:26.1+1-3.2+deb10u4 DLA-3416-1
ReleasePackageFixed inAdvisory
Ubuntu 26.10 xemacs21 +1 No fix yet —
Ubuntu 26.04 LTS xemacs21 +1 No fix yet —
Ubuntu 25.10 xemacs21 +1 No fix yet —
Ubuntu 24.04 LTS xemacs21 +1 No fix yet —
Ubuntu 22.04 LTS emacs 1:27.1+1-3ubuntu5.2 USN-7027-1
Ubuntu 22.04 LTS xemacs21 +1 No fix yet —
Show 7 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS xemacs21 +1 No fix yet —
Ubuntu 18.04 LTS xemacs21 +1 No fix yet —
Ubuntu 16.04 LTS xemacs21 +1 No fix yet —
Ubuntu Pro 24.04 LTS emacs 1:29.3+1-1ubuntu2+esm1 USN-7027-1
Ubuntu Pro 20.04 LTS emacs 1:26.3+1-1ubuntu2+esm1 USN-7027-1
Ubuntu Pro 18.04 LTS emacs25 25.2+1-6ubuntu0.1~esm2 USN-7027-1
Ubuntu Pro 16.04 LTS emacs24 24.5+1-6ubuntu1.1+esm2 USN-7027-1, USN-5955-1
ReleasePackageFixed inAdvisory
RHEL 9 emacs +4 1:27.2-8.el9_2.1 RHSA-2023:2626
RHEL 8 emacs +5 1:26.1-11.el8 RHSA-2023:7083
RHEL 7 emacs +5 1:24.3-23.el7_9.1 RHSA-2023:3481
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 8.8 EUS emacs +5 1:26.1-10.el8_8.4 RHSA-2024:1408
RHEL 8.6 EUS emacs +5 1:26.1-7.el8_6.3 RHSA-2024:1103

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 emacs +4 1:27.2-8.el9_2.1 ALSA-2023:2626
AlmaLinux 8 emacs +5 1:26.1-11.el8 ALSA-2023:7083

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 emacs 1:26.1-11.el8 RLSA-2023:7083
ReleasePackageFixed inAdvisory
SLES 15 SP4 emacs 27.2-150400.3.6.1 SUSE-SU-2023:0598-1
SLES 15 SP3 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES 15 SP2 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES 15 SP1 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES 12 SP5 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
Show 17 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SLES 12 SP2 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SLES for SAP 15 SP3 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES for SAP 15 SP2 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES for SAP 15 SP1 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLES for SAP 12 SP5 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SLES for SAP 12 SP4 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SLE Real Time 15 SP3 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLE HPC 15 SP3 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLE HPC 15 SP2 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SLE HPC 15 SP1 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SUSE OpenStack Cloud Crowbar 9 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SUSE OpenStack Cloud 9 emacs 24.3-25.12.1 SUSE-SU-2023:0597-1
SUSE Manager Server 4.2 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SUSE Manager Proxy 4.2 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SUSE Enterprise Storage 7.1 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
SUSE Enterprise Storage 7 emacs 25.3-150000.3.15.1 SUSE-SU-2023:0675-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed emacs 28.2-2.1 openSUSE-SU-2024:12721-1
openSUSE Leap 15.4 emacs 27.2-150400.3.6.1 SUSE-SU-2023:0598-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 emacs +6 1:28.2-3.amzn2023.0.3 ALAS2023-2023-122
Amazon Linux 2 emacs +6 1:27.2-4.amzn2.0.3 ALAS2-2023-1981

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) emacs 28.2-4 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 emacs +4 1:27.2-8.el9_2.1 ELSA-2023-2626
Oracle Linux 8 emacs +5 1:26.1-11.el8 ELSA-2023-7083
Oracle Linux 7 emacs +5 1:24.3-23.el7_9.1 ELSA-2023-3481

Advisories 26

References