CVE-2022-1285
Server-Side Request Forgery (SSRF) in gogs/gogs
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- Low
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
8.3
Server-Side Request Forgery (SSRF) in gogs/gogs
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
- Record
CVE-2022-1285- CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-918
- Updated
- 2026-11-02
EUVDEUVD-2022-6172
8.3
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
- Record
EUVD-2022-6172- CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-w689-557m-2cvq
8.3
Server-Side Request Forgery in gogs webhook
Impact
The malicious user is able to discover services in the internal network through webhook functionality. All installations accepting public traffic are affected.
Patches
Webhook payload URLs are revalidated before each delivery to make sure they are not resolved to blocked local network addresses. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.
Workarounds
Run Gogs in its own private network.
References
https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d/
For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6901.
- Record
GHSA-w689-557m-2cvq- CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-918
- Updated
- 2026-11-02
NVD
6.5
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
- Record
CVE-2022-1285- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:P/I:N/A:N - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVALPINE-CVE-2022-1285
6.5
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
- Record
ALPINE-CVE-2022-1285- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-03
OSV
8.3
Server-Side Request Forgery (SSRF) in gogs/gogs
Server-Side Request Forgery (SSRF) in GitHub repository gogs/gogs prior to 0.12.8.
- Record
CVE-2022-1285- CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVGHSA-w689-557m-2cvq
8.3
Server-Side Request Forgery in gogs webhook
Impact
The malicious user is able to discover services in the internal network through webhook functionality. All installations accepting public traffic are affected.
Patches
Webhook payload URLs are revalidated before each delivery to make sure they are not resolved to blocked local network addresses. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.
Workarounds
Run Gogs in its own private network.
References
https://huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d/
For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/issues/6901.
- Record
GHSA-w689-557m-2cvq- CVSS 3.0
- 8.3 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L - Weakness
- CWE-918
- Updated
- 2026-11-02
OSVGO-2022-0583 No score
Server-Side Request Forgery in gogs webhook in gogs.io/gogs
Server-Side Request Forgery in gogs webhook in gogs.io/gogs
- Record
GO-2022-0583- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
gogs.io/gogsGo |
before 0.12.8 | 0.12.8 |
gogsAlpine:v3.17 |
before 0.12.9-r0 | 0.12.9-r0 |
gogsAlpine:v3.18 |
before 0.12.9-r0 | 0.12.9-r0 |
gogsAlpine:v3.19 |
before 0.12.9-r0 | 0.12.9-r0 |
gogsAlpine:v3.20 |
before 0.12.9-r0 | 0.12.9-r0 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2022-1285 is a high vulnerability (CVSS 8.3) in Gogs, published June 1, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.12%, the 66th percentile. Fixed in gogs.io/gogs 0.12.8.
References
huntr.dev/bounties/da1fbd6e-7a02-458e-9c2e-6d226c47046d
github.com/gogs/gogs/commit/7885f454a4946c4bbec1b4f8c603b5eea7429c7f
github.com/gogs/gogs/security/advisories/GHSA-w689-557m-2cvq
nvd.nist.gov/vuln/detail/CVE-2022-1285
github.com/advisories/GHSA-w689-557m-2cvq
security.alpinelinux.org/vuln/CVE-2022-1285
github.com/CVEProject/cvelistV5/tree/main/cves/2022/1xxx/CVE-2022-1285.json
github.com/gogs/gogs