CVE-2025-68941 Gitea mishandles access to a private resource upon receiving an API token with scope limited to public resources

Medium 4.9 Published Updated

Attackers with public-scoped API tokens can access private resources in Gitea, leading to unauthorized data disclosure.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-68941?

CVE-2025-68941 is a medium-severity missing authorization vulnerability in Gitea Gitea, published on 26 Dec 2025. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Gitea before 1.22.3 mishandles access to a private resource upon receiving an API token with scope limited to public resources.

Weakness: CWE-863

Which versions are affected by CVE-2025-68941?

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

Products include Gitea Gitea.

How do I fix CVE-2025-68941?

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

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

Is CVE-2025-68941 being exploited?

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

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2025-68941, GHSA-xfq3-qj7j-4565, GO-2025-4268.

Is CVE-2025-68941 in your software?

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

Check your SBOMs for free