This issue was addressed with improved validation of symlinks. This issue is fixed in macOS Sequoia 15, macOS Sonoma 14.7, macOS Ventura 13.7. An app may be able to modify protected parts of the file system.
https://support.apple.com/en-us/121247
https://support.apple.com/en-us/121238
https://support.apple.com/en-us/121234
http://seclists.org/fulldisclosure/2024/Sep/41