This issue was addressed by removing the vulnerable code. This issue is fixed in macOS Ventura 13.7.1, macOS Sonoma 14.7.1. A malicious app with root privileges may be able to modify the contents of system files.
https://support.apple.com/en-us/121570
https://support.apple.com/en-us/121568
http://seclists.org/fulldisclosure/2024/Oct/13