Apple's Predicament – NSPredicate Exploitation on macOS and iOS [video]
youtube.com
youtube.com
Quite reminiscent of the exploits the JVM suffered with reflection and deserialization.
Fascinating how many iterations it took Apple to mitigate huge gaping holes. I imagine they were trying to do least invasive thing possible each time while they worked behind the scenes to fundamentally secure the primitive.
However, that also means locking this down without understanding developer usage would also be a severely breaking change for potentially important software on the platform.