# CVE-2022-4515: A flaw was found in Exuberant Ctags in the way it handles the "-o" option.

- Severity: High 7.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-12-20T00:00:00.000Z
- Modified: 2026-06-17T05:21:05.190Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Exuberant Ctags: All versions are affected
- exuberant_ctags_project exuberant_ctags: no versions given
- debian debian_linux: 10.0

## Every score

- CISA-ADP: 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`
- NVD: 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`

## References

- <https://sourceforge.net/p/ctags/code/HEAD/tree/tags/ctags-5.8/sort.c#l56> (exploit, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/12/msg00040.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2022-4515](https://www.cve.org/CVERecord?id=CVE-2022-4515), CVE Terms of Use, modified 2025-04-14
- NVD: [CVE-2022-4515](https://nvd.nist.gov/vuln/detail/CVE-2022-4515), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-4515 · Whole record: https://cve.day/CVE-2022-4515.json · Rebuilt by cve.day 2026-11-25T22:58:17.715Z
