cve.bz

CVE-2022-4515 OS Command Injection

7.8 highExploit referenceEPSS 0.6%

High (7.8). EPSS 0.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 50th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-78 Improper Neutralization of Special Elements used in an OS Command (OS Command Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-4515 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-4515?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-4515?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-4515 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10exuberant-ctags1:5.9~svn20110310-12+deb10u1DLA-3254-1
Debian12, 13, 14exuberant-ctags1:5.9~svn20110310-18DEBIAN-CVE-2022-4515
Ubuntu18.04:LTSexuberant-ctags1:5.9~svn20110310-11ubuntu0.1UBUNTU-CVE-2022-4515 USN-5820-1
Ubuntu20.04:LTSexuberant-ctags1:5.9~svn20110310-12ubuntu0.1UBUNTU-CVE-2022-4515 USN-5820-1
Ubuntu22.04:LTSexuberant-ctags1:5.9~svn20110310-16ubuntu0.22.04.1UBUNTU-CVE-2022-4515 USN-5820-1
UbuntuPro:16.04:LTSexuberant-ctags1:5.9~svn20110310-11ubuntu0.1~esm1UBUNTU-CVE-2022-4515 USN-5820-1
Red Hatenterprise_linux:8::appstreamctags, ctags-debuginfo, ctags-debugsource0:5.8-23.el8RHSA-2023:2863
Red Hatenterprise_linux:8::crbctags-etags, ctags-debuginfo, ctags-debugsource0:5.8-23.el8RHSA-2023:2863
SUSEEnterprise Storage 6, Enterprise Storage 7, Enterprise Storage 7.1 and 12 morectags5.8-150000.3.3.1SUSE-SU-2023:0225-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP4-LTSS, Linux Enterprise Server 12 SP5 and 4 morectags5.8-8.3.1SUSE-SU-2023:0224-1
openSUSELeap 15.4ctags5.8-150000.3.3.1SUSE-SU-2023:0225-1
openSUSETumbleweedctags5.8-12.1openSUSE-SU-2024:12624-1
AlmaLinux8ctags, ctags-etags5.8-23.el8ALSA-2023:2863
Rocky Linux8ctags0:5.8-23.el8RLSA-2023:2863
Azure Linux2ctags5.9.20220619.0-7AZL-12083
Azure Linux3ctags6.1.0-1AZL-34647

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Exuberant Ctags is not shipped in Red Hat Enterprise Linux 9, therefore it's not affected.

Red Hat's mitigation

The --options=NONE command line option will disable the automatic reading of any configuration file, including the .ctags configuration file from the current directory. However, this option will prevent ctags of reading the specific configuration provided by a project via a version control system repository.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8ctags-0:5.8-23.el8Fixed 2023-05-16RHSA-2023:2863
Red Hat Enterprise Linux 6ctagsOut of support scope
Red Hat Enterprise Linux 7ctagsOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-4515.

Attack patterns (CAPEC)

  • CAPEC-6 Argument Injection Likelihood: High · Severity: High
  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-88 OS Command Injection Likelihood: High · Severity: High
  • CAPEC-108 Command Line Execution through SQL Injection Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON