CVE-2026-70402
Last modified
CVE-2026-70402 is a medium-severity vulnerability rated 5.8/10 on the CVSS scale. 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.
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
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea | <= 1.27.2 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-70402?
How severe is CVE-2026-70402?
How do I fix CVE-2026-70402?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-70395Improper Neutralization of Special Elements in Data Query Lo…2.1
- CVE-2026-70396Gitea's organization repository-creation API requires write:…5.4
- CVE-2026-70398A flaw was found in multicloud-integrations, a component of …9.6
- CVE-2026-70399Allocation of Resources Without Limits or Throttling vulnera…8.7
- CVE-2026-7040Text::Minify::XS versions from 0.3.0 before 0.7.8 for Perl h…7.5
- CVE-2026-70400Gitea's repository migration API accepts a public-only token…5.4
- CVE-2026-70403XING CPTrans-ME-X contains a Use of Hard-coded Password (CWE…9.3
- CVE-2026-70405Improper Validation of Specified Quantity in Input vulnerabi…6.3
- CVE-2026-70406Gitea's shared comparison helper omits the token repository-…6.5
- CVE-2026-70407Gitea's organization-list API does not enforce the read:orga…4.3
- CVE-2026-70408An incorrect authorization vulnerability exists in acmailer,…8.7
- CVE-2026-70409Improper Validation of Specified Quantity in Input vulnerabi…6.3
Are you affected by CVE-2026-70402?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
