CVE-2026-89094 Details
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.
A remote code execution vulnerability exists in Forgejo versions prior to 16.0.4. The issue arises from improper handling of template expansion on files listed in '.forgejo/template' within template repositories. When a new repository is created from a template, Forgejo clones the template, removes the '.git' folder, and performs variable expansion before initializing a new git repository. This process can be exploited by a malicious template repository to create a new '.git' folder, which Git would incorporate during repository initialization. As a result, arbitrary data could be read from the Forgejo host, and arbitrary processes could be executed, leading to remote code execution.
Users should update to Forgejo version 16.0.4 or later, where this vulnerability has been fixed. For those on version 15 LTS, the update to version 15.0.8 addresses this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 10, 2026CISA-ADP
Assessed Sep 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://codeberg.org/forgejo/forgejo/milestone/139655 | [email protected] | Issue TrackingRelease NotesVendor |
| https://news.ycombinator.com/item?id=49645907 | [email protected] | AdvisoryExploitTechnical Description |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Forgejo | <= 16.0.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 14, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2026 | New CVE Received | [email protected] |
Volerion