Skip to content
OpenAdvisories
High · 7.8 CVE-2022-4515 EUVD-2022-51855GHSA-qr9x-29jh-mg6x

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 s…

Published Dec 20, 2022 · Updated Apr 14, 2025 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
— Exuberant Ctags All versions are affected —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 exuberant-ctags 1:5.9~svn20110310-18 —
Debian 13 exuberant-ctags 1:5.9~svn20110310-18 —
Debian 12 exuberant-ctags 1:5.9~svn20110310-18 —
Debian 10 exuberant-ctags 1:5.9~svn20110310-12+deb10u1 DLA-3254-1
ReleasePackageFixed inAdvisory
Ubuntu 22.04 LTS exuberant-ctags 1:5.9~svn20110310-16ubuntu0.22.04.1 USN-5820-1
Ubuntu 20.04 LTS exuberant-ctags 1:5.9~svn20110310-12ubuntu0.1 USN-5820-1
Ubuntu 18.04 LTS exuberant-ctags 1:5.9~svn20110310-11ubuntu0.1 USN-5820-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 16.04 LTS exuberant-ctags 1:5.9~svn20110310-11ubuntu0.1~esm1 USN-5820-1
ReleasePackageFixed inAdvisory
RHEL 8 ctags +1 5.8-23.el8 RHSA-2023:2863

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 8 ctags +1 5.8-23.el8 ALSA-2023:2863

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 8 ctags 5.8-23.el8 RLSA-2023:2863
ReleasePackageFixed inAdvisory
SLES 15 SP4 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES 15 SP3 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES 15 SP2 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES 15 SP1 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES 12 SP5 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP4 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SLES 12 SP2 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SLES for SAP 15 SP3 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES for SAP 15 SP2 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES for SAP 15 SP1 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLES for SAP 12 SP5 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SLES for SAP 12 SP4 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SLE Real Time 15 SP3 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLE HPC 15 SP3 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLE HPC 15 SP2 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SLE HPC 15 SP1 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SUSE OpenStack Cloud Crowbar 9 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SUSE OpenStack Cloud 9 ctags 5.8-8.3.1 SUSE-SU-2023:0224-1
SUSE Enterprise Storage 7.1 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SUSE Enterprise Storage 7 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
SUSE Enterprise Storage 6 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed ctags 5.8-12.1 openSUSE-SU-2024:12624-1
openSUSE Leap 15.4 ctags 5.8-150000.3.3.1 SUSE-SU-2023:0225-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 ctags +1 5.8-23.amzn2 ALAS2-2023-2343

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 ctags 6.1.0-1 —
Azure Linux 2 (CBL-Mariner) ctags 5.9.20220619.0-7 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 ctags +1 5.8-23.el8 ELSA-2023-2863

Advisories 11

References