CVE-2019-11229 Gitea Remote Code Execution

High 8.8 Published Updated

Attackers can achieve remote code execution by exploiting mishandled mirror repository URL settings in Gitea.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-11229?

CVE-2019-11229 is a high-severity command injection vulnerability in Gitea Gitea, published on 13 Apr 2019. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Which versions are affected by CVE-2019-11229?

3 open source packages ship an affected version, including github.com/go-gitea/gitea. It affects 1 product.

PackageAffectedFixed in
github.com/go-gitea/gitea GoAll versions1.7.6
github.com/go-gitea/gitea GoAll versions1.7.6
github.com/go-gitea/gitea GoAll versions1.7.6

Products include Gitea Gitea.

How do I fix CVE-2019-11229?

Upgrade github.com/go-gitea/gitea to 1.7.6 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-11229 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-11229 exists.

Public exploit code: 1 Exploit-DB entry.

All Gitea Gitea vulnerabilities

Sources

Also known as GHSA-hpmr-prr2-cqc4, GO-2022-0846.

Is CVE-2019-11229 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free