GHSA-958j-443g-7mm7

Suggest an improvement
Source
https://github.com/advisories/GHSA-958j-443g-7mm7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/06/GHSA-958j-443g-7mm7/GHSA-958j-443g-7mm7.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-958j-443g-7mm7
Aliases
Published
2022-06-02T20:50:21Z
Modified
2024-11-15T18:01:29Z
Severity
  • 10.0 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
OS Command Injection in gogs
Details

Impact

The malicious user is able to upload a crafted config file into repository's .git directory with to gain SSH access to the server. All Windows installations with repository upload enabled (default) are affected.

Patches

Repository file uploads are prohibited to its .git directory. Users should upgrade to 0.12.8 or the latest 0.13.0+dev.

Workarounds

Disable repository files upload.

References

https://www.huntr.dev/bounties/9cd4e7b7-0979-4e5e-9a1c-388b58dea76b/

For more information

If you have any questions or comments about this advisory, please post on #6968.

Database specific
{
    "nvd_published_at": "2024-11-15T11:15:07Z",
    "cwe_ids": [
        "CWE-77",
        "CWE-78"
    ],
    "severity": "CRITICAL",
    "github_reviewed": true,
    "github_reviewed_at": "2022-06-02T20:50:21Z"
}
References

Affected packages

Go / gogs.io/gogs

Package

Name
gogs.io/gogs
View open source insights on deps.dev
Purl
pkg:golang/gogs.io/gogs

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.12.8