# CVE-2021-45326: Cross Site Request Forgery in Gitea

- Severity: High 8.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 50% of CVEs (2026-12-01)
- Published: 2022-02-08T14:48:50.000Z
- Modified: 2026-09-08T08:47:33.087Z
- Also known as: GHSA-4wp3-8q92-mh8w, BIT-GITEA-2021-45326, GO-2022-0309
- Weaknesses: CWE-352
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/go-gitea/gitea (Go): before 1.5.2
- gitea gitea: before 1.5.2
- gitea (Bitnami): before 1.5.2

## Every score

- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating High

## References

- <https://blog.gitea.io/2018/10/gitea-1.5.2-is-released/> (advisory, release-notes, vendor-advisory)
- <https://github.com/go-gitea/gitea/pull/4840> (advisory, fix, patch, third-party-advisory, web)
- <https://github.com/go-gitea/gitea/issues/4838> (advisory, issue-tracking, report, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45326> (advisory, web)
- <https://blog.gitea.io/2018/10/gitea-1.5.2-is-released> (web)
- <https://github.com/go-gitea/gitea> (package)
- <https://github.com/advisories/GHSA-4wp3-8q92-mh8w> (advisory)

## Sources

- CVE List: [CVE-2021-45326](https://www.cve.org/CVERecord?id=CVE-2021-45326), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4wp3-8q92-mh8w](https://github.com/advisories/GHSA-4wp3-8q92-mh8w), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2022-0309](https://pkg.go.dev/vuln/GO-2022-0309), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2021-45326](https://nvd.nist.gov/vuln/detail/CVE-2021-45326), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITEA-2021-45326](https://osv.dev/vulnerability/BIT-GITEA-2021-45326), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-45326 · Whole record: https://cve.day/CVE-2021-45326.json · Rebuilt by cve.day 2026-11-25T22:58:06.793Z
