ubuntu-cve-2022-45939
Vulnerability from osv_ubuntu
Published
2022-11-28 06:15
Modified
2026-05-20 14:56
Summary
Details
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.
Severity
7.8 (High)
7.8 (High)
N/A (UNKNOWN)
References
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.22-14ubuntu1"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.22-14ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.22-14ubuntu1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.22-4ubuntu3",
"21.4.22-14ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.2-2"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.2-2"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.2-2"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.2-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-2?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.2-2"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "emacs24",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
},
{
"binary_name": "emacs24-bin-common",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
},
{
"binary_name": "emacs24-common",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
},
{
"binary_name": "emacs24-el",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
},
{
"binary_name": "emacs24-lucid",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
},
{
"binary_name": "emacs24-nox",
"binary_version": "24.5+1-6ubuntu1.1+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:16.04:LTS",
"name": "emacs24",
"purl": "pkg:deb/ubuntu/emacs24@24.5+1-6ubuntu1.1+esm1?arch=source\u0026distro=esm-infra/xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "24.5+1-6ubuntu1.1+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"24.5+1-1ubuntu2",
"24.5+1-1ubuntu4",
"24.5+1-1ubuntu5",
"24.5+1-1ubuntu6",
"24.5+1-1ubuntu7",
"24.5+1-6ubuntu1",
"24.5+1-6ubuntu1.1"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "emacs25",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
},
{
"binary_name": "emacs25-bin-common",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
},
{
"binary_name": "emacs25-common",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
},
{
"binary_name": "emacs25-el",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
},
{
"binary_name": "emacs25-lucid",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
},
{
"binary_name": "emacs25-nox",
"binary_version": "25.2+1-6ubuntu0.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:18.04:LTS",
"name": "emacs25",
"purl": "pkg:deb/ubuntu/emacs25@25.2+1-6ubuntu0.1~esm2?arch=source\u0026distro=esm-infra/bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "25.2+1-6ubuntu0.1~esm2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"25.2+1-6"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-5ubuntu1"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-5ubuntu1"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-5ubuntu1?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-4ubuntu1",
"21.4.24-5ubuntu1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.2-4"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.2-4"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.2-4"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.2-4"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-4?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.2-4"
]
},
{
"ecosystem_specific": {
"availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
"binaries": [
{
"binary_name": "emacs",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-bin-common",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-common",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-el",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-gtk",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-lucid",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
},
{
"binary_name": "emacs-nox",
"binary_version": "1:26.3+1-1ubuntu2+esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:20.04:LTS",
"name": "emacs",
"purl": "pkg:deb/ubuntu/emacs@1:26.3+1-1ubuntu2+esm1?arch=source\u0026distro=esm-apps/focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:26.3+1-1ubuntu2+esm1"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:26.3+1-1ubuntu1",
"1:26.3+1-1ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-9"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-9"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-9?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-8build1",
"21.4.24-9"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.2-5"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-5?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.2-4",
"2009.02.17.dfsg.2-5"
]
},
{
"ecosystem_specific": {
"availability": "No subscription required",
"binaries": [
{
"binary_name": "emacs",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-bin-common",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-common",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-el",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-gtk",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-lucid",
"binary_version": "1:27.1+1-3ubuntu5.2"
},
{
"binary_name": "emacs-nox",
"binary_version": "1:27.1+1-3ubuntu5.2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "emacs",
"purl": "pkg:deb/ubuntu/emacs@1:27.1+1-3ubuntu5.2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1:27.1+1-3ubuntu5.2"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1:27.1+1-3ubuntu3",
"1:27.1+1-3ubuntu5",
"1:27.1+1-3ubuntu5.1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-9ubuntu2"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-9ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-9ubuntu2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-9ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.2-5"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.2-5"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.2-5?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.2-5"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-12build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-12",
"21.4.24-12build2",
"21.4.24-12build3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.3-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.3-2",
"2009.02.17.dfsg.3-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-12build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-12build3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.3-3"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.3-3"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.3-3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-bin",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-mule-canna-wnn",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-nomule",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-support",
"binary_version": "21.4.24-12build3"
},
{
"binary_name": "xemacs21-supportel",
"binary_version": "21.4.24-12build3"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "xemacs21",
"purl": "pkg:deb/ubuntu/xemacs21@21.4.24-12build3?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"21.4.24-12build3"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "xemacs21-basesupport",
"binary_version": "2009.02.17.dfsg.3-3build1"
},
{
"binary_name": "xemacs21-basesupport-el",
"binary_version": "2009.02.17.dfsg.3-3build1"
},
{
"binary_name": "xemacs21-mulesupport",
"binary_version": "2009.02.17.dfsg.3-3build1"
},
{
"binary_name": "xemacs21-mulesupport-el",
"binary_version": "2009.02.17.dfsg.3-3build1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "xemacs21-packages",
"purl": "pkg:deb/ubuntu/xemacs21-packages@2009.02.17.dfsg.3-3build1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2009.02.17.dfsg.3-3",
"2009.02.17.dfsg.3-3build1"
]
}
],
"aliases": [],
"details": "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.",
"id": "UBUNTU-CVE-2022-45939",
"modified": "2026-05-20T14:56:19Z",
"published": "2022-11-28T06:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2022-45939"
},
{
"type": "REPORT",
"url": "https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=d48bb4874bc6cd3e69c7a15fc3c91cc141025c51"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-5781-1"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2022-45939"
},
{
"type": "ADVISORY",
"url": "https://ubuntu.com/security/notices/USN-7027-1"
}
],
"related": [
"USN-5781-1",
"USN-7027-1"
],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2022-45939"
]
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…