CVE-2025-68944 Gitea sometimes mishandles propagation of token scope for access control within one of its own package registries

Medium 5.0 Published Updated

Attackers can bypass access controls in Gitea package registries due to improper token scope propagation, potentially reading unauthorized data.

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-68944?

CVE-2025-68944 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.2 sometimes mishandles the propagation of token scope for access control within one of its own package registries.

Weakness: CWE-441

Which versions are affected by CVE-2025-68944?

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

Products include Gitea Gitea.

How do I fix CVE-2025-68944?

Upgrade code.gitea.io/gitea to 1.22.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-68944 being exploited?

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

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2025-68944, GHSA-f85h-c7m6-cfpm, GO-2025-4264.

Is CVE-2025-68944 in your software?

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

Check your SBOMs for free