ZSA-2026-19
When tickets were merged, the cleanup of link relations (Kernel::System::Ticket, TicketMerge()) inserted the keys of linked tickets directly into an SQL statement instead of using bind parameters. Because the link dialog (AgentLinkObject) skipped the permission check for target keys in temporary link mode and ticket link keys were not validated to be numeric, an authenticated agent could store a crafted link key and execute arbitrary SQL statements when the ticket was merged. Only systems using MySQL or MariaDB are affected.
Fixed in: Znuny LTS 6.5.27 and Znuny LTS 7.5.1
Thanks to Timotej Doležal (ESET) for reporting.