CVE-2022-1285
Gogs vulnerability analysis and mitigation

Overview

A Server-Side Request Forgery (SSRF) vulnerability was discovered in GitHub repository gogs/gogs affecting versions prior to 0.12.8. The vulnerability was assigned CVE-2022-1285 and was disclosed in April 2022 (NVD, CVE).

Technical details

The vulnerability received a CVSS v3.1 base score of 6.5 (MEDIUM) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N. The issue was classified as CWE-918 (Server-Side Request Forgery) and affected the webhook functionality in the Gogs application (NVD).

Impact

The SSRF vulnerability could allow attackers to make unauthorized requests to internal network resources through the webhook functionality, potentially leading to information disclosure. The vulnerability has a high confidentiality impact but does not affect integrity or availability (NVD).

Mitigation and workarounds

The vulnerability was patched in Gogs version 0.12.8. The fix includes revalidating local hostnames before webhook delivery and blocking requests to local network addresses that are not explicitly allowlisted (GitHub Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management