CVE-2025-68939 Gitea allows attackers to add attachments with forbidden file extensions

High 8.2 Published Updated

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.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versionsNone
code.gitea.io/gitea GoAll versionsNone
code.gitea.io/gitea GoAll versionsNone
gitea BitnamiAll versions1.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.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2025-68939, GHSA-263q-5cv3-xq9g, GO-2025-4261.

Is CVE-2025-68939 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free