emacs: command execution via shell metacharacters
Published Feb 20, 2023
9.8
CRITICALCVSS 3.1
EPSS 1.62%
Description
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 "etags -u *" command (suggested in the etags documentation) in a situation where the current working directory has contents that depend on untrusted input.
Affected products
No data.
Configuration 2
- 11.0
No data.
Red Hat Enterprise Linux 8
emacs-1:26.1-11.el8
Fixed · RHSA-2023:7083
Red Hat Enterprise Linux 8
emacs-1:26.1-11.el8
Fixed · RHSA-2023:7083
Red Hat Enterprise Linux 8.6 Extended Update Support
emacs-1:26.1-7.el8_6.3
Fixed · RHSA-2024:1103
Red Hat Enterprise Linux 8.8 Extended Update Support
emacs-1:26.1-10.el8_8.4
Fixed · RHSA-2024:1408
Red Hat Enterprise Linux 9
emacs-1:27.2-8.el9_2.1
Fixed · RHSA-2023:2626
Red Hat Enterprise Linux 6
emacs
Out of support scope
Red Hat Enterprise Linux 7
emacs
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 8 | emacs-1:26.1-11.el8 | Fixed | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8 | emacs-1:26.1-11.el8 | Fixed | RHSA-2023:7083 |
| Red Hat Enterprise Linux 8.6 Extended Update Support | emacs-1:26.1-7.el8_6.3 | Fixed | RHSA-2024:1103 |
| Red Hat Enterprise Linux 8.8 Extended Update Support | emacs-1:26.1-10.el8_8.4 | Fixed | RHSA-2024:1408 |
| Red Hat Enterprise Linux 9 | emacs-1:27.2-8.el9_2.1 | Fixed | RHSA-2023:2626 |
| Red Hat Enterprise Linux 6 | emacs | Out of support scope | n/a |
| Red Hat Enterprise Linux 7 | emacs | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This vulnerability is only triggered when a local user introduces untrusted input, via a file with a crafted name. For this reason, this flaw has been rated with a Moderate security impact.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
YesTechnical Impact
TotalDecision
n/aAssessed Mar 18, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2023–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (14 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 1.62% (0.01617) | 75.19th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.60% (0.01603) | 72.60th | v5 (v2026.06.15) |
| Nov 21, 2025 | 0.23% (0.00230) | 45.75th | v4 (v2025.03.14) |
| Nov 18, 2025 | 1.65% (0.01646) | 80.46th | v4 (v2025.03.14) |
| Mar 17, 2025 | 0.28% (0.00281) | 49.42th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.42% (0.00419) | 74.99th | v3 (v2023.03.01) |
| May 27, 2024 | 0.25% (0.00247) | 64.72th | v3 (v2023.03.01) |
| Mar 24, 2024 | 0.19% (0.00188) | 55.27th | v3 (v2023.03.01) |
| Feb 27, 2024 | 0.16% (0.00158) | 51.12th | v3 (v2023.03.01) |
| Jan 21, 2024 | 0.08% (0.00082) | 34.10th | v3 (v2023.03.01) |
| May 10, 2023 | 0.06% (0.00062) | 24.76th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.09% (0.00090) | 36.69th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Feb 21, 2023 | 0.89% (0.00885) | 27.67th | v2 (v2022.01.01) |
References (9)
- https://access.redhat.com/security/cve/CVE-2022-48337 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2171987 Issue Tracking
- https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=01a4035c869b91c153af9a9132c87adb7669ea1c Patch
- https://lists.debian.org/debian-lts-announce/2023/05/msg00008.html mailing-list
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FLPQ4K6H2S5TY3L5UDN4K4B3L5RQJYQ6/ vendor-advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U6HDBUQNAH2WL4MHWCTUZLN7NGF7CHTK/ vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-48337
- https://www.cve.org/CVERecord?id=CVE-2022-48337
- https://www.debian.org/security/2023/dsa-5360 vendor-advisoryThird Party Advisory
Change history (0)
No recorded changes yet.