CVE-2021-45326 json
Cross Site Request Forgery in Gitea
published 2022-02-08 4 y ago modified 2026-09-08 2 mo ago also BIT-gitea-2021-45326 , EUVD-2022-0822 , GHSA-4wp3-8q92-mh8w , GO-2022-0309
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 49%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/go-gitea/gitea 1.5.2
- bitnami gitea 1.5.2
- gitea gitea 1.5.2
- gitea Alpine 3.24, Alpine 3.23, Alpine 3.22 +6 more 1.5.2-r0
alpine advisories ALPINE-CVE-2021-45326
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- github.com/go-gitea/gitea#4840 pull request
Exploit prediction
0.61% chance of exploitation in the next 30 days, higher than 49% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| OSV | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/go-gitea/gitea | <1.5.2 |
1.5.2 |
| bitnami | gitea | <1.5.2 |
1.5.2 |
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/go-gitea/gitea/pull/4840
web, patch, third-party-advisory, advisory
-
blog.gitea.io
/2018/10/gitea-1.5.2-is-released/
release-notes, vendor-advisory, advisory
-
github.com
/go-gitea/gitea/issues/4838
web, issue-tracking, third-party-advisory, advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2021-45326
advisory, web
-
blog.gitea.io
/2018/10/gitea-1.5.2-is-released
web
-
github.com
/go-gitea/gitea
package
-
github.com
/advisories/GHSA-4wp3-8q92-mh8w
advisory
Sources
- CVE List CVE-2021-45326
- GitHub Advisory GHSA-4wp3-8q92-mh8w
- NVD CVE-2021-45326
- OSV BIT-gitea-2021-45326
- OSV GO-2022-0309
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.