Patchfirst
CVE-2022-0415 Public exploit Critical · 9.9 EPSS 65.9%

Remote Command Execution in uploading repository file in gogs/gogs

gogs · gogs/gogs

Summary

A remote command execution flaw in the repository file upload functionality of gogs/gogs, the self-hosted Git service, affects versions prior to 0.12.6. An attacker with network access and low-privilege authenticated access to the service can exploit improper input validation during file uploads to execute commands, with the impact extending beyond the vulnerable component itself.

Official description · CVE.org

Remote Command Execution in uploading repository file in GitHub repository gogs/gogs prior to 0.12.6.

Breakdown
31.8 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 21 Mar 2022. No public exploit code or confirmed exploitation is recorded.

7 fixes in gogs.io/gogs over 23 months. The latest fix listed for gogs.io/gogs is 0.12.8.

Fixes in gogs.io/gogsGo package, by fixed version. Earlier and later fixes in the same package, not necessarily the same bug.

  1. 0.12.0CVE-2020-1495821 Jun 2020
  2. 0.12.5CVE-2022-087011 Mar 2022
  3. 0.12.5CVE-2022-087111 Mar 2022
  4. 0.12.6CVE-2022-041521 Mar 2022
  5. 0.12.7CVE-2022-14645 May 2022
  6. 0.12.8CVE-2021-3254631 May 2022
  7. 0.12.8CVE-2022-12851 Jun 2022Latest listed

techniques

No techniques linked

No ATT&CK techniques are linked to this CVE yet. MITRE CTID has not mapped it, and no report passage in the corpus ties it to a technique.

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: gogs.io/gogs.

Upgrade to 0.14.3

Fixes this CVE and 3 other known vulnerabilities in this package (CVE-2022-2024, CVE-2024-39930, +1).

Still affected on this line by CVE-2022-32174 (no fix published); CVE-2025-8110 (no fix published); CVE-2026-52806 (no fix published); CVE-2026-52813 (no fix published).

Gogo get gogs.io/gogs@v0.14.3

First fixed in 0.12.6 for CVE-2022-0415.

Affected versions

If you runUpgrade to
All versions before 0.12.60.14.3first fix for this CVE: 0.12.6

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

What security researchers reported

Not named in any threat report yet

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close