RCE in Exuberant Ctags Project
CVE-2022-4515
- CVSS v3
- 7.8 High
- Public exploits
- None known
- EPSS
- 0.006 · 50.0th percentile
- Published
- 2022-12-20
A flaw was found in Exuberant Ctags in the way it handles the "-o" option. This option specifies the tag filename. A crafted tag filename specified in the command line or in the configuration file results in arbitrary command execution because the externalSortTags() in sort.c calls the system(3) function in an unsafe way.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
- Attack Vector
- Local
AV:L - Attack Complexity
- Low
AC:L - Privileges Required
- None
PR:N - User Interaction
- Required
UI:R - Scope
- Unchanged
S:U - Confidentiality
- High
C:H - Integrity
- High
I:H - Availability
- High
A:H
EPSS exploit prediction
EPSS 0.006, 50.0th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Exuberant Ctags Project
- Debian Linux — versions 10.0
- Exuberant Ctags — versions All versions are affected
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 5 other repositories (ARPSyndicate/cvemon, nordlow/ctags, Richard740v432yz764/fork, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- sourceforge.net/p/ctags/code/HEAD/tree/tags/ctags-5.8/sort.c (Exploit, Third Party Advisory)
- [debian-lts-announce] 20221231 [SECURITY] [DLA 3254-1] exuberant-ctags security update (mailing-list, Mailing List, Third Party Advisory)