CVE-2025-68944
Token Scope Mismanagement in Gitea Package Registry Before
Publication date: 2025-12-26
Last updated on: 2025-12-26
Assigner: MITRE
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| gitea | gitea | 1.22.2 |
| gitea | gitea | 1.23.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-441 | The product receives a request, message, or directive from an upstream component, but the product does not sufficiently preserve the original source of the request before forwarding the request to an external actor that is outside of the product's control sphere. This causes the product to appear to be the source of the request, leading it to act as a proxy or other intermediary between the upstream component and the external actor. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability in Gitea before version 1.22.2 involves improper handling of token scope propagation for access control within its package registries. Specifically, it caused bugs related to uploading NuGet, Conan, and container packages, where permission checks for package uploads were inconsistent or incorrect, potentially allowing improper access or actions during package uploads. [1]
How can this vulnerability impact me? :
The vulnerability can lead to improper permission enforcement during package uploads in Gitea, potentially allowing users with limited permissions to perform actions they should not be authorized to do. This could result in unauthorized modification or upload of packages, impacting the integrity and security of the package registry. [1]
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, you should upgrade your Gitea installation to version 1.22.2 or later, where the fix has been backported. The fix addresses bugs related to package upload permissions and improves scope permission checks. Applying this update will resolve the mishandling of token scope in package registries and improve error logging and permission enforcement. [1]