gitea CVE Vulnerabilities & Metrics

Focus on gitea vulnerabilities and metrics.

Last updated: 08 Mar 2025, 23:25 UTC

About gitea Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with gitea. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total gitea CVEs: 33
Earliest CVE date: 08 Aug 2018, 02:29 UTC
Latest CVE date: 07 Aug 2023, 14:15 UTC

Latest CVE reference: CVE-2022-38795

Rolling Stats

30-day Count (Rolling): 0
365-day Count (Rolling): 0

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): -100.0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): -100.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical gitea CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 4.77

Max CVSS: 7.5

Critical CVEs (≥9): 0

CVSS Range vs. Count

Range Count
0.0-3.9 7
4.0-6.9 20
7.0-8.9 6
9.0-10.0 0

CVSS Distribution Chart

Top 5 Highest CVSS gitea CVEs

These are the five CVEs with the highest CVSS scores for gitea, sorted by severity first and recency.

All CVEs for gitea

CVE-2022-38795 gitea vulnerability CVSS: 0 07 Aug 2023, 14:15 UTC

In Gitea through 1.17.1, repo cloning can occur in the migration function.

CVE-2023-3515 gitea vulnerability CVSS: 0 05 Jul 2023, 15:15 UTC

Open Redirect in GitHub repository go-gitea/gitea prior to 1.19.4.

CVE-2022-46685 gitea vulnerability CVSS: 0 12 Dec 2022, 09:15 UTC

In Jenkins Gitea Plugin 1.4.4 and earlier, the implementation of Gitea personal access tokens did not support credentials masking, potentially exposing them through the build log.

CVE-2022-42968 gitea vulnerability CVSS: 0 16 Oct 2022, 04:15 UTC

Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.

CVE-2022-38183 gitea vulnerability CVSS: 0 12 Aug 2022, 20:15 UTC

In Gitea before 1.16.9, it was possible for users to add existing issues to projects. Due to improper access controls, an attacker could assign any issue to any project in Gitea (there was no permission check for fetching the issue). As a result, the attacker would get access to private issue titles.

CVE-2022-1928 gitea vulnerability CVSS: 3.5 29 May 2022, 14:15 UTC

Cross-site Scripting (XSS) - Stored in GitHub repository go-gitea/gitea prior to 1.16.9.

CVE-2022-30781 gitea vulnerability CVSS: 5.0 16 May 2022, 04:15 UTC

Gitea before 1.16.7 does not escape git fetch remote.

CVE-2022-27313 gitea vulnerability CVSS: 5.0 03 May 2022, 20:15 UTC

An arbitrary file deletion vulnerability in Gitea v1.16.3 allows attackers to cause a Denial of Service (DoS) via deleting the configuration file.

CVE-2022-1058 gitea vulnerability CVSS: 5.8 24 Mar 2022, 15:15 UTC

Open Redirect on login in GitHub repository go-gitea/gitea prior to 1.16.5.

CVE-2021-29134 gitea vulnerability CVSS: 5.0 15 Mar 2022, 21:15 UTC

The avatar middleware in Gitea before 1.13.6 allows Directory Traversal via a crafted URL.

CVE-2022-0905 gitea vulnerability CVSS: 5.5 10 Mar 2022, 15:15 UTC

Missing Authorization in GitHub repository go-gitea/gitea prior to 1.16.4.

CVE-2021-45331 gitea vulnerability CVSS: 7.5 09 Feb 2022, 18:15 UTC

An Authentication Bypass vulnerability exists in Gitea before 1.5.0, which could let a malicious user gain privileges. If captured, the TOTP code for the 2FA can be submitted correctly more than once.

CVE-2021-45330 gitea vulnerability CVSS: 7.5 09 Feb 2022, 18:15 UTC

An issue exsits in Gitea through 1.15.7, which could let a malicious user gain privileges due to client side cookies not being deleted and the session remains valid on the server side for reuse.

CVE-2021-45329 gitea vulnerability CVSS: 4.3 08 Feb 2022, 23:15 UTC

Cross Site Scripting (XSS) vulnerability exists in Gitea before 1.5.1 via the repository settings inside the external wiki/issue tracker URL field.

CVE-2021-45328 gitea vulnerability CVSS: 5.8 08 Feb 2022, 16:15 UTC

Gitea before 1.4.3 is affected by URL Redirection to Untrusted Site ('Open Redirect') via internal URLs.

CVE-2021-45327 gitea vulnerability CVSS: 7.5 08 Feb 2022, 15:15 UTC

Gitea before 1.11.2 is affected by Trusting HTTP Permission Methods on the Server Side when referencing the vulnerable admin or user API. which could let a remote malisious user execute arbitrary code.

CVE-2021-45326 gitea vulnerability CVSS: 6.8 08 Feb 2022, 15:15 UTC

Cross Site Request Forgery (CSRF) vulnerability exists in Gitea before 1.5.2 via API routes.This can be dangerous especially with state altering POST requests.

CVE-2021-45325 gitea vulnerability CVSS: 5.0 08 Feb 2022, 15:15 UTC

Server Side Request Forgery (SSRF) vulneraility exists in Gitea before 1.7.0 using the OpenID URL.

CVE-2021-28378 gitea vulnerability CVSS: 3.5 15 Mar 2021, 06:15 UTC

Gitea 1.12.x and 1.13.x before 1.13.4 allows XSS via certain issue data in some situations.

CVE-2021-3382 gitea vulnerability CVSS: 5.0 05 Feb 2021, 16:15 UTC

Stack buffer overflow vulnerability in gitea 1.9.0 through 1.13.1 allows remote attackers to cause a denial of service (crash) via vectors related to a file path.

CVE-2020-28991 gitea vulnerability CVSS: 7.5 24 Nov 2020, 01:15 UTC

Gitea 0.9.99 through 1.12.x before 1.12.6 does not prevent a git protocol path that specifies a TCP port number and also contains newlines (with URL encoding) in ParseRemoteAddr in modules/auth/repo_form.go.

CVE-2020-14144 gitea vulnerability CVSS: 6.5 16 Oct 2020, 14:15 UTC

The git hook feature in Gitea 1.1.0 through 1.12.5 might allow for authenticated remote code execution in customer environments where the documentation was not understood (e.g., one viewpoint is that the dangerousness of this feature should be documented immediately above the ENABLE_GIT_HOOKS line in the config file). NOTE: The vendor has indicated this is not a vulnerability and states "This is a functionality of the software that is limited to a very limited subset of accounts. If you give someone the privilege to execute arbitrary code on your server, they can execute arbitrary code on your server. We provide very clear warnings to users around this functionality and what it provides.

CVE-2020-13246 gitea vulnerability CVSS: 5.0 20 May 2020, 18:15 UTC

An issue was discovered in Gitea through 1.11.5. An attacker can trigger a deadlock by initiating a transfer of a repository's ownership from one organization to another.

CVE-2019-1010261 gitea vulnerability CVSS: 4.3 18 Jul 2019, 17:15 UTC

Gitea 1.7.0 and earlier is affected by: Cross Site Scripting (XSS). The impact is: Attacker is able to have victim execute arbitrary JS in browser. The component is: go-get URL generation - PR to fix: https://github.com/go-gitea/gitea/pull/5905. The attack vector is: victim must open a specifically crafted URL. The fixed version is: 1.7.1 and later.

CVE-2019-1010314 gitea vulnerability CVSS: 4.3 11 Jul 2019, 20:15 UTC

Gitea 1.7.2, 1.7.3 is affected by: Cross Site Scripting (XSS). The impact is: execute JavaScript in victim's browser, when the vulnerable repo page is loaded. The component is: repository's description. The attack vector is: victim must navigate to public and affected repo page.

CVE-2019-10330 gitea vulnerability CVSS: 5.0 31 May 2019, 15:29 UTC

Jenkins Gitea Plugin 1.1.1 and earlier did not implement trusted revisions, allowing attackers without commit access to the Git repo to change Jenkinsfiles even if Jenkins is configured to consider them to be untrusted.

CVE-2019-11576 gitea vulnerability CVSS: 7.5 28 Apr 2019, 02:29 UTC

Gitea before 1.8.0 allows 1FA for user accounts that have completed 2FA enrollment. If a user's credentials are known, then an attacker could send them to the API without requiring the 2FA one-time password.

CVE-2019-11229 gitea vulnerability CVSS: 6.5 15 Apr 2019, 12:31 UTC

models/repo_mirror.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repo URL settings, leading to remote code execution.

CVE-2019-11228 gitea vulnerability CVSS: 5.0 15 Apr 2019, 12:31 UTC

repo/setting.go in Gitea before 1.7.6 and 1.8.x before 1.8-RC3 does not validate the form.MirrorAddress before calling SaveAddress.

CVE-2019-1000002 gitea vulnerability CVSS: 5.5 04 Feb 2019, 21:29 UTC

Gitea version 1.6.2 and earlier contains a Incorrect Access Control vulnerability in Delete/Edit file functionallity that can result in the attacker deleting files outside the repository he/she has access to. This attack appears to be exploitable via the attacker must get write access to "any" repository including self-created ones.. This vulnerability appears to have been fixed in 1.6.3, 1.7.0-rc2.

CVE-2018-18926 gitea vulnerability CVSS: 7.5 04 Nov 2018, 05:29 UTC

Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.

CVE-2018-1000803 gitea vulnerability CVSS: 5.0 08 Oct 2018, 15:29 UTC

Gitea version prior to version 1.5.1 contains a CWE-200 vulnerability that can result in Exposure of users private email addresses. This attack appear to be exploitable via Watch a repository to receive email notifications. Emails received contain the other recipients even if they have the email set as private. This vulnerability appears to have been fixed in 1.5.1.

CVE-2018-15192 gitea vulnerability CVSS: 5.0 08 Aug 2018, 02:29 UTC

An SSRF vulnerability in webhooks in Gitea through 1.5.0-rc2 and Gogs through 0.11.53 allows remote attackers to access intranet services.