A flaw was found in Exuberant Ctags in the way it handles the "-o" option, this option is used to specify 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. Reference: https://sourceforge.net/p/ctags/code/HEAD/tree/tags/ctags-5.8/sort.c#l56
This issue has been addressed in the following products: Red Hat Enterprise Linux 8 Via RHSA-2023:2863 https://access.redhat.com/errata/RHSA-2023:2863
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s): https://access.redhat.com/security/cve/cve-2022-4515