CVE-2026-70402

medium

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.

References

https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh

https://github.com/go-gitea/gitea/releases/tag/v1.27.3

https://github.com/go-gitea/gitea/pull/39016

https://github.com/go-gitea/gitea/pull/39008

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-101095

https://blog.gitea.com/release-of-1.27.3/

Details

Source: Mitre, NVD

Published: 2026-10-14

Updated: 2026-10-14

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:L/AC:H/Au:S/C:P/I:C/A:P

Severity: Medium

CVSS v3

Base Score: 5.8

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L

Severity: Medium

EPSS

EPSS: 0.00189