Gitea versions prior to 1.27.0 contain a vulnerability in the Arch package registry implementation where authenticated users with package publishing permissions can upload Arch package archives with an unbounded number of file entries. This causes resource amplification, leading to excessive consumption of CPU, memory, database storage, and repository index generation resources. The vulnerability impacts availability but does not affect confidentiality or integrity. A patch is available to address this issue.
Gitea versions prior to 1.27.0 contain a denial of service vulnerability in the Debian package registry parser. This flaw allows authenticated users with write access to upload malicious .deb packages that trigger excessive memory consumption through unbounded decompression. Additionally, inefficient O(N²) string concatenation in the parser causes high CPU usage, potentially stalling the server. The vulnerability can be exploited by any authenticated user with write permissions to the package registry.
Gitea versions prior to 1.27.0 contain a denial of service vulnerability in the NPM package tag API endpoint. The issue arises from an unbounded io.ReadAll call that reads the entire HTTP request body into memory without size limits. Authenticated users with write access to their package namespace can exploit this by sending a large request, causing the server process to crash due to out-of-memory conditions. This crash results in a persistent denial of service that can survive automatic restarts. The vulnerability has a moderate severity with a CVSS score of 6.5. A patch is available to address this issue.
Gitea contains a vulnerability in its API path for changing repository visibility from public to private. When this change is made via the REST API, stale watch records are not cleared, allowing users who lost access to still see metadata of the now-private repository in their subscription list. This leads to exposure of repository metadata and inflated watcher counts. The issue affects versions from v1.25.4 up to but not including v1.27.0. The severity is medium with limited confidentiality impact and no integrity or availability impact.
Gitea versions prior to 1.27.0 contain a vulnerability in the organization-level Actions API that allows any member of the organization to enumerate workflow runs and jobs across all repositories within that organization. This includes private repositories and repositories where the user lacks explicit permissions. The issue is due to missing repository-level access control checks in the API endpoints, which rely solely on organization membership for authorization.
Gitea versions prior to 1.27.0 have a vulnerability where webhook authorization headers, although stored encrypted in the database, are decrypted and returned in plaintext through certain API endpoints. This exposure allows repository or site administrators to view sensitive authorization headers such as Bearer tokens, Basic authentication credentials, and API keys set by other admins. The vulnerability affects multiple API endpoints that return webhook details and compromises the intended encryption-at-rest protection by revealing secrets in API responses.
A vulnerability in Gitea prior to version 1.27.0 allows personal access tokens restricted to the public-only scope to bypass intended access controls and retrieve private organization membership and permission details for the token owner's account. This occurs because certain API endpoints do not consistently enforce the public-only token restriction, exposing private organization data indirectly. The issue affects endpoints such as GET /api/v1/user/orgs and GET /api/v1/users/{username}/orgs/{org}/permissions, while direct access to private organizations remains blocked. A fix is available in Gitea version 1.27.0.
Gitea versions prior to 1.27.0 contain a server-side request forgery (SSRF) vulnerability in migration asset downloads and OAuth avatar updates. This occurs because certain code paths use unfiltered http.Get() calls that bypass the hostmatcher protection, allowing attackers with migration permissions to access internal services, cloud metadata endpoints, and local files via file:// URLs. The vulnerability enables theft of sensitive data such as cloud instance metadata and local configuration files containing credentials. A fix is available in version 1.27.0.
Gitea versions prior to 1.27.0 contain two Server-Side Request Forgery (SSRF) vulnerabilities. The first involves an IP address classifier that fails to block certain address families, notably CGNAT (100.64.0.0/10), allowing authenticated users to create webhooks targeting internal CGNAT hosts and retrieve their HTTP responses. The second vulnerability allows unauthenticated users to trigger arbitrary GET requests to internal IPs via the OpenID sign-in form, which lacks IP filtering and authentication. Both issues are confirmed in version 1.26.2 and fixed in version 1.27.0.
Gitea versions prior to 1.27.0 contain a denial-of-service vulnerability in the Locale middleware that processes the Accept-Language HTTP header. The vulnerability arises because the middleware calls golang.org/x/text/language.ParseAcceptLanguage on unfiltered Accept-Language headers, which can contain large malformed language tag lists. The parser exhibits quadratic-time complexity when processing inputs with many underscore (_) separators, leading to excessive CPU consumption. This can be exploited by unauthenticated attackers sending crafted Accept-Language headers to cause high CPU usage and service degradation.
Gitea versions prior to 1.27.0 have a denial of service vulnerability in the SSH key ingestion endpoint. The flaw is due to an O(N²) string concatenation loop in the SSH2 key normalization function that lacks input size limits. An authenticated user can submit a maliciously large SSH2 formatted key, causing excessive CPU and memory usage that may take the server offline. This vulnerability is identified as CVE-2026-56657 and is classified as a moderate severity issue. A patch is available to address this vulnerability.
Gitea versions prior to 1.27.0 contain a vulnerability where repository visibility and template status can be manipulated via undocumented git push options by users with owner or admin collaborator access. This allows changing a repository from private to public or altering its template status without triggering audit logs, webhook events, notifications, or timestamp updates. The flaw enables stealthy visibility changes and template poisoning attacks, leaving no trace in the repository's activity feed or notifications.
Gitea versions prior to 1.27.0 have a vulnerability in the OAuth2 sign-in callback that causes administrator-deactivated user accounts to be reactivated when signing in via OAuth2 sources that do not issue refresh tokens, such as GitHub or OIDC/OAuth2 sources without offline_access. This occurs because the system incorrectly uses an empty refresh token as a signal to reactivate accounts, which is the normal state for these sources. As a result, a deactivated user can regain full account access and session without special privileges. Accounts disabled with the stronger 'Prohibit Login' setting remain unaffected. This issue is fixed in Gitea 1.27.0.
Gitea versions prior to 1.27.0 contain a privilege escalation vulnerability in the LFS deploy-key handling. The flaw arises because deploy keys are incorrectly represented as the repository owner in JWT tokens, allowing an attacker with a write deploy key on one repository to impersonate the owner and access LFS objects across all private repositories owned by that user. This breaks the intended isolation of deploy keys and can expose sensitive LFS data without requiring admin credentials or brute force.
A null pointer dereference vulnerability exists in Gitea's AddTime API endpoint. When a repository administrator specifies a non-existent user name, the API returns an error but continues execution, leading to a runtime panic due to dereferencing a nil user pointer. This causes an authenticated denial of service by crashing the server process handling the request.
Gitea's OIDC userinfo endpoint accepts API tokens but does not enforce token scopes before returning identity claims. This allows tokens with limited scopes, such as 'read:misc', to retrieve user identity information including email and group memberships, even though these tokens are denied access to user-related REST API endpoints. The vulnerability affects versions prior to 1.27.0 and has been fixed in version 1.27.0. The impact is limited to disclosure of identity information associated with the authenticated user and does not grant access to repositories or administrative functions.
A vulnerability in Gitea versions prior to 1.27.0 allows users who have been removed as collaborators from a private repository to continue accessing repository metadata via the starred repository API endpoint. Although direct repository access is denied after revocation, metadata such as repository name, description, and visibility status remain accessible and reflect updates made after access removal. This issue does not expose repository contents or sensitive data.
Gitea's internal API HTTP client hardcodes TLSClientConfig.InsecureSkipVerify=true without any configuration override, allowing it to accept any TLS certificate. This affects deployments where internal API communication uses HTTPS to a non-loopback target, enabling an attacker with network access to intercept the INTERNAL_TOKEN used for authentication of sensitive internal API endpoints. The vulnerability is rated high severity for split-host HTTPS deployments and low/informational for default single-host setups. A fix is available in Gitea version 1.27.0.
Gitea versions prior to 1.27.0 have a vulnerability in their RSS/Atom feed handlers where API tokens with restricted scopes or marked as public-only can still access private repository content via feed routes. This bypasses the intended token scope and public-only confinement enforced on other download handlers. The issue allows tokens that should be blocked from private repo data to retrieve commit details, release notes, and private activity streams through various feed endpoints.
A vulnerability in Gitea's DeleteIssueLabel API endpoint allows authenticated users to enumerate label IDs across repositories they do not have access to. The API performs a global, unscoped lookup of label IDs and returns different HTTP status codes depending on whether the label ID exists anywhere on the instance. This information leak does not expose label names, colors, or allow cross-repository writes. The issue affects Gitea versions prior to 1.27.0 and has a low severity rating.