Bug 2552325 (CVE-2026-70402) - CVE-2026-70402 code.gitea.io/gitea: Gitea: Privilege escalation via insecure Git hook directory permissions
Summary: CVE-2026-70402 code.gitea.io/gitea: Gitea: Privilege escalation via insecure ...
Keywords:
Status: NEW
Alias: CVE-2026-70402
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:41 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:41:56 UTC
Gitea creates server-side Git hook directories and scripts with mode 0777 and relies on the process umask to restrict access. With a permissive umask such as 0000 or 0002, another local user who can reach the repository storage may modify a hook or add an executable to a writable hook directory. A later Git operation can execute that file as the Gitea service account.


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