Every CVE Search/ Get API key

CVE-2022-1285

Server-Side Request Forgery (SSRF) in gogs/gogs

8.3 HighFix available

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

1.12%Up 0.2 points since Jun 1, 2022
90%50%10%1%

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 HighCVSS: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 HighCVSS: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 HighCVSS: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 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS 3.0
8.3 HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
CVSS 2.0
4.3 MediumAV: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 MediumCVSS: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 HighCVSS: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 HighCVSS: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

Affected packages
PackageAffectedFixed
gogs.io/gogs
Go
before 0.12.8
0.12.8
gogs
Alpine:v3.17
before 0.12.9-r0
0.12.9-r0
gogs
Alpine:v3.18
before 0.12.9-r0
0.12.9-r0
gogs
Alpine:v3.19
before 0.12.9-r0
0.12.9-r0
gogs
Alpine:v3.20
before 0.12.9-r0
0.12.9-r0

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE 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

MoveEnter Open