A logic issue was addressed with improved checks. This issue is fixed in macOS Sequoia 15, macOS Sonoma 14.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