Servers and applications
GHSA-pmfh-wh5m-gmjm
Password-reset code doubles as a login token through account activation, bypassing the password and 2FA
- Severity
- High 7.4
- Published
- 24 Nov 2026
- Last changed
- 24 Nov 2026
- Added to UpHeron
- 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Sources
- Project advisories (GitHub)
Description
Account-activation codes and password-reset codes are the same token. The activation endpoint accepts any valid code, including for an account that is already active, and signs the holder in. It never asks for the second factor.
So anyone holding a user's password-reset link gets a full session as that user, with no password and no TOTP, and the password stays unchanged. The victim sees nothing. 2FA exists to stop exactly this case: an attacker who has access to the victim's mailbox.
Reproduced on v0.14.3 through GET /user/activate?code=, and on main @ dbbd717e through POST /api/web/user/activate/complete.
userx.GenerateActivateCode produces both the activation code and the reset code, and verifyUserActiveCode verifies both. GHSA-5c3f-6486-3g7g documents this sharing for the lifetime issue.
The activation handlers then do the following.
v0.14.3, internal/route/user/auth.go, Activate:
main, cmd/gogs/internal/web/webapi_user.go, postUserActivateComplete:
Affected software
| Software | Affected versions |
|---|---|
GogsServers and applications · github:gogs/gogs |
|
About Gogs
free forge based on Git written in Go
- 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
Website Source code Docker image
Vulnerabilities in Gogs
- In our list
- 102
- Published in the last 12 months
- 68
- Critical, last 12 months
- 7
- High, last 12 months
- 29
- Known exploited
- 1
- GHSA-85m5-cfw6-3cx8Windows-only incomplete fix: ".git " (trailing space) bypasses isRepositoryGitPath -> write into .git/config -> RCELow 24 Nov 2026
- CVE-2026-84362Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') in gogs.io/gogsMedium 4.3 24 Nov 2026
- GHSA-p92p-7887-3g33gogs/gogs: Attachment UUID rebinding downloads private-repo attachments (incomplete fix of CVE-2026-52799 / GHSA-p9f5)Medium 5.9 24 Nov 2026
- GHSA-53f6-cgcf-gp6vCommit-message issue references post comments into private repositories the pusher cannot accessMedium 5.4 24 Nov 2026
- GHSA-fv2v-vwmj-j74pGogs repository AutoInit template path traversal allows arbitrary file read on WindowsMedium 6.5 24 Nov 2026
- GHSA-f9cv-gfvg-3464Deactivated / login-prohibited accounts retain full Git access via personal access tokens and SSH keysHigh 8.1 24 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-pmfh-wh5m-gmjm
- github.com https://github.com/gogs/gogs/security/advisories/GHSA-pmfh-wh5m-gmjm