CVE-2022-4515 Command injection in Exuberant Ctags
A command injection vulnerability in Exuberant Ctags allows arbitrary code execution via a crafted tag filename passed to the -o option.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-4515?
CVE-2022-4515 is a high-severity command injection vulnerability in Debian Debian Linux, published on 20 Dec 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-78
Which versions are affected by CVE-2022-4515?
It affects 2 products.
Linux distribution packages (33)
ctags AlmaLinux:8 | All versions | 5.8-23.el8 |
ctags-etags AlmaLinux:8 | All versions | 5.8-23.el8 |
ctags Red Hat:enterprise_linux:8::appstream | All versions | 0:5.8-23.el8 |
ctags-debuginfo Red Hat:enterprise_linux:8::appstream | All versions | 0:5.8-23.el8 |
ctags-debugsource Red Hat:enterprise_linux:8::appstream | All versions | 0:5.8-23.el8 |
ctags-debuginfo Red Hat:enterprise_linux:8::crb | All versions | 0:5.8-23.el8 |
ctags-debugsource Red Hat:enterprise_linux:8::crb | All versions | 0:5.8-23.el8 |
ctags-etags Red Hat:enterprise_linux:8::crb | All versions | 0:5.8-23.el8 |
ctags Rocky Linux:8 | All versions | 0:5.8-23.el8 |
ctags SUSE:Enterprise Storage 6 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Enterprise Storage 7 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Enterprise Storage 7.1 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Module for Development Tools 15 SP4 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Real Time 15 SP3 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server 12 SP2-BCL | All versions | 5.8-8.3.1 |
ctags SUSE:Linux Enterprise Server 12 SP4-LTSS | All versions | 5.8-8.3.1 |
ctags SUSE:Linux Enterprise Server 12 SP5 | All versions | 5.8-8.3.1 |
ctags SUSE:Linux Enterprise Server 15 SP1-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server 15 SP2-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server 15 SP3-LTSS | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server for SAP Applications 12 SP4 | All versions | 5.8-8.3.1 |
ctags SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 5.8-8.3.1 |
ctags SUSE:Linux Enterprise Server for SAP Applications 15 SP1 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server for SAP Applications 15 SP2 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:Linux Enterprise Server for SAP Applications 15 SP3 | All versions | 5.8-150000.3.3.1 |
ctags SUSE:OpenStack Cloud 9 | All versions | 5.8-8.3.1 |
ctags SUSE:OpenStack Cloud Crowbar 9 | All versions | 5.8-8.3.1 |
ctags openSUSE:Leap 15.4 | All versions | 5.8-150000.3.3.1 |
ctags openSUSE:Tumbleweed | All versions | 5.8-12.1 |
Products include Debian Debian Linux, Exuberant Ctags Project Exuberant Ctags.
How do I fix CVE-2022-4515?
Apply the vendor's patch.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2022-4515 being exploited?
There is no known exploitation of CVE-2022-4515 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALSA-2023:2863, AZL-12083, AZL-34647, DEBIAN-CVE-2022-4515, DLA-3254-1, GHSA-qr9x-29jh-mg6x and 10 more.