There isn’t a separate “messages” from anything else, that’s an illusion Apple marketing encourages. iOS is a shared-tenancy, general-purpose operating system. A vulnerability in any of the core libraries can affect any of the apps (first party or otherwise) and a hostile or compromised application (first party or otherwise) can compromise the entirety of the device and its data.
Whether something is a Messages vulnerability or “something obscure” is just marketing spin.