CVE Catalog

CVE-2026-125423

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.44%

40th percentile - higher than 40% of all known CVEs

Summary

A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built in a checkout of whatever the repository already contained. A user allowed to create repositories could push a crafted tree during that window so that writing the README followed a symbolic link and overwrote a server-side git hook, which runs commands as the Gitea system user.

Risk Assessment

Possible overwriting of git hooks and execution of arbitrary commands as the Gitea system user, potentially leading to server compromise by a user who can create repositories.

Recommendation

Update Gitea to a version with the fix where the initial commit is built in a freshly initialized directory and a new repository only accepts pushes once initialization is complete.

Other vulnerabilities in Gitea

See all
Original NVD description (English source)

A repository created with auto-init accepted pushes before its initialization had finished, and the initial commit was built in a checkout of whatever the repository already contained. A user who is allowed to create repositories could push a crafted tree during that window so that writing the README followed a symbolic link and overwrote a server-side git hook, which runs commands as the Gitea system user. 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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS