Improper Authorization in Gogs
Summary
GHSA-65f3-3278-7m65: Duplicate Advisory: Improper Authorization in Gogs. Affects gogs.io/gogs versions < 0.12.5. Fixed in 0.12.5. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Gogs is an open-source self-hosted Git service written in Go. It provides a lightweight and efficient way to manage repositories, users, and organizations. This vulnerability affects Gogs installations that use PAM as authentication sources.
Vulnerability Detail
The vulnerability in Gogs allows expired PAM accounts and accounts with expired passwords to be seen as valid. This can lead to unauthorized access and compromise of sensitive information. The issue has a CVSS score of 8.2, indicating a high severity level.
How To Fix
Latest published version: v0.13.3 as of 22 Oct 2026
go get gogs.io/gogs@v0.13.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
0.12.5
This is the first release that contains the fix.
go get gogs.io/gogs@v0.12.5
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
In addition to marking PAM accounts as expired, it is recommended to also disable or lock them. This can be done by running the command 'usermod -L <username>'. This command adds an exclamation mark to the password hash, resulting in incorrect password responses when attempting to login.
Conclusion
The vulnerability in Gogs allows expired PAM accounts and accounts with expired passwords to be considered valid, potentially leading to unauthorized access. It is recommended to upgrade to the latest version of Gogs and follow the provided workaround to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.
See every vulnerability recorded for gogs.io/gogs →
FAQ
The vulnerability allows expired PAM accounts and accounts with expired passwords to be seen as valid, potentially leading to unauthorized access.
Upgrade to version 0.12.5 or the latest 0.13.0+dev of Gogs.
Yes, in addition to marking PAM accounts as expired, you can also disable or lock them using the 'usermod -L <username>' command.
For more information, you can refer to the advisory on the Gogs GitHub repository: https://github.com/gogs/gogs/issues/6810
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.
Related vulnerabilities
Recent vulnerabilities recorded for gogs.io/gogs.