Skip to content
OpenAdvisories
Critical · 9.8 CVE-2022-42968 BIT-gitea-2022-42968EUVD-2022-7173GHSA-w8xw-7crf-h23xGO-2022-1065

Gitea vulnerable to Argument Injection

Published Oct 16, 2022 · Updated May 14, 2025 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References