CVE-2019-11229: Gitea Remote Code Execution
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.96592%
CWE
Published
2/15/2022
Updated
9/15/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:F/RL:O/RC:C
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
github.com/go-gitea/gitea | go | < 1.7.6 | 1.7.6 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of mirror repository URLs in three key areas:
- remoteAddress function's insecure config parsing allowed reading malicious git configs
- SaveAddress function's insecure config writing enabled injection of SSH commands
- SettingsPost controller lacked proper URL validation Together these allowed attackers to inject git config directives through the mirror URL field. The patches replace ini-based config handling with secure git commands and add strict URL validation using xurls, indicating these were the vulnerable points. Runtime exploitation would show activity in these URL processing and git config manipulation functions.