Every CVE Search/ Get API key

CVE-2021-45326

Cross Site Request Forgery in Gitea

8.8 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

0.61%Down 0.3 points since Feb 9, 2022
90%50%10%1%

What each source reports

NVD Score used 8.8

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.

Record
CVE-2021-45326
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
CVSS 2.0
6.8 MediumAV:N/AC:M/Au:N/C:P/I:P/A:P
Weakness
CWE-352
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2021-45326
Updated
2026-11-02
EUVDEUVD-2022-0822 No score

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.

Record
EUVD-2022-0822
Updated
2026-11-03
GitHub AdvisoriesGHSA-4wp3-8q92-mh8w 8.8

Cross 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.

Record
GHSA-4wp3-8q92-mh8w
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-352
Updated
2026-11-02
OSVALPINE-CVE-2021-45326 8.8

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.

Record
ALPINE-CVE-2021-45326
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-03
OSV 8.8

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.

Record
CVE-2021-45326
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVGHSA-4wp3-8q92-mh8w 8.8

Cross 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.

Record
GHSA-4wp3-8q92-mh8w
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness
CWE-352
Updated
2026-11-02
OSVUBUNTU-CVE-2021-45326 8.8

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.

Record
UBUNTU-CVE-2021-45326
CVSS 3.1
8.8 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVBIT-gitea-2021-45326 No score

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.

Record
BIT-gitea-2021-45326
Updated
2026-11-02
OSVGO-2022-0309 No score

Cross Site Request Forgery in Gitea in github.com/go-gitea/gitea

Cross Site Request Forgery in Gitea in github.com/go-gitea/gitea

Record
GO-2022-0309
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/go-gitea/gitea
Go
before 1.5.2
1.5.2
gitea
Alpine:v3.16
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.17
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.18
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.19
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.20
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.21
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.22
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.23
before 1.5.2-r0
1.5.2-r0
gitea
Alpine:v3.24
before 1.5.2-r0
1.5.2-r0
Show 7 moreShow less
Affected packages
PackageAffectedFixed
gitea
Bitnami
before 1.5.2
1.5.2
golang-code.gitea-git
Ubuntu:18.04:LTS
All versions, plus listed versions
0.0~git20170710.0.fc63966-10.0~git20170919.0.cdb43f0-10.0~git20171222.4ec3654-10.0~git20171222.4ec3654-3
None known
golang-code.gitea-sdk
Ubuntu:18.04:LTS
All versions, plus listed versions
0.0~git20170708.0.9990008-10.0~git20170920.0.60c6048-10.0~git20171220.79eee8f-10.0~git20171220.79eee8f-3
None known
golang-code.gitea-git
Ubuntu:20.04:LTS
All versions, plus listed versions
0.0~git20171222.4ec3654-3
None known
golang-code.gitea-sdk
Ubuntu:20.04:LTS
All versions, plus listed versions
0.0~git20171220.79eee8f-3
None known
golang-code.gitea-git
Ubuntu:22.04:LTS
All versions, plus listed versions
0.0~git20190411.63b74d4+ds-1
None known
golang-code.gitea-sdk
Ubuntu:22.04:LTS
All versions, plus listed versions
0.0~git20171220.79eee8f-3
None known

History

History
RecordedChangedSources
affected, aliases, referencesOSV
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-45326 is a high vulnerability (CVSS 8.8) in Gitea, published February 8, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.61%, the 49th percentile. Fixed in github.com/go-gitea/gitea 1.5.2.

References

MoveEnter Open