Skip to main content
Vulnerability Database/CVE-2026-105661

CVE-2026-105661: Unauthenticated Denial of Service Vulnerability

CVE-2026-105661 is a denial of service vulnerability triggered by unauthenticated requests to user repository endpoints, causing server panics and HTTP 500 errors. This article covers the technical details, impact analysis, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-105661 Overview

CVE-2026-105661 is a nil pointer dereference vulnerability in Gitea's organization home handler. Requesting the /{username}/-/repositories endpoint for an individual user account rather than an organization causes the handler to dereference a nil organization object and panic. The request requires no authentication and no special server configuration. Each malformed request causes the server to return HTTP 500 and logs a panic trace. Attackers can repeatedly trigger the panic path to generate noise in server logs and degrade service observability. The issue is tracked under CWE-248: Uncaught Exception and is fixed in Gitea 28.2.0, which returns HTTP 404 for individual users on this route.

Critical Impact

Unauthenticated remote attackers can trigger server-side panics on any Gitea instance by requesting the organization repositories endpoint against individual user accounts.

Affected Products

  • Gitea (self-hosted Git service) prior to version 28.2.0
  • Deployments exposing the /{username}/-/repositories route to unauthenticated clients
  • Any Gitea instance where user accounts are enumerable or guessable

Discovery Timeline

  • 2026-10-18 - CVE-2026-105661 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database
  • Fix released in Gitea v28.2.0 via pull requests #39839 and #39847

Technical Details for CVE-2026-105661

Vulnerability Analysis

The flaw resides in Gitea's organization home handler, which services the /{username}/-/repositories route. The handler assumes the resolved context contains a populated organization structure. When a client supplies the username of an individual user account on this route, the handler proceeds without first validating that the target is an organization. It then accesses fields on a nil *Organization pointer, triggering a Go runtime panic. Gitea's HTTP server recovers from the panic for the affected goroutine, returns HTTP 500 to the caller, and writes a full stack trace to the application log.

The condition is deterministic. Any attacker who can reach the web interface and enumerate or guess one valid username can repeatedly induce the panic. Each panic consumes CPU for stack unwinding and log serialization, and the resulting log volume can obscure legitimate security events in downstream SIEM pipelines. The vulnerability does not expose repository contents, credentials, or session data.

Root Cause

The handler failed to assert that the resolved account was of type organization before dereferencing organization-specific fields. The fix adds a type check and returns HTTP 404 when the account is an individual user, aligning behavior with other organization-scoped routes.

Attack Vector

Exploitation is unauthenticated and remote over HTTP or HTTPS. An attacker sends a GET request to https://<gitea-host>/<username>/-/repositories using any known user handle. No payload crafting, headers, or special parameters are required. Scripted requests at high volume amplify the impact by flooding logs and increasing recovery overhead.

See the GitHub Security Advisory GHSA-c3cr-qq9g-666c for authoritative technical detail.

Detection Methods for CVE-2026-105661

Indicators of Compromise

  • Repeated HTTP 500 responses on the URL pattern /*/-/repositories in Gitea access logs
  • Go runtime panic traces in application logs referencing the organization home handler and a nil pointer dereference
  • Elevated request rates from a single source IP against the /{username}/-/repositories path
  • Spikes in panic serving log entries emitted by Gitea's HTTP router

Detection Strategies

  • Parse Gitea access logs for HTTP 500 status codes correlated with the -/repositories path segment and alert on sustained volume
  • Match application logs for the string runtime error: invalid memory address or nil pointer dereference adjacent to organization handler stack frames
  • Baseline normal request rates per authenticated user and flag unauthenticated bursts to organization routes

Monitoring Recommendations

  • Forward Gitea application and access logs into a centralized log platform with alerting on panic signatures
  • Instrument the reverse proxy fronting Gitea to count 5xx responses per URI pattern and per source IP
  • Review web application firewall (WAF) telemetry for repeated requests to -/repositories paths from non-interactive clients

How to Mitigate CVE-2026-105661

Immediate Actions Required

  • Upgrade Gitea to version 28.2.0 or later, which returns HTTP 404 for individual users on the affected route
  • Audit application logs for prior exploitation attempts and preserve evidence before log rotation
  • Rate-limit unauthenticated requests to -/repositories paths at the reverse proxy or WAF

Patch Information

The upstream fix ships in Gitea v28.2.0, described in the Gitea 28.2.0 release announcement. The code changes are available in pull requests #39839 and #39847. Administrators running container images should pull the updated tag and restart the service. Package-managed installations should apply distribution updates once the patched release is published.

Workarounds

  • Deploy a WAF rule or reverse proxy filter that returns HTTP 404 for requests matching /*/-/repositories when the target account is not an organization
  • Require authentication for all Gitea routes by enabling REQUIRE_SIGNIN_VIEW in the [service] section of app.ini
  • Apply strict rate limiting on the -/repositories URI pattern to blunt log-flooding attempts
  • Restrict Gitea web access to trusted networks or VPN clients until the patch is applied
bash
# Configuration example: enforce authentication for all views in app.ini
[service]
REQUIRE_SIGNIN_VIEW = true

# Example nginx rate limit for the vulnerable route
limit_req_zone $binary_remote_addr zone=gitea_repos:10m rate=5r/s;
location ~ ^/[^/]+/-/repositories$ {
    limit_req zone=gitea_repos burst=10 nodelay;
    proxy_pass http://gitea_upstream;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.