Back to CVE records
Medium 5.8Published Oct 14, 2026

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

Updated under an hour ago ()

Does this affect you?

It affects Gitea. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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 (v3.1, CISA ADP)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
Weakness (CWE)
CWE-732
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
Gitea
NVD analysis
Deferred
Record last updated
Oct 14, 2026
First seen by InfoSec Signals
Oct 14, 2026

Affected products

Affected products
Gitea Gitea
gitea:gitea (from the name)
through 1.27.2
CNA record

References

  • vendor-advisory
  • release-notes
  • patch
  • patch
  • release-notes

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.