Patchfirst
CVE-2022-2024 Critical · 9.8 EPSS 97.8%

OS Command Injection in gogs/gogs

gogs · gogs/gogs

Summary

An OS command injection flaw exists in the gogs/gogs product (the Gogs self-hosted Git service) in versions prior to 0.12.11, where special elements are not properly neutralised before being passed to an operating system command. An attacker can exploit it remotely over the network with no privileges or user interaction required, as the attack vector indicates network access with low complexity and no authentication or user action needed.

Official description · CVE.org

OS Command Injection in GitHub repository gogs/gogs prior to 0.12.11.

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

Disclosed on 25 Feb 2023. No public exploit code or confirmed exploitation is recorded.

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-0415, 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.11 for CVE-2022-2024.

Affected versions

If you runUpgrade to
All versions before 0.12.110.14.3first fix for this CVE: 0.12.11

“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