Résumé
Gitea before 1.26.2 has an authorization bypass in its "Allow edits from maintainers" pull-request feature (CVE-2026-26231). The maintainer edit permission was not properly scoped, so a user could push unauthorized commits to any repository they could merely read. In effect, read access to a repo could be turned into write access through a crafted pull request.
Comment le corriger
- Upgrade Gitea to 1.26.2 or later, which adds the missing authorization check.
- Audit affected repositories for unexpected commits made through pull requests during the exposure window, and review your maintainer-edit settings.
- If you cannot upgrade immediately, restrict who can open pull requests and tighten repository read access.
Comment l’éviter dans votre code
- Enforce authorization on every write path, including indirect ones like maintainer edits, fork syncs, and merge actions; never infer write rights from read access.
- Apply least-privilege repository permissions and keep read and write grants explicit and separate.
- Keep self-hosted forge software (Gitea, Forgejo, GitLab) patched promptly; code-hosting platforms are high-value targets.
Références
Vulnérabilités liées
Tout Supply chain →- MEDIUMCVE-2026-82394
Sulu: Fix authorization bypass when creating preview links
- HIGHCVE-2026-81892
EasyAdmin custom-action dispatcher bypasses access_control on other routes
- HIGHCVE-2026-55638
9router: Unauthenticated LLM proxy access via /codex rewrite authorization bypass
- HIGHGHSA-fm29-4mq3-phg6
Winter: ImportExportController AJAX handlers bypass granular import/export permission gate
- HIGHCVE-2026-70494
Open WebUI: A folder write-collaborator can permanently delete the owner's chats by deleting a shared subfolder
- MEDIUMCVE-2026-70484
Open WebUI: Users denied the image-generation permission can still generate images via chat completions