CVE-2026-89094 Code injection in Forgejo
Remote attackers can execute arbitrary code on Forgejo instances by uploading crafted template repositories due to improper template expansion handling.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-89094?
CVE-2026-89094 is a critical code injection vulnerability in Forgejo, published on 10 Sep 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Forgejo before 16.0.4 allows remote code execution via a crafted template repository because template expansion on files in .forgejo/template is mishandled.
Weakness: CWE-1336
Which versions are affected by CVE-2026-89094?
How do I fix CVE-2026-89094?
No fix has been published for CVE-2026-89094 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-89094 being exploited?
There is no known exploitation of CVE-2026-89094 in the wild and no public exploit code.
Sources
Also known as GHSA-q873-4w8p-m645.