GNU Emacs up to 28.2 ctags lib-src/etags.c os command injection

| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.3 | $0-$5k | 0.99 |
Summary
A vulnerability categorized as critical has been discovered in GNU Emacs up to 28.2. This impacts an unknown function of the file lib-src/etags.c of the component ctags. Executing a manipulation can lead to os command injection. This vulnerability is tracked as CVE-2022-45939. The attack can be launched remotely. No exploit exists. Applying a patch is advised to resolve this issue.
Details
A vulnerability was found in GNU Emacs up to 28.2 (Word Processing Software). It has been declared as critical. This vulnerability affects an unknown functionality of the file lib-src/etags.c of the component ctags. The manipulation with an unknown input leads to a os command injection vulnerability. The CWE definition for the vulnerability is CWE-78. The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:
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.
The weakness was disclosed 11/28/2022. The advisory is shared for download at git.savannah.gnu.org. This vulnerability was named CVE-2022-45939 since 11/28/2022. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available. The MITRE ATT&CK project declares the attack technique as T1202.
The vulnerability scanner Nessus provides a plugin with the ID 211020 (Fedora 38 : emacs (2022-cbc71cc4fe)), which helps to determine the existence of the flaw in a target environment.
Applying a patch is able to eliminate this problem. The bugfix is ready for download at git.savannah.gnu.org.
The vulnerability is also documented in the vulnerability database at Tenable (211020). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Type
Vendor
Name
Version
License
Website
- Vendor: https://www.gnu.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 6.4VulDB Meta Temp Score: 6.3
VulDB Base Score: 5.0
VulDB Temp Score: 4.8
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Os command injectionCWE: CWE-78 / CWE-77 / CWE-74
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: Yes
Availability: 🔍
Status: Not defined
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 211020
Nessus Name: Fedora 38 : emacs (2022-cbc71cc4fe)
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: PatchStatus: 🔍
0-Day Time: 🔍
Patch: git.savannah.gnu.org
Timeline
11/28/2022 🔍11/28/2022 🔍
11/28/2022 🔍
04/29/2025 🔍
Sources
Vendor: gnu.orgAdvisory: git.savannah.gnu.org
Status: Confirmed
CVE: CVE-2022-45939 (🔍)
GCVE (CVE): GCVE-0-2022-45939
GCVE (VulDB): GCVE-100-214432
Entry
Created: 11/28/2022 16:41Updated: 04/29/2025 00:31
Changes: 11/28/2022 16:41 (42), 12/23/2022 16:13 (11), 11/17/2024 21:09 (17), 04/28/2025 16:11 (3), 04/29/2025 00:31 (1)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.