The ftp client in GNU Inetutils before 2.2 does not validate addresses returned by PASV/LSPV responses to make sure they match the server address. This is similar to CVE-2020-8284 for curl.
https://lists.gnu.org/archive/html/bug-inetutils/2021-06/msg00002.html
https://lists.debian.org/debian-lts-announce/2022/11/msg00033.html
https://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=58cb043b190fd04effdaea7c9403416b436e50dd