CVE-2025-68945 Gitea: anonymous user can visit private user's project

Medium 5.8 Published Updated

An anonymous user can access private projects in Gitea, leading to unauthorized data disclosure.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-68945?

CVE-2025-68945 is a medium-severity missing authorization vulnerability in Gitea Gitea, published on 26 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Gitea before 1.21.2, an anonymous user can visit a private user's project.

Weakness: CWE-359

Which versions are affected by CVE-2025-68945?

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

Products include Gitea Gitea.

How do I fix CVE-2025-68945?

Upgrade code.gitea.io/gitea to 1.21.2 or later.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2025-68945 being exploited?

There is no known exploitation of CVE-2025-68945 in the wild and no public exploit code.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2025-68945, GHSA-7xq4-mwcp-q8fx, GO-2025-4262.

Is CVE-2025-68945 in your software?

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

Check your SBOMs for free