CVE-2021-45330
9.8critical
Improper Privilege Management in Gitea
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.45% (higher than 74% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-pg38-r834-g45jBIT-GITEA-2021-45330GO-2022-0982
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| code.gitea.io/gitea (Go) | before 1.6.0 | GitHub Advisory Database, Go Vulnerability Database |
| gitea gitea | up to 1.15.7 | NVD |
| gitea (Bitnami) | before 1.15.8 | Bitnami Vulnerability Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
Go Vulnerability Database
Improper Privilege Management in Gitea in code.gitea.io/gitea
NVD (es)
Se presenta un problema en Gitea hasta la versión 1.15.7, que podría permitir a un usuario malicioso alcanzar privilegios debido a que las cookies del lado del cliente no son eliminadas y la sesión sigue siendo válida en el lado del servidor para su reúso
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45330 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-pg38-r834-g45j changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0982 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2021-45330 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2021-45330 changed 2026-09-08 | Apache-2.0 |