CVE-2025-68939 Gitea allows attackers to add attachments with forbidden file extensions
Attackers can upload files with forbidden extensions by manipulating attachment names, potentially leading to code execution or security bypass.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-68939?
CVE-2025-68939 is a high-severity vulnerability in Gitea Gitea, published on 26 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Gitea before 1.23.0 allows attackers to add attachments with forbidden file extensions by editing an attachment name via an attachment API.
Weakness: CWE-424
Which versions are affected by CVE-2025-68939?
4 open source packages ship an affected version, including code.gitea.io/gitea and gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | None |
code.gitea.io/gitea Go | All versions | None |
code.gitea.io/gitea Go | All versions | None |
gitea Bitnami | All versions | 1.23.0 |
Products include Gitea Gitea.
How do I fix CVE-2025-68939?
Upgrade to a fixed version.
Is CVE-2025-68939 being exploited?
There is no known exploitation of CVE-2025-68939 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2025-68939, GHSA-263q-5cv3-xq9g, GO-2025-4261.