CVE-2019-11228: Improper Input Validation in github.com/go-gitea/gitea/models

github.com/go-gitea/gitea Updated 02 Oct 2025

Summary

15/02/2022
Yes i
High
7.5

CVE-2019-11228: Gitea Improper Input Validation. Affects github.com/go-gitea/gitea versions < 1.7.6. Fixed in 1.7.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The github.com/go-gitea/gitea/models package is a component of Gitea, an open-source self-hosted Git service. It provides functionality for managing repository settings, including the form.MirrorAddress field. This vulnerability affects Gitea versions before 1.7.6 and 1.8.x before 1.8-RC3. The package fails to validate the form.MirrorAddress input before saving it, leading to potential security issues.

Vulnerability Detail

The vulnerability arises from the lack of input validation in the repo/setting.go file of the github.com/go-gitea/gitea/models package. Specifically, the form.MirrorAddress field is not properly validated before being saved. This oversight allows an attacker to manipulate the MirrorAddress field and potentially execute malicious actions. The impact of this vulnerability can range from unauthorized access to sensitive information to remote code execution.

How To Fix

Minimum fixed version

1.7.6

This is the first release that contains the fix.

go get github.com/go-gitea/gitea@v1.7.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can manually validate the form.MirrorAddress input before saving it. This can be done by implementing custom validation logic in the repo/setting.go file. Here is an example of how the validation can be performed:

def validateMirrorAddress(address string) bool {
  // Perform validation logic here
  // Return true if the address is valid, false otherwise
}

func SaveAddress(address string) {
  if validateMirrorAddress(address) {
    // Save the address
  } else {
    // Handle invalid address
  }
}

Conclusion

In conclusion, the github.com/go-gitea/gitea/models package in Gitea is vulnerable to improper input validation in the form.MirrorAddress field. This vulnerability can be mitigated by updating Gitea to version 1.7.6 or later. Users can also manually validate the input as a temporary workaround. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for github.com/go-gitea/gitea →

Share this vulnerability

FAQ

The vulnerability allows an attacker to manipulate the MirrorAddress field and potentially execute malicious actions. This can lead to unauthorized access to sensitive information or even remote code execution.

Versions of Gitea before 1.7.6 and 1.8.x before 1.8-RC3 are affected by this vulnerability.

To fix this vulnerability, it is recommended to update Gitea to version 1.7.6 or later, which includes the necessary validation checks for the MirrorAddress field.

As a temporary workaround, users can manually validate the MirrorAddress input before saving it by implementing custom validation logic.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/go-gitea/gitea.

How To Fix

Minimum fixed version

1.7.6

This is the first release that contains the fix.

go get github.com/go-gitea/gitea@v1.7.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback