PT-2026-63285 · Gitea+1 · Gitea+1

·

CVE-2026-56750

·

Published

2026-07-21

·

Updated

2026-08-14

CVSS v3.1

9.1

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Name of the Vulnerable Software and Affected Versions Gitea (affected versions not specified)
Description An issue exists in the Remember-Me token validation logic where the system fails to invalidate all active sessions when a compromised token is detected. Gitea uses a split token design consisting of an ID and a Hash. When a token is used, the Hash is rotated while the ID remains constant. If an attacker steals a token and authenticates, they receive a new rotated token. When the legitimate user subsequently attempts to use their original token, the system detects a hash mismatch. While the CheckAuthToken() function identifies this mismatch, the autoSignIn process only deletes the local cookie of the victim and does not remove the compromised token from the database. This allows an attacker to maintain persistent access to the account. The affected endpoint is POST /user/login and any other endpoint that triggers autoSignIn via the Remember-Me cookie.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Insufficient Session Expiration

Improper Access Control

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-56750
GHSA-RGV6-XP99-6MGJ
GO-2026-6072
OPENSUSE-SU-2026:21551-1
SUSE-SU-2026:23216-1
SUSE-SU-2026:23227-1

Affected Products

Gitea
Red Os