Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2026-70402 Details

ANALYZED


This CVE record has been analyzed and enriched by NVDAPI.com as an independent party.

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.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://blog.gitea.com/release-of-1.27.3/ Gitea LimitedRelease NotesVendor
https://github.com/go-gitea/gitea/pull/39008 Gitea LimitedIssue TrackingVendor
https://github.com/go-gitea/gitea/pull/39016 Gitea LimitedIssue TrackingVendor
https://github.com/go-gitea/gitea/releases/tag/v1.27.3 Gitea LimitedRelease NotesVendor
https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh Gitea LimitedAdvisoryRemedyVendor

Weakness Enumeration

CWE-IDCWE NameSource
CWE-732Incorrect Permission Assignment for Critical ResourceGitea Limited

Affected Products

ProductVersions
Gitea
<= 1.27.2 (semver)

CPE

  • cpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:*

Remediation

  • Upgrade: 1.27.3moderate effort
  • Mitigation:low effort

    Run Gitea with a restrictive umask (e.g., 0022) and ensure repository storage is not writable by untrusted local users.

Change History

2 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2026-70402
NVD Published Date:
Oct 14, 2026
NVD Last Modified:
Oct 14, 2026
Source:
Gitea Limited