CVE-2022-42968
gitea: Sanitize and Escape refs in git backend
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Bitnami. Rated lower by Red Hat (medium).
Description
Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | gitea | 1.17.3 |
| go::GitHub Security Advisory Go | github.com/go-gitea/gitea | 1.17.3 |
| alpine 3.17 | gitea | 1.17.3-r0 |
| alpine 3.18 | gitea | 1.17.3-r0 |
| alpine 3.19 | gitea | 1.17.3-r0 |
| alpine 3.20 | gitea | 1.17.3-r0 |
| alpine 3.21 | gitea | 1.17.3-r0 |
| alpine 3.22 | gitea | 1.17.3-r0 |
| alpine 3.23 | gitea | 1.17.3-r0 |
| alpine 3.24 | gitea | 1.17.3-r0 |
| alpine edge | gitea | 1.17.3-r0 |
References
- https://access.redhat.com/security/cve/CVE-2022-42968
- https://github.com/advisories/GHSA-w8xw-7crf-h23x
- https://github.com/go-gitea/gitea
- https://github.com/go-gitea/gitea/pull/21463
- https://github.com/go-gitea/gitea/releases/tag/v1.17.3
- https://nvd.nist.gov/vuln/detail/CVE-2022-42968
- https://security.gentoo.org/glsa/202210-14
- https://www.cve.org/CVERecord?id=CVE-2022-42968