CVE-2026-22547
Gitea repository creation accepts insufficiently validated fields
Severity by source
Trivy's own label is CRITICAL. Rated critical by GHSA.
Description
Gitea versions before 1.25.5 lack validation constraints for repository creation fields, including length-limited template fields and trust model or object format values.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| go::GitHub Security Advisory Go | code.gitea.io/gitea | 1.25.5 |
| rapidfort alpine 3.20 | gitea | 1.27.1-r0 |
| rapidfort alpine 3.21 | gitea | 1.27.1-r0 |
| rapidfort alpine 3.22 | gitea | 1.27.1-r0 |
| rapidfort alpine 3.23 | gitea | 1.27.1-r0 |
| rapidfort alpine 3.24 | gitea | 1.27.1-r0 |
References
- https://blog.gitea.com/release-of-1.25.5
- https://blog.gitea.com/release-of-1.25.5/
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/commit/569c49debe06f30a2bbb50b3812e705c556b8adf
- https://github.com/go-gitea/gitea/commit/b3bc79262d106f4259f82a26609e4738b618152b
- https://github.com/go-gitea/gitea/pull/36671
- https://github.com/go-gitea/gitea/pull/36757
- https://github.com/go-gitea/gitea/releases/tag/v1.25.5