Probably depends on the context (as always) but I'd say prompt injection is closer to remote code execution - or even a superset thereof if it can also change and redeploy code.
Probably depends on the context (as always) but I'd say prompt injection is closer to remote code execution - or even a superset thereof if it can also change and redeploy code.