Incorrect authorization in Gitea - CVE-2026-55987

 

Incorrect authorization in Gitea - CVE-2026-55987

Published: July 14, 2026


Vulnerability identifier: #VU137431
CSH Severity: Medium
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-55987
CWE-ID: CWE-863
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to regain access to a deactivated account and obtain administrative access.

The vulnerability exists due to incorrect authorization in the OAuth2 sign-in callback when handling sign-in through an authentication source that does not issue refresh tokens. A remote user can sign in through the configured OAuth2 or OIDC provider to regain access to a deactivated account and obtain administrative access.

Only the "Activated" deactivation state is affected; accounts blocked with "Prohibit Login" remain unable to sign in.


Affected software

Gitea

How to mitigate CVE-2026-55987

Install security update from vendor's website.

Gitea - update to 1.27.0

External References

Related Security Bulletins