CVE-2026-125423
published high CVSS 3.1 · 8.8Gitea command execution through repository auto-initialization
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 0 to < 28.4.0 · Other versions: unaffected | Affected | Not stated | Gitea |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 to < 28.4.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
2- CWE-59 CWE-59: Improper Link Resolution Before File Access ('Link Following')
- CWE-362 CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
References
5- Gitea 28.4.0 release announcement https://blog.gitea.com/release-of-28.4.0/
- Fix: go-gitea/gitea pull request #40376 https://github.com/go-gitea/gitea/pull/40376
- Fix backport to release/v28: go-gitea/gitea pull request #40383 https://github.com/go-gitea/gitea/pull/40383
- go-gitea/gitea v28.4.0 release https://github.com/go-gitea/gitea/releases/tag/v28.4.0
- GitHub Security Advisory GHSA-6m4f-m9vc-7946 https://github.com/go-gitea/gitea/security/advisories/GHSA-6m4f-m9vc-7946
Provider assertions
2Gitea · cna
Gitea command execution through repository auto-initialization
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2afac6de6063fce7d670cc335093f1c8aa91b5b3e515cde5ea35c01af6a60a22
- Ingested
- 16 Nov 2026, 22:49:57 UTC
- Source record
- Official CVE record