← All CVEs

CVE-2026-70402

MEDIUM 5.8

Published 2026-10-14 · Last modified 2026-10-14

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.

NO EXPLOITATION SIGNALS

No known exploitation, public exploit, or elevated probability at this time. Track for changes.

Exploitation likelihood

0.2%chance of exploitation in 30 days · 8th percentile

○ In CISA KEV ○ Public exploit / PoC

Impact if exploited

5.8CVSS 3.1 · MEDIUM

  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityLow

What an attacker needs

  • ⚠Access: Requires local access to the host
  • ⚠Privileges: Requires a low-privilege account
  • ✓User interaction: No user interaction needed
  • ⚠Complexity: Needs a race window or specific setup

✓ lowers the bar for an attacker · ⚠ raises it

Proof of concept & exploit code

Test against your own equipment

curl -s https://vulnpedia.com/cve/CVE-2026-70402/poc.jsonMachine-readable PoC index for this CVE (for automation).

Listed for defensive triage, patch verification, and authorized testing on systems you own. Machine-readable: /cve/CVE-2026-70402/poc.json

Affected

Vendors Gitea

Products Gitea

Weakness (CWE)

  • CWE-732: : Incorrect Permission Assignment for Critical Resource

CVSS vector

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L

All CVSS metrics

  • MEDIUM 5.8 v3.1 · ADP Primary
    CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L
  • MEDIUM 5.8 v3.1 · NVD Secondary
    CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L

Sources: NVD · CVE.org · EPSS