Improper Authorization in Gogs

gogs.io/gogs Updated 02 Oct 2025

Summary

12/03/2022
HIGH
Yes i
High
8.2

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 ↓

Free scan

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.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 →

Share this vulnerability

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.

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 →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback