CVE-2019-11229: Remote Code Execution in github.com/go-gitea/gitea/models
Summary
CVE-2019-11229: Gitea Remote Code Execution. Affects github.com/go-gitea/gitea versions < 1.7.6. Fixed in 1.7.6. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 mirrors. Gitea versions before 1.7.6 and 1.8.x before 1.8-RC3 are affected by a vulnerability that mishandles mirror repository URL settings, potentially leading to remote code execution.
Vulnerability Detail
The vulnerability (CVE-2019-11229) in github.com/go-gitea/gitea/models allows an attacker to execute arbitrary code remotely. It occurs due to improper handling of mirror repository URL settings. An attacker can exploit this vulnerability to execute malicious code on the target system, potentially leading to unauthorized access, data theft, or further compromise of the affected Gitea instance.
How To Fix
Latest published version: v1.8.3 as of 23 Oct 2026
go get github.com/go-gitea/gitea@v1.8.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
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
There is no specific workaround provided for this vulnerability. It is advised to apply the recommended fix by upgrading to the latest version of Gitea.
Conclusion
The vulnerability (CVE-2019-11229) in the github.com/go-gitea/gitea/models package allows for remote code execution in Gitea instances before version 1.7.6 and 1.8.x before 1.8-RC3. It is crucial to upgrade Gitea to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for github.com/go-gitea/gitea →
FAQ
The vulnerability allows an attacker to execute arbitrary code remotely, potentially leading to unauthorized access, data theft, or further compromise of the affected Gitea instance.
Gitea versions before 1.7.6 and 1.8.x before 1.8-RC3 are affected by this vulnerability.
There is no known public exploit available for this vulnerability at the time of this report.
Yes, upgrading Gitea to version 1.7.6 or later will mitigate this vulnerability.
You can find more information about this vulnerability in the GitHub Advisory Database: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/02/GHSA-hpmr-prr2-cqc4/GHSA-hpmr-prr2-cqc4.json
References
Related vulnerabilities
Recent vulnerabilities recorded for github.com/go-gitea/gitea.