p PatchFirst

CVE-2026-70402

CVE-2026-70402 · Gitea local code execution through writable Git hooks

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 5.8 · Medium · EPSS 0.2%

Published
Updated

Affected products and versions

  • gitea

    Versions
    • ≥ 0, ≤ 1.27.2: Affected (semver)

    No fix published

Original sources

Check your server →