Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2026-70402

Gitea local code execution through writable Git hooks

Medium5.8EPSS 0.19%
Published
Updated
Reserved
Assigned by
Gitea

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.

Scores

CVSS scores of CVE-2026-70402, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1Medium5.8CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
NVDNVD · Deferred3.1Medium5.8CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
EPSS (exploitation in 30 days)
0.19% · top 91% of all CVEs (6 Nov 2026)
CISA SSVC
Exploitation: none · Automatable: no · Technical impact: partial
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.8.

Weakness

Affected products

References (5)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2026-70402 badge
[![CVE-2026-70402](https://trackcve.app/badge/CVE-2026-70402.svg)](https://trackcve.app/cve/CVE-2026-70402)

Record last updated .