We discussed this within the Gitea maintainers chat and think this is not a cve. If you give someone the privilege to execute arbitrary code on your server, they can execute arbitrary code on your server. That's like saying admin accounts on wordpress can do RCE because they can install plugins from third parties.
We never pretended to sandbox git hooks.
You can see in the PR which "fixed" that issue it only changed the default settings to mitigate the "issue" but not really fixed the problem: https://github.com/go-gitea/gitea/pull/13058
disputed
Most helpful comment
We discussed this within the Gitea maintainers chat and think this is not a cve. If you give someone the privilege to execute arbitrary code on your server, they can execute arbitrary code on your server. That's like saying admin accounts on wordpress can do RCE because they can install plugins from third parties.
We never pretended to sandbox git hooks.
You can see in the PR which "fixed" that issue it only changed the default settings to mitigate the "issue" but not really fixed the problem: https://github.com/go-gitea/gitea/pull/13058