CVE-2026-109553 Gitea SSH certificate principal impersonation of other users
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
1 package: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| Gitea | <= 28.1.0 | after 28.1.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| Gitea | <= 28.1.0 | No fix listed |
References
- GitHub Security Advisory GHSA-vcp6-2qc6-gvq3 vendor-advisory
- Fix: go-gitea/gitea pull request #39839 patch
- Fix backport to release/v28: go-gitea/gitea pull request #39847 patch
- Gitea 28.2.0 release announcement release-notes
- go-gitea/gitea v28.2.0 release release-notes
- ENISA EUVD EUVD-2026-103983 third-party-advisory