CVE-2022-4515
published high CVSS 3.1 · 7.8ctags: arbitrary command execution via a tag file with a crafted filename
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | Exuberant CtagsAll versions are affected | Affected | Not stated | redhat |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2343 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | ctags | Advisory build | 5.8-23.el8 | ALSA-2023:2863 |
| Debian | buster | exuberant-ctags | Advisory build | 1:5.9~svn20110310-12+deb10u1 | DLA-3254-1 |
| Oracle Linux | 8 | ctagsaarch64 | Advisory build | 0:5.8-23.el8 | ELSA-2023-2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctagsaarch64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| SUSE / openSUSE | SLE-12-SP2 | ctagsx86_64 | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| Ubuntu | bionic | exuberant-ctags | Advisory build | 1:5.9~svn20110310-11ubuntu0.1 | USN-5820-1 |
Show 68 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2 | ctagsaarch64 | Listed in advisory | Not stated | ALAS2-2023-2343 |
| Rocky Linux | 8 | ctagsaarch64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| AlmaLinux | 8 | ctags-etags | Advisory build | 5.8-23.el8 | ALSA-2023:2863 |
| Oracle Linux | 8 | ctagsx86_64 | Advisory build | 0:5.8-23.el8 | ELSA-2023-2863 |
| Oracle Linux | 8 | ctags-etagsaarch64 | Advisory build | 0:5.8-23.el8 | ELSA-2023-2863 |
| Oracle Linux | 8 | ctags-etagsx86_64 | Advisory build | 0:5.8-23.el8 | ELSA-2023-2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctagsppc64le | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctagss390x | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctagssrc | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctagsx86_64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debuginfoaarch64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debuginfoppc64le | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debuginfos390x | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debuginfox86_64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debugsourceaarch64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debugsourceppc64le | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debugsources390x | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-debugsourcex86_64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-etagsaarch64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-etagsppc64le | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-etagss390x | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| Red Hat Enterprise Linux | RHEL-8 | ctags-etagsx86_64 | Advisory build | 5.8-23.el8 | RHSA-2023:2863 |
| SUSE / openSUSE | SLE-12-SP4 | ctagsaarch64 | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP4 | ctagsppc64le | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP4 | ctagss390x | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP4 | ctagsx86_64 | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP5 | ctagsaarch64 | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP5 | ctagsppc64le | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP5 | ctagss390x | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-12-SP5 | ctagsx86_64 | Advisory build | 5.8-8.3.1 | SUSE-SU-2023:0224-1 |
| SUSE / openSUSE | SLE-15-SP1 | ctagsaarch64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP1 | ctagsppc64le | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP1 | ctagss390x | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP1 | ctagsx86_64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP2 | ctagsaarch64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP2 | ctagsppc64le | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP2 | ctagss390x | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP2 | ctagsx86_64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP3 | ctagsaarch64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP3 | ctagsppc64le | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP3 | ctagss390x | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP3 | ctagsx86_64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP4 | ctagsaarch64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP4 | ctagsppc64le | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP4 | ctagss390x | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | SLE-15-SP4 | ctagsx86_64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ctagsaarch64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ctagsppc64le | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ctagss390x | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | ctagsx86_64 | Advisory build | 5.8-150000.3.3.1 | SUSE-SU-2023:0225-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ctagsaarch64 | Advisory build | 5.8-12.1 | OPENSUSE-SU-2024:12624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ctagsppc64le | Advisory build | 5.8-12.1 | OPENSUSE-SU-2024:12624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ctagss390x | Advisory build | 5.8-12.1 | OPENSUSE-SU-2024:12624-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | ctagsx86_64 | Advisory build | 5.8-12.1 | OPENSUSE-SU-2024:12624-1 |
| Ubuntu | focal | exuberant-ctags | Advisory build | 1:5.9~svn20110310-12ubuntu0.1 | USN-5820-1 |
| Ubuntu | jammy | exuberant-ctags | Advisory build | 1:5.9~svn20110310-16ubuntu0.22.04.1 | USN-5820-1 |
| Ubuntu | xenial | exuberant-ctags | Advisory build | 1:5.9~svn20110310-11ubuntu0.1~esm1 | USN-5820-1 |
| Amazon Linux | AL2 | ctagsi686 | Listed in advisory | Not stated | ALAS2-2023-2343 |
| Amazon Linux | AL2 | ctagssrc | Listed in advisory | Not stated | ALAS2-2023-2343 |
| Amazon Linux | AL2 | ctagsx86_64 | Listed in advisory | Not stated | ALAS2-2023-2343 |
| Rocky Linux | 8 | ctagssrc | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctagsx86_64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-etagsaarch64 | Listed in advisory | Not stated | RLSA-2023:2863 |
| Rocky Linux | 8 | ctags-etagsx86_64 | Listed in advisory | Not stated | RLSA-2023:2863 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | Exuberant Ctags | All versions are affected (affected) | redhat · cna |
Weaknesses
1- CWE-78
References
2- [debian-lts-announce] 20221231 [SECURITY] [DLA 3254-1] exuberant-ctags security update https://lists.debian.org/debian-lts-announce/2022/12/msg00040.html
- https://sourceforge.net/p/ctags/code/HEAD/tree/tags/ctags-5.8/sort.c#l56
Provider assertions
3redhat · cna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 251b53fff909f753531ac60e3bc82bb212971a6eabb5b2e4cefb13978e507b6d
- Ingested
- 23 Sep 2026, 08:04:30 UTC
- Source record
- Official CVE record