CVE-2021-45326
HIGH 8.8CVSS 3.1Cross Site Request Forgery in Gitea
Cross Site Request Forgery (CSRF) vulnerability exists in Gitea before 1.5.2 via API routes.This can be dangerous especially with state altering POST requests.
- Published
- 8 Feb 2022
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-352
- Also known as
- BIT-gitea-2021-45326GHSA-4wp3-8q92-mh8wGO-2022-0309
- Sources
- NVDJSONOSV GHSA-4wp3-8q92-mh8wJSONOSV GO-2022-0309JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* |
< 1.5.2 | 1.5.2 |
| OSV | Go | github.com/go-gitea/gitea | < 1.5.2 | 1.5.2 |
References
- https://blog.gitea.io/2018/10/gitea-1.5.2-is-released/ · Release Notes, Vendor Advisory, WEB
- https://github.com/go-gitea/gitea/issues/4838 · Issue Tracking, Third Party Advisory, WEB, REPORT
- https://github.com/go-gitea/gitea/pull/4840 · Patch, Third Party Advisory, WEB, FIX
- https://nvd.nist.gov/vuln/detail/CVE-2021-45326 · ADVISORY
- https://github.com/go-gitea/gitea · PACKAGE
- https://github.com/advisories/GHSA-4wp3-8q92-mh8w · ADVISORY
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 8 Feb 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 9 Feb 2022)