Introducing Wiz for Exposure Management: Unify, prioritize, and remediate exposures everywhere.

CVE-2022-1986
Gogs vulnerability analysis and mitigation

Overview

CVE-2022-1986 is an OS Command Injection vulnerability affecting the GitHub repository gogs/gogs in versions prior to 0.12.9. The vulnerability was discovered and reported on June 3, 2022 (CVE Mitre).

Technical details

The vulnerability is related to improper validation of file paths in the repository's file editor functionality. The issue was fixed in version 0.12.9 through improved validation of path separators and git-related paths (GitHub Commit).

Impact

This vulnerability allows attackers to perform OS Command Injection attacks against affected Gogs installations, potentially leading to unauthorized command execution on the hosting system (Huntr).

Mitigation and workarounds

Users are advised to upgrade their Gogs installations to version 0.12.9 or later to address this vulnerability. The fix includes improved validation of repository paths and handling of path separators across different operating systems (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