CVE-2026-109553: Gitea SSH certificate principal impersonation of other users

Published Oct 18, 2026
·
Updated

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 (SSHTRUSTEDUSERCAKEYS) and accepts arbitrary principals (SSHAUTHORIZEDPRINCIPALSALLOW=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 Software

1 affected component
Gitea Gitea

Event History

Oct 18, 2026
CVE Published
via MITRE·06:51 PM
Data Sourced
via MITRE·06:51 PM
Description
Data Sourced
via NVD·07:16 PM
Description

Frequently Asked Questions

1

Which deployments are exposed?

Only instances that trust a user certificate authority through SSH_TRUSTED_USER_CA_KEYS are affected. The described impersonation path also requires SSH_AUTHORIZED_PRINCIPALS_ALLOW=anything; instances that do not trust a user certificate authority are not affected.

2

What does an attacker need to impersonate another user?

The attacker must be able to register another user's public-key line as their own principal, or hold a certificate signed by the trusted user certificate authority and list that public-key line as a principal. They can then authenticate as that key's owner through the HTTP signature API and Gitea's built-in SSH server.

3

What can be done before a fix is applied?

Do not trust a user certificate authority via SSH_TRUSTED_USER_CA_KEYS, since instances without a trusted user CA are not affected. Where operationally possible, avoid accepting arbitrary principals with SSH_AUTHORIZED_PRINCIPALS_ALLOW=anything.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203