{"id":"CVE-2022-42968","aliases":["ALPINE-CVE-2022-42968","BIT-gitea-2022-42968","GHSA-w8xw-7crf-h23x","GO-2022-1065"],"summary":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend.","published_at":"2022-10-16T00:00:00Z","modified_at":"2026-11-18T05:18:11.361987Z","products":[],"rating":{"severity":"critical","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.014310000464320183,"percentile":0.7360799908638,"date":"2026-11-19T00:00:00Z"},"priority":11.8,"details":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","affected_stack":[],"affected_other":[{"ecosystem":"Alpine:v3.17","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.18","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.19","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.20","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.21","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.22","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.23","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.24","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Bitnami","package":"gitea","purl":"pkg:bitnami/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"BIT-gitea-2022-42968","relation":"self"},{"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"GO-2022-1065","relation":"self"},{"ecosystem":"Go","package":"github.com/go-gitea/gitea","purl":"pkg:golang/github.com/go-gitea/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"GHSA-w8xw-7crf-h23x","relation":"self"},{"ecosystem":"NVD","package":"gitea:gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"nvd","source":"CVE-2022-42968","relation":"self"}],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/lokistack-gateway-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/client-kn-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["acm-search-v2-operator-container"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"not_affected","packages":["advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-scanner-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"not_affected","packages":["openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-kam"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["quay/quay-builder-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-42968","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-42968","license":"CC-BY-4.0","published_at":"2022-10-16T00:00:00Z","modified_at":"2025-05-14T14:34:03.454Z","summary":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend.","details":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CISA-ADP:CVE-2022-42968"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/21463"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-14"}]},{"provider":"nvd","source_id":"CVE-2022-42968","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968","severity":[],"affected":[{"ecosystem":"NVD","package":"gitea:gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"nvd","source":"CVE-2022-42968","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"ALPINE-CVE-2022-42968","relation":"self","url":"https://osv.dev/vulnerability/ALPINE-CVE-2022-42968","published_at":"2022-10-16T04:15:09.347Z","modified_at":"2026-11-18T05:18:11.361987Z","details":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"ALPINE-CVE-2022-42968"}],"affected":[{"ecosystem":"Alpine:v3.17","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.18","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.19","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.20","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.21","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.22","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.23","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"},{"ecosystem":"Alpine:v3.24","package":"gitea","purl":"pkg:apk/alpine/gitea?arch=source","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17.3-r0"}]}],"fixed":["1.17.3-r0"],"provider":"osv","source":"ALPINE-CVE-2022-42968","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-42968"}]},{"provider":"osv","source_id":"BIT-gitea-2022-42968","relation":"self","url":"https://osv.dev/vulnerability/BIT-gitea-2022-42968","license":"Apache-2.0","published_at":"2024-03-06T10:52:28.405Z","modified_at":"2026-09-08T08:47:33.623707Z","details":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"BIT-gitea-2022-42968"}],"affected":[{"ecosystem":"Bitnami","package":"gitea","purl":"pkg:bitnami/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"BIT-gitea-2022-42968","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/go-gitea/gitea/pull/21463"},{"type":"ADVISORY","url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-14"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968"}]},{"provider":"osv","source_id":"GHSA-w8xw-7crf-h23x","relation":"self","url":"https://osv.dev/vulnerability/GHSA-w8xw-7crf-h23x","license":"CC-BY-4.0","published_at":"2022-10-16T12:00:23Z","modified_at":"2024-08-21T16:28:35.419206Z","summary":"Gitea vulnerable to Argument Injection","details":"Gitea before 1.17.3 does not sanitize and escape refs in the git backend. Arguments to git commands are mishandled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"GHSA-w8xw-7crf-h23x"}],"affected":[{"ecosystem":"Go","package":"github.com/go-gitea/gitea","purl":"pkg:golang/github.com/go-gitea/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"GHSA-w8xw-7crf-h23x","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/21463"},{"type":"PACKAGE","url":"https://github.com/go-gitea/gitea"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202210-14"}]},{"provider":"osv","source_id":"GO-2022-1065","relation":"self","url":"https://osv.dev/vulnerability/GO-2022-1065","license":"CC-BY-4.0","published_at":"2024-08-21T16:03:24Z","modified_at":"2026-03-03T04:52:41.181693Z","summary":"Gitea vulnerable to Argument Injection in code.gitea.io/gitea","details":"Gitea vulnerable to Argument Injection in code.gitea.io/gitea","severity":[],"affected":[{"ecosystem":"Go","package":"code.gitea.io/gitea","purl":"pkg:golang/code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.17.3"}]}],"fixed":["1.17.3"],"provider":"osv","source":"GO-2022-1065","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w8xw-7crf-h23x"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/21463"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202210-14"}]},{"provider":"redhat-vex","source_id":"CVE-2022-42968","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2022-42968","license":"CC-BY-4.0","published_at":"2022-10-16T00:00:00Z","modified_at":"2025-07-29T03:53:39Z","summary":"gitea: Sanitize and Escape refs in git backend","details":"A flaw was found in Gitea. The self-hosted Git service does not sanitize and escape refs in the git backend. This issue could allow an attacker to craft arguments for the git commands, which will be mishandled.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"CVE-2022-42968"},{"type":"Red Hat","score":"Moderate","source":"CVE-2022-42968"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Logging Subsystem for Red Hat OpenShift","cpe":"cpe:/a:redhat:logging:5","status":"not_affected","packages":["openshift-logging/lokistack-gateway-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"OpenShift Serverless","cpe":"cpe:/a:redhat:serverless:1","status":"not_affected","packages":["openshift-serverless-1/client-kn-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Management for Kubernetes 2","cpe":"cpe:/a:redhat:acm:2","status":"not_affected","packages":["acm-search-v2-operator-container"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Advanced Cluster Security 3","cpe":"cpe:/a:redhat:advanced_cluster_security:3","status":"not_affected","packages":["advanced-cluster-security/rhacs-main-rhel8","advanced-cluster-security/rhacs-scanner-rhel8"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat OpenShift GitOps","cpe":"cpe:/a:redhat:openshift_gitops:1","status":"not_affected","packages":["openshift-gitops-1/kam-delivery-rhel8","openshift-gitops-kam"],"package_count":2,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"},{"vendor":"Red Hat","product":"Red Hat Quay 3","cpe":"cpe:/a:redhat:quay:3","status":"not_affected","packages":["quay/quay-builder-rhel8"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2022-42968"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-42968.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-42968"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135739"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-42968"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968"},{"type":"WEB","url":"https://github.com/advisories/GHSA-w8xw-7crf-h23x"}]}],"references":[{"type":"WEB","url":"https://github.com/go-gitea/gitea/pull/21463"},{"type":"WEB","url":"https://github.com/go-gitea/gitea/releases/tag/v1.17.3"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-14"},{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2022-42968"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968"},{"type":"PACKAGE","url":"https://github.com/go-gitea/gitea"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w8xw-7crf-h23x"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-42968.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2022-42968"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2135739"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2022-42968"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-42968","url":"https://www.cve.org/CVERecord?id=CVE-2022-42968","license":"CC-BY-4.0","modified_at":"2025-05-14T14:34:03.454Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-42968","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42968","relation":"self"},{"provider":"osv","source_id":"ALPINE-CVE-2022-42968","url":"https://osv.dev/vulnerability/ALPINE-CVE-2022-42968","modified_at":"2026-11-18T05:18:11.361987Z","relation":"self"},{"provider":"osv","source_id":"BIT-gitea-2022-42968","url":"https://osv.dev/vulnerability/BIT-gitea-2022-42968","license":"Apache-2.0","modified_at":"2026-09-08T08:47:33.623707Z","relation":"self"},{"provider":"osv","source_id":"GHSA-w8xw-7crf-h23x","url":"https://osv.dev/vulnerability/GHSA-w8xw-7crf-h23x","license":"CC-BY-4.0","modified_at":"2024-08-21T16:28:35.419206Z","relation":"self"},{"provider":"osv","source_id":"GO-2022-1065","url":"https://osv.dev/vulnerability/GO-2022-1065","license":"CC-BY-4.0","modified_at":"2026-03-03T04:52:41.181693Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2022-42968","url":"https://access.redhat.com/security/cve/CVE-2022-42968","license":"CC-BY-4.0","modified_at":"2025-07-29T03:53:39Z","relation":"self"}]}
