The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of files. By exploiting these combination of primitives, an attacker can execute arbitrary code.
https://www.westerndigital.com/support/product-security/wdc-22005-netatalk-security-vulnerabilities
https://security.gentoo.org/glsa/202311-02
https://lists.debian.org/debian-lts-announce/2024/01/msg00000.html