All vulnerabilities

Servers and applications

GHSA-f9cv-gfvg-3464

Deactivated / login-prohibited accounts retain full Git access via personal access tokens and SSH keys

Severity
High 8.1
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Weakness
Improper access control (CWE-284)Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Sources
Project advisories (GitHub)

Description

When an administrator uses the account controls "Prohibit Login" or "Deactivate" (unchecking This account is activated) on a user, Gogs only stops that user from signing in through the web UI. The user's existing personal access tokens and SSH keys keep working, so the account still has full read and write access to repositories over the API, Git-over-HTTP, Git-over-SSH, and Git LFS. There is no way through these controls for an admin to actually cut off a user's access — the only way is to manually delete every one of that user's access tokens and SSH keys.

This defeats the purpose of these controls for offboarding a departing user or locking out a compromised account.

  • An admin who prohibits/deactivates an account reasonably believes the account is locked out, but it is not: the user (or an attacker holding a stolen token or SSH key) can still clone and push to every repository the account could reach.
From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.3

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,097,312Docker Hub, 22 Nov 2026
GitHub stars
47,981GitHub, 22 Nov 2026
Forks
5,081GitHub, 22 Nov 2026
Latest release
v0.14.4GitHub, 22 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References