Description
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | gitea | 1.17.3-r0 | — |
| Alpine v3.23 | gitea | 1.17.3-r0 | — |
| Alpine v3.22 | gitea | 1.17.3-r0 | — |
| Alpine v3.21 | gitea | 1.17.3-r0 | — |
| Alpine v3.20 | gitea | 1.17.3-r0 | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | gitea | 1.17.3-r0 | — |
| Alpine v3.18 | gitea | 1.17.3-r0 | — |
| Alpine v3.17 | gitea | 1.17.3-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | code.gitea.io/gitea | < 1.17.3 | 1.17.3 | GO-2022-1065 |
| Go | github.com/go-gitea/gitea | < 1.17.3 | 1.17.3 | GHSA-w8xw-7crf-h23x |