CVEfocus › CVE database › CVE-2022-48338

CVE-2022-48338

CVSS 7.3 HighEPSS 1.8% (higher than 79% of CVEs)Published 2023-02-20Updated 2025-03-18Assigner: mitre

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.

CWE-77

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

14Fixed
14Fix pending
6Under investigation
15Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10xemacs21Fix pendingUBUNTU-CVE-2022-48338
Ubuntu 26.10xemacs21-packagesFix pendingUBUNTU-CVE-2022-48338
Ubuntu 26.04xemacs21Under investigationUBUNTU-CVE-2022-48338
Ubuntu 26.04xemacs21-packagesUnder investigationUBUNTU-CVE-2022-48338
Ubuntu 25.10emacsNot affected
vulnerable_code_not_present
Ubuntu 25.10xemacs21Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 25.10xemacs21-packagesWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 24.04xemacs21Under investigationUBUNTU-CVE-2022-48338
Ubuntu 24.04xemacs21-packagesUnder investigationUBUNTU-CVE-2022-48338
Ubuntu 22.04emacsFixed1:27.1+1-3ubuntu5.2UBUNTU-CVE-2022-48338
Ubuntu 22.04xemacs21Under investigationUBUNTU-CVE-2022-48338
Ubuntu 22.04xemacs21-packagesUnder investigationUBUNTU-CVE-2022-48338
Ubuntu 20.04xemacs21Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 20.04xemacs21-packagesWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 18.04xemacs21Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 18.04xemacs21-packagesWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 16.04emacs24Not affected
vulnerable_code_not_present
Ubuntu 16.04xemacs21Will not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 16.04xemacs21-packagesWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2022-48338
Ubuntu 14.04emacs23Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 14.04emacs24Not affected
vulnerable_code_not_present
Ubuntu 14.04xemacs21Will not fix
Ubuntu decided not to fix this in this release
Ubuntu 14.04xemacs21-packagesWill not fix
Ubuntu decided not to fix this in this release
Debian 14emacsFixed1:28.2+1-11DEBIAN-CVE-2022-48338
Debian 13emacsFixed1:28.2+1-11DEBIAN-CVE-2022-48338
Debian 12emacsFixed1:28.2+1-11DEBIAN-CVE-2022-48338
Red Hat Enterprise Linux 9emacsFixed1:27.2-8.el9_2.1RHSA-2023:2626
Red Hat Enterprise Linux 9emacs-commonFixed1:27.2-8.el9_2.1RHSA-2023:2626
Red Hat Enterprise Linux 9emacs-filesystemFixed1:27.2-8.el9_2.1RHSA-2023:2626
Red Hat Enterprise Linux 9emacs-lucidFixed1:27.2-8.el9_2.1RHSA-2023:2626
Red Hat Enterprise Linux 9emacs-noxFixed1:27.2-8.el9_2.1RHSA-2023:2626
Red Hat Enterprise Linux 8emacsFix pending
Affected
Red Hat Enterprise Linux 8emacs-commonFix pending
Affected
Red Hat Enterprise Linux 8emacs-filesystemFix pending
Affected
Red Hat Enterprise Linux 8emacs-lucidFix pending
Affected
Red Hat Enterprise Linux 8emacs-noxFix pending
Affected
Red Hat Enterprise Linux 8emacs-terminalFix pending
Affected
Red Hat Enterprise Linux 7emacsFix pending
Affected
Red Hat Enterprise Linux 7emacs-commonFix pending
Affected
Red Hat Enterprise Linux 7emacs-elFix pending
Affected
Red Hat Enterprise Linux 7emacs-filesystemFix pending
Affected
Red Hat Enterprise Linux 7emacs-noxFix pending
Affected
Red Hat Enterprise Linux 7emacs-terminalFix pending
Affected
Red Hat Enterprise Linux 6emacsWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-commonWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-elWill not fix
Out of support scope
Red Hat Enterprise Linux 6emacs-noxWill not fix
Out of support scope
AlmaLinux 9emacsFixed1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux 9emacs-commonFixed1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux 9emacs-filesystemFixed1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux 9emacs-lucidFixed1:27.2-8.el9_2.1ALSA-2023:2626
AlmaLinux 9emacs-noxFixed1:27.2-8.el9_2.1ALSA-2023:2626

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.