PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-125423 Gitea CVE debrief

A Gitea vulnerability allows command execution through repository auto-initialization. A user with repository creation permissions can push a crafted tree during the initialization window, potentially overwriting server-side git hooks and running commands as the Gitea system user. The vulnerability occurs when a repository is created with auto-init, allowing an attacker to execute commands as the Gitea system user. This could lead to unauthorized command execution and potential overwrite of server-side git hooks.

Vendor
Gitea
Product
Unknown
CVSS
Unknown
CISA KEV
Not listed in stored evidence
Original CVE published
2026-11-15
Original CVE updated
2026-11-16
Advisory published
2026-11-15
Advisory updated
2026-11-16

Who should care

Gitea administrators and users with repository creation permissions should assess exposure and prioritize upgrading to version 28.4.0 or later. Defenders should care about CVE-2026-125423 as it allows command execution through repository auto-initialization in Gitea, potentially leading to unauthorized command execution as the Gitea system user.

Why it matters

Defenders should care about CVE-2026-125423 as it allows command execution through repository auto-initialization in Gitea, potentially leading to unauthorized command execution as the Gitea system user. Gitea administrators and users with repository creation permissions should assess exposure and prioritize upgrading to version 28.4.0 or later.

  • Potential command execution as Gitea system user
  • Possible overwrite of server-side git hooks
  • Required verification of Gitea deployments
  • Necessity to restrict repository creation to trusted users

Technical summary

The vulnerability occurs during repository auto-initialization in Gitea. An attacker can push a crafted tree, potentially overwriting server-side git hooks and running commands as the Gitea system user. This is possible when a repository is created with auto-init, and the initial commit is built in a checkout of whatever the repository already contained. The initial commit is now built in a freshly initialized directory, and a new repository only becomes ready, and accepts pushes, once its initialization is complete.

Defensive priority

Defenders should prioritize verifying Gitea deployments, especially those with untrusted users, and upgrading to version 28.4.0 or later.

Recommended defensive actions

  • Verify Gitea deployments for version 28.4.0 or later
  • Restrict repository creation to trusted users
  • Monitor Gitea logs for suspicious activity
  • Review compensating controls for exposed systems
  • Check relevant monitoring, detection, and logs for exposed assets
  • Track exceptions, retest remediated assets
  • Confirm whether affected product deployments exist in managed environments

Evidence notes

The CVE record and Gitea advisory provide details on the vulnerability. The NVD entry is currently empty. Evidence is limited, and defenders should verify Gitea deployments, especially those with untrusted users, and consider upgrading to version 28.4.0 or later. Additional verification of repository creation permissions and monitoring of Gitea logs for suspicious activity is recommended.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-125423 CVE Program record

    Publisher, destination, and source semantics verified

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

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

  • CVE-2026-125423 NVD vulnerability detail

    Publisher, destination, and source semantics verified

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

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

Supplemental references

  • Gitea command execution through repository auto-initialization

    Unverified legacy reference

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

    cve_program_cvelist_v5

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946

    Supplemental source - vendor-advisory

  • Source reference

    Unverified legacy reference

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

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

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

    Supplemental source - patch

  • Source reference

    Unverified legacy reference

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

    Supplemental source - release-notes

  • Source reference

    Unverified legacy reference

    URL: https://github.com/go-gitea/gitea/releases/tag/v28.4.0

    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.