PatchSiren cyber security CVE debrief
CVE-2026-123002 Gitea CVE debrief
CVE-2026-123002: Gitea missing attempt limit for TOTP passcodes. Gitea accepted an unlimited number of wrong TOTP passcodes during sign-in, in the password reset flow and for Basic authentication with the `X-Gitea-OTP` header. An attacker who already knows an account's password could guess the six-digit passcode by trying codes at a high rate and sign in despite two-factor authentication. After five failed passcodes, further attempts for the account are now refused for 15 minutes.
- Vendor
- Gitea
- Product
- Unknown
- CVSS
- Unknown
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-15
- Original CVE updated
- 2026-11-16
- Advisory published
- 2026-11-15
- Advisory updated
- 2026-11-16
Who should care
Defenders responsible for Gitea instances, particularly those exposed to untrusted networks, should assess their two-factor authentication implementation and verify exposure to potential attacks.
Why it matters
CVE-2026-123002 is a vulnerability in Gitea that allows an attacker to bypass two-factor authentication by trying a large number of TOTP passcodes. Defenders should prioritize verifying exposure of Gitea instances to untrusted networks and assessing the effectiveness of their two-factor authentication implementation.
- An attacker with knowledge of a user's password could potentially bypass two-factor authentication by trying a large number of TOTP passcodes.
- Successful exploitation could allow an attacker to gain unauthorized access to Gitea accounts.
- Defenders should verify the effectiveness of their two-factor authentication implementation to prevent unauthorized access.
- Gitea instances exposed to untrusted networks are at higher risk of exploitation.
Technical summary
Gitea accepted an unlimited number of wrong TOTP passcodes during sign-in, in the password reset flow and for Basic authentication with the `X-Gitea-OTP` header. An attacker who already knows an account's password could guess the six-digit passcode by trying codes at a high rate and sign in despite two-factor authentication. After five failed passcodes, further attempts for the account are now refused for 15 minutes.
Defensive priority
Defenders should prioritize verifying exposure of Gitea instances to untrusted networks and assessing the effectiveness of their two-factor authentication implementation.
Recommended defensive actions
- Verify Gitea instance exposure to untrusted networks
- Assess two-factor authentication implementation effectiveness
- Implement rate limiting for TOTP passcode attempts
- Monitor for suspicious login activity
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record and source item provide details on the vulnerability, including its description and affected versions. However, the information is limited, and defenders should verify the exposure of Gitea instances to untrusted networks and assess the effectiveness of their two-factor authentication implementation. The CVE Program record and NVD detail page offer additional context, but specific details about affected versions and patch information are not provided. Defenders should consult the vendor advisory and patch information,
Sources and references
Verified primary and authoritative sources
-
CVE-2026-123002 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-123002
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-123002 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-123002
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Gitea missing attempt limit for TOTP passcodes
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/123xxx/CVE-2026-123002.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-5mx6-8rwm-52wf
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/39993
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/pull/40374
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://blog.gitea.com/release-of-28.4.0/
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/go-gitea/gitea/releases/tag/v28.4.0
Supplemental source - release-notes
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.