# CVE-2021-45330: Improper Privilege Management in Gitea

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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): 1.45%, higher than 74% of CVEs (2026-12-01)
- Published: 2022-02-09T17:16:16.000Z
- Modified: 2026-09-08T08:47:33.613Z
- Also known as: GHSA-pg38-r834-g45j, BIT-GITEA-2021-45330, GO-2022-0982
- Weaknesses: CWE-269, CWE-459
- Assigned by: mitre

## Description

An issue exsits in Gitea through 1.15.7, which could let a malicious user gain privileges due to client side cookies not being deleted and the session remains valid on the server side for reuse.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- code.gitea.io/gitea (Go): before 1.6.0
- gitea gitea: up to 1.15.7
- gitea (Bitnami): before 1.15.8

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/go-gitea/gitea/issues/4336> (advisory, issue-tracking, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-45330> (advisory, web)
- <https://github.com/go-gitea/gitea/pull/4840> (web)
- <https://github.com/advisories/GHSA-pg38-r834-g45j> (advisory)

## Sources

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

---

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