CVE-2019-14544: Insecure Permissions in Gogs
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5321%
CWE
Published
5/18/2021
Updated
1/9/2023
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
gogs.io/gogs | go | < 0.11.91 | 0.11.91 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from using site-wide admin checks (reqAdmin) instead of repository-specific admin checks (reqRepoAdmin) for sensitive repository operations. The commit c3af3ff
shows replacements of reqAdmin()
with reqRepoAdmin()
in three critical route groups: 1) /hooks
endpoints, 2) /collaborators
endpoints, and 3) /keys
(deploy keys) endpoints. These routes required repository admin permissions but were previously guarded by global admin checks, allowing unauthorized access to repository management functions through the API.