# GHSA-q347-cg56-pcq4: SSRF in repository migration

- Severity: Medium 5.0 (CVSS:3.0, scored by GitHub) `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2022-03-14T22:57:00.000Z
- Modified: 2026-03-03T04:52:09.833Z
- Also known as: GO-2022-0377
- Weaknesses: CWE-918

## Description

### Impact

The malicious user is able to discover services in the internal network through repository migration functionality. All installations accepting public traffic are affected.

### Patches

Internal network CIDRs are prohibited to be used as repository migration targets. Users should upgrade to 0.12.5 or the latest 0.13.0+dev.

### Workarounds

Run Gogs in its own private network.

### References

https://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/

### For more information

If you have any questions or comments about this advisory, please post on #6754.

(As written by GitHub Advisory Database.)

## Affected

- gogs.io/gogs (Go): before 0.12.5

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-q347-cg56-pcq4> (advisory, web)
- <https://github.com/gogs/gogs> (package)
- <https://www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531> (web)

## Sources

- GitHub Advisory Database: [GHSA-q347-cg56-pcq4](https://github.com/advisories/GHSA-q347-cg56-pcq4), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0377](https://pkg.go.dev/vuln/GO-2022-0377), CC-BY-4.0, modified 2026-03-03

---

Page: https://cve.day/GHSA-q347-cg56-pcq4 · Whole record: https://cve.day/GHSA-q347-cg56-pcq4.json · Rebuilt by cve.day 2026-11-25T22:56:23.067Z
