Description
Gitea resolved the principals of an SSH certificate by searching the content of all stored public keys instead of only principal keys. When Gitea trusts a user certificate authority (`SSH_TRUSTED_USER_CA_KEYS`) and accepts arbitrary principals (`SSH_AUTHORIZED_PRINCIPALS_ALLOW=anything`), a user could register another user's public key line as their own principal, or a holder of a certificate signed by that authority could list it, and then authenticate as the owner of that key through the HTTP signature API and the built-in SSH server. Instances that do not trust a user certificate authority are not affected.
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | 0 to <=28.1.0 [affected] |
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-vcp6-2qc6-gvq3 (vendor-advisory)
- https://github.com/go-gitea/gitea/pull/39839 (patch)
- https://github.com/go-gitea/gitea/pull/39847 (patch)
- https://blog.gitea.com/release-of-28.2.0/ (release-notes)
- https://github.com/go-gitea/gitea/releases/tag/v28.2.0 (release-notes)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 19 Oct 2026 07:04 UTC.