CVE-2022-0871
Gogs vulnerability analysis and mitigation

Overview

Missing Authorization vulnerability (CVE-2022-0871) was identified in GitHub repository gogs/gogs versions prior to 0.12.5. The vulnerability was discovered and disclosed in March 2022, affecting the authentication system of the Gogs Git service platform (CVE Mitre).

Technical details

The vulnerability stems from improper PAM (Pluggable Authentication Modules) authorization handling in the authentication system. The issue was specifically related to the authentication process implementation, which was corrected through modifications in the PAM authentication flow (Github Commit).

Impact

The vulnerability could potentially allow unauthorized access to the affected systems due to improper authorization handling in the PAM authentication system (Huntr Report).

Mitigation and workarounds

The vulnerability has been patched in version 0.12.5 of gogs/gogs. Users are advised to upgrade to this version or later to address the security issue. The fix involves proper implementation of PAM authorization handling as demonstrated in the patch (Github Commit).

Additional resources


SourceThis report was generated using AI

Related Gogs vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-56731CRITICAL9.8
  • GogsGogs
  • gogs.io/gogs
NoYesJun 24, 2025
CVE-2024-44625HIGH8.8
  • GogsGogs
  • gogs
NoYesNov 15, 2024
CVE-2025-8110HIGH8.7
  • GogsGogs
  • gogs
YesNoDec 10, 2025
CVE-2024-55947HIGH8.7
  • GogsGogs
  • gogs.io/gogs
NoYesDec 23, 2024
CVE-2024-54148HIGH8.7
  • GogsGogs
  • gogs.io/gogs
NoYesDec 23, 2024

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