VulnWatch by ve1ve2
high 8.8 EPSS 0.44%

CVE-2026-125423: 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 repo…

Source:
NVD CVE API 2.0
Published:
Fetched:
Updated:

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

CWE-59CWE-362

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. References: https://blog.gitea.com/release-of-28.4.0/ https://github.com/go-gitea/gitea/pull/40376 https://github.com/go-gitea/gitea/pull/40383 https://github.com/go-gitea/gitea/releases/tag/v28.4.0 https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946

Linked vulnerabilities (2)

CVE-2026-125423 high 8.8 EPSS 0.44% (p39) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

CWE: CWE-59, CWE-362Aliases: GHSA-6m4f-m9vc-7946NVD: Deferred