Server-Side Request Forgery (SSRF) in gogs - CVE-2022-1285

 

Server-Side Request Forgery (SSRF) in gogs - CVE-2022-1285

Published: May 31, 2022 / Updated: April 27, 2026


Vulnerability identifier: #VU128088
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2022-1285
CWE-ID: CWE-918
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

The vulnerability allows a remote user to discover services in the internal network.

The vulnerability exists due to server-side request forgery in webhook functionality when processing user-supplied webhook payload URLs. A remote user can supply a webhook payload URL to probe internal network services to discover services in the internal network.

All installations accepting public traffic are vulnerable.


How to mitigate CVE-2022-1285

Install security update from vendor's website.

Sources