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.
Published: 2026-10-06
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Authentication Bypass
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

Sat, 17 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-306
References
Metrics threat_severity

None

threat_severity

Important


Tue, 13 Oct 2026 15:45:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*

Wed, 07 Oct 2026 15:30:00 +0000

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'}


Wed, 07 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Tue, 06 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-287

Tue, 06 Oct 2026 19:30:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-07T14:26:56.170Z

Reserved: 2026-10-04T21:59:53.548Z

Link: CVE-2026-96404

cve-icon Vulnrichment

Updated: 2026-10-07T14:26:18.879Z

cve-icon NVD

Status : Analyzed

Published: 2026-10-06T20:17:35.500

Modified: 2026-10-13T15:36:13.843

Link: CVE-2026-96404

cve-icon Redhat

Severity : Important

Publid Date: 2026-10-06T19:25:28Z

Links: CVE-2026-96404 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-17T09:45:06Z

Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-306

    Missing Authentication for Critical Function