CVE-2026-96404

Gitea installer authentication bypass for existing accounts

Published Oct 6, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
When Gitea's web installer is reachable against a database that already contains users, such as after `INSTALL_LOCK` has been reset to `false`, submitting the install form with an administrator username matching an existing account issued an authenticated session for that account without verifying its password. If the account is an administrator, the session grants full administrative access, including changing the account's password. Databases with a single user also did not require the reinstall confirmation.

Analysis

AI-generated

Technical impact

When Gitea’s web installer is reachable against a database that already contains users, submitting the install form with an administrator username that matches an existing account creates a valid authenticated session without verifying the supplied password. This flaw permits an attacker who knows an existing administrator username to gain full administrative privileges, including the ability to change passwords and perform all administrative operations, effectively bypassing normal authentication controls.

Affected Systems

All Gitea server deployments that expose the installer endpoint while the configuration parameter INSTALL_LOCK is set to false and whose database already holds user data are vulnerable. The advisory indicates that the issue exists in versions prior to the 28.0.0 release, and the patch is included in Gitea 28.0.0 and later versions.

Risk and Exploitability

The vulnerability has a CVSS score of 8.1, indicating high severity, and an EPSS score of < 1 %, suggesting a low but non‑zero probability of exploitation. It is not listed in CISA’s KEV catalog. Based on the description, it is inferred that an attacker who can reach the installer URL and knows an existing administrator username can submit the form and obtain an authenticated session without needing to provide the correct password. Therefore, a remote attacker can gain full administrative control simply by accessing the installer page and providing an administrative username. The lack of a KEV listing does not mitigate the risk for deployments that expose the installer endpoint without adequate protection.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the Gitea 28.0.0 release or later, which includes the fix for the authentication bypass.
  • Once initialization is complete, set INSTALL_LOCK=true to lock the installer or remove the /install directory so that the installer cannot be re‑invoked.
  • Restrict access to the installer endpoint using firewall rules, reverse‑proxy authentication, or network segmentation so that only trusted administrators can reach it.

Generated by OpenCVE AI on October 17, 2026 at 09:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Weaknesses CWE-287
Type Values Removed Values Added
Description When Gitea's web installer is reachable against a database that already contains users, such as after `INSTALL_LOCK` has been reset to `false`, submitting the install form with an administrator username matching an existing account issued an authenticated session for that account without verifying its password. If the account is an administrator, the session grants full administrative access, including changing the account's password. Databases with a single user also did not require the reinstall confirmation.
Title Gitea installer authentication bypass for existing accounts
References
Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-306

    Missing Authentication for Critical Function

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 7, 2026, 2:26 PM
Reserved
Oct 4, 2026, 9:59 PM
Status
Analyzed
Published
Oct 6, 2026, 8:17 PM
Modified
Oct 13, 2026, 3:36 PM
Severity
Important
Public date
Oct 6, 2026, 7:25 PM