CVE-2018-15192 Gogs and Gitea SSRF Vulnerability
Remote attackers can exploit webhook SSRF flaws in Gitea and Gogs to access internal intranet services.
- 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-15192?
CVE-2018-15192 is a high-severity server-side request forgery vulnerability in Gitea Gitea, published on 8 Aug 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An SSRF vulnerability in webhooks in Gitea through 1.5.0-rc2 and Gogs through 0.11.53 allows remote attackers to access intranet services.
Weakness: CWE-918
Which versions are affected by CVE-2018-15192?
6 open source packages ship an affected version, including code.gitea.io/gitea and gogs.io/gogs. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.16.0-rc1 |
code.gitea.io/gitea Go | All versions | 1.16.0-rc1 |
code.gitea.io/gitea Go | All versions | 1.16.0-rc1 |
gogs.io/gogs Go | All versions | 0.12.0 |
gogs.io/gogs Go | All versions | 0.12.0 |
gogs.io/gogs Go | All versions | 0.12.0 |
Products include Gitea Gitea, Gogs Gogs.
How do I fix CVE-2018-15192?
Upgrade code.gitea.io/gitea to 1.16.0-rc1 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2018-15192 being exploited?
There is no known exploitation of CVE-2018-15192 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as GHSA-fg3x-rwq9-74cw, GO-2023-1971.