Vulnerability record · CVE-2019-11229 · published 15 April 2019
CVE-2019-11229: Gitea mirror repo URL handling allows remote code execution
Gitea · Gitea
Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repository URL settings, allowing an authenticated user to trigger remote code execution. The flaw is in models/repo_mirror.go and is rated high severity (CVSS 3.1 8.8). It matters because a low-privileged account can gain full control of confidentiality, integrity and availability on the host.
Description
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.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Automated analysis
high priorityCVSS 8.8 with a public exploit and very high EPSS percentile, though it requires an authenticated low-privileged account and is not in KEV.
What it is
Gitea before 1.7.6 and 1.8.x before 1.8-RC3 mishandles mirror repository URL settings, allowing an authenticated user to trigger remote code execution. The flaw is in models/repo_mirror.go and is rated high severity (CVSS 3.1 8.8). It matters because a low-privileged account can gain full control of confidentiality, integrity and availability on the host.
Impact
An attacker with a valid account gains code execution on the Gitea server, leading to full compromise of data and service integrity. The CVSS vector indicates high impact to confidentiality, integrity and availability.
Attack surface
Reached over the network through the mirror repository URL configuration; the vector requires low privileges (PR:L) and no user interaction (UI:N). No authentication bypass is implied, so a valid low-privileged account is needed.
Exploitation
Not listed in CISA KEV, but a public exploit exists (Packet Storm reference tagged Exploit) and EPSS is 0.54955 (98.9th percentile), indicating elevated likelihood of exploitation.
What to do
- Upgrade Gitea to 1.7.6 or later, or 1.8.0-RC3 or later, per the vendor release notes.
- Restrict who can create or configure mirror repositories to trusted users only.
- Review existing mirror repository URL settings for unexpected or attacker-controlled values.
- Monitor and limit outbound network access from the Gitea host to reduce post-exploitation reach.
Detection
- Audit Gitea logs for mirror repository creation or URL changes made by low-privileged accounts.
- Alert on unexpected child processes or outbound connections spawned by the Gitea service.
- Review repository mirror configuration changes around the time of any suspected compromise.
This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| http://packetstormsecurity.com/files/160833/Gitea-1.7.5-Remote-Code-Execution.html | ExploitThird Party AdvisoryVDB Entry |
| https://github.com/go-gitea/gitea/releases/tag/v1.7.6 | Release NotesThird Party Advisory |
| https://github.com/go-gitea/gitea/releases/tag/v1.8.0-rc3 | Release NotesThird Party Advisory |
| http://packetstormsecurity.com/files/160833/Gitea-1.7.5-Remote-Code-Execution.html | ExploitThird Party AdvisoryVDB Entry |
| https://github.com/go-gitea/gitea/releases/tag/v1.7.6 | Release NotesThird Party Advisory |
| https://github.com/go-gitea/gitea/releases/tag/v1.8.0-rc3 | Release NotesThird Party Advisory |
Track CVE-2019-11229 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2019-11229), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.