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.
History

Sun, 18 Oct 2026 03:30:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Wed, 14 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.8, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 14 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Description 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.
Title Gitea local code execution through writable Git hooks
Weaknesses CWE-732
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published: 2026-10-14T14:36:46.774Z

Updated: 2026-10-14T15:03:17.928Z

Reserved: 2026-08-13T16:50:59.184Z

Link: CVE-2026-70402

cve-icon Vulnrichment

Updated: 2026-10-14T14:55:25.687Z

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:22.467

Modified: 2026-10-14T16:17:51.930

Link: CVE-2026-70402

cve-icon Redhat

No data.