CVE-2018-18926 Gitea Remote Code Execution (RCE)

Critical 9.8 Published Updated

Attackers can hijack sessions due to improper session ID validation in Gitea, leading to remote code execution and account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-18926?

CVE-2018-18926 is a critical authentication bypass vulnerability in Gitea Gitea, published on 4 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.

Weakness: CWE-384

Which versions are affected by CVE-2018-18926?

3 open source packages ship an affected version, including code.gitea.io/gitea. It affects 1 product.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.5.2
code.gitea.io/gitea GoAll versions1.5.2
code.gitea.io/gitea GoAll versions1.5.2

Products include Gitea Gitea.

How do I fix CVE-2018-18926?

Upgrade code.gitea.io/gitea to 1.5.2 or later.

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2018-18926 being exploited?

There is no known exploitation of CVE-2018-18926 in the wild and no public exploit code.

All Gitea Gitea vulnerabilities

Sources

Also known as GHSA-hf6f-jq25-8gq9, GO-2022-0844, UBUNTU-CVE-2018-18926.

Is CVE-2018-18926 in your software?

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

Check your SBOMs for free