Since the version passed to the `dpkg` command comes from a local `Packages` file, it is presumably trusted. But if the script is called on a random file or the attacker can control its contents, it might be possible to inject commands.
Since the version passed to the `dpkg` command comes from a local `Packages` file, it is presumably trusted. But if the script is called on a random file or the attacker can control its contents, it might be possible to inject commands.