Bug 2552343 (CVE-2026-70406) - CVE-2026-70406 code.gitea.io/gitea: Gitea: Token scope restriction bypass via repository comparison
Summary: CVE-2026-70406 code.gitea.io/gitea: Gitea: Token scope restriction bypass via...
Keywords:
Status: NEW
Alias: CVE-2026-70406
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-14 14:43 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:14 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-14 14:43:37 UTC
Gitea's shared comparison helper omits the token repository-access check used when updating pull requests. A public-only token with read:repository scope can route a comparison or pull request creation through a public base repository and retrieve commit history and diffs from a private head repository accessible to the token owner. This bypasses the token's public-only restriction; it does not remove the account's underlying repository permission checks.


Note You need to log in before you can comment on or make changes to this bug.