PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-70402 Gitea CVE debrief

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.

Vendor
Gitea
Product
Unknown
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-10-14
Original CVE updated
2026-10-14
Advisory published
2026-10-14
Advisory updated
2026-10-14

Who should care

System administrators and security teams responsible for Gitea servers should assess exposure and implement necessary mitigations. This includes verifying and adjusting Gitea server configurations, especially umask settings, and ensuring proper access controls are in place to prevent local code execution. Additionally, operators and platform administrators should review and apply patches or updates provided by the vendor, and ensure that monitoring and log

Why it matters

Defenders should prioritize verifying and adjusting Gitea server configurations, especially umask settings, and ensure proper access controls are in place to prevent local code execution.

  • Local code execution as the Gitea service account
  • Potential for unauthorized access to repository storage
  • Need for verifying and adjusting Gitea server configurations

Technical summary

Gitea creates server-side Git hook directories and scripts with mode 0777, relying on the process umask to restrict access. A local user with access to repository storage can exploit a permissive umask to modify hooks or add executables, leading to code execution as the Gitea service account. This vulnerability affects Gitea servers with a permissive umask such as 0000 or 0002. System administrators should assess exposure and implement necessary mitigations to prevent local code execution. The CVE record and source item provide details on the vulnerability, including its description and affected versions.

Defensive priority

Defenders should prioritize verifying and adjusting Gitea server configurations, especially umask settings, and ensure proper access controls are in place.

Recommended defensive actions

  • Verify and adjust Gitea server umask settings to prevent unauthorized access to Git hook directories and scripts.
  • Ensure proper access controls are in place for repository storage.
  • Review and apply patches or updates provided by the vendor.
  • Review compensating controls for exposed systems while remediation is scheduled and verified.
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review.
  • Track exceptions, retest remediated assets, and close the item only after evidence is documented.
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up.

Evidence notes

The CVE record and source item provide details on the vulnerability, including its description and affected versions. However, additional information from vendor sources may be necessary for comprehensive risk assessment.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-70402 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-70402

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-70402 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-70402

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

  • Gitea local code execution through writable Git hooks

    Unverified legacy reference

    URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/70xxx/CVE-2026-70402.json

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-pq8x-xpgp-rvmh

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

    URL: https://blog.gitea.com/release-of-1.27.3/

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/pull/39008

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/pull/39016

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/releases/tag/v1.27.3

    Supplemental source - release-notes

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.