VDB

CVE-2022-45939

CVE-2022-45939 PUBLISHED CVSS 7.8 HIGH

Reported by mitre · Published November 28, 2022

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 ctags program. For example, a victim may use the "ctags *" command (suggested in the ctags documentation) in a situation where the current working directory has contents that depend on untrusted input.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
emacs-develAmazon Linux1:28.1-2.amzn2023.0.2, 1:27.2-4.amzn2.0.2
emacs-commonAmazon Linux1:28.1-2.amzn2023.0.2
emacsAlpine28.2-r3, 28.2-r1
emacs-terminalAmazon Linux1:27.2-4.amzn2.0.2
emacs-filesystemAmazon Linux1:27.2-4.amzn2.0.2
emacsgnu28.2

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2023emacs-devel0
amazon:2023emacs-common0
amazon:2emacs-devel0
alpineemacs0, 0
amazon:2emacs-terminal0
amazon:2emacs-filesystem0
n/an/a*
amazon:2023emacs0
amazon:2023emacs-filesystem0
amazon:2023emacs-nox0
amazon:2emacs-nox0
amazon:2023emacs-lucid0
amazon:2emacs-lucid0
amazon:2023emacs-terminal0
amazon:2emacs0
amazon:2emacs-common0

Timeline

  • Nov 28, 2022 CVE Published
  • Nov 28, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Distribution Patch (6 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (8 in total, the first dated here)
  • Jun 12, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-45939
vulnetix vdb fixes CVE-2022-45939

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-45939/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›