Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. GMS-2022-439

GMS-2022-439: SSRF in repository migration

March 14, 2022 (updated March 18, 2022)

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.

References

  • github.com/advisories/GHSA-q347-cg56-pcq4
  • github.com/gogs/gogs/security/advisories/GHSA-q347-cg56-pcq4
  • www.huntr.dev/bounties/327797d7-ae41-498f-9bff-cc0bf98cf531/

Code Behaviors & Features

Detect and mitigate GMS-2022-439 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.12.5

Fixed versions

  • 0.12.5

Solution

Upgrade to version 0.12.5 or above.

Source file

go/gogs.io/gogs/GMS-2022-439.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:42 +0000.