Live threats

All CVEs / Forgejo

CVE-2026-89094Forgejo

Remote code execution in Forgejo via template expansion

Critical 9.9

Priority
59
CVSS 3.1
9.9
EPSS
—
Auth required
Yes
Published
Sep 10, 2026
Updated
Sep 22, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

What happens

Forgejo before version 16.0.4 allows remote code execution through a crafted template repository due to improper handling of template expansion in files within .forgejo/template. An authenticated attacker can exploit this vulnerability to execute arbitrary code on the server.

Show the original NVD text

Forgejo before 16.0.4 allows remote code execution via a crafted template repository because template expansion on files in .forgejo/template is mishandled.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 16.0.4

Update Forgejo to version 16.0.4 or later to fix the template expansion handling.

Vendor advisory · codeberg.org ↗

  1. Apply the vendor's security update for Forgejo.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.