CVE-2018-18926
CRITICAL 9.8CVSS 3.0Gitea Remote Code Execution (RCE)
Gitea before 1.5.4 allows remote code execution because it does not properly validate session IDs. This is related to session ID handling in the go-macaron/session code for Macaron.
- Published
- 4 Nov 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-384CWE-94
- Also known as
- GHSA-hf6f-jq25-8gq9GO-2022-0844
- Sources
- NVDJSONOSV GHSA-hf6f-jq25-8gq9JSONOSV GO-2022-0844JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gitea | giteacpe:2.3:a:gitea:gitea:*:*:*:*:*:*:*:* |
< 1.5.4 | 1.5.4 |
| OSV | Go | code.gitea.io/gitea | < 1.5.2 | 1.5.2 |
References
- https://github.com/go-gitea/gitea/issues/5140 · Mitigation, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-18926 · ADVISORY
- https://github.com/go-gitea/gitea/pull/5177 · WEB
- https://github.com/go-gitea/gitea/commit/aeb5655c25053bdcd7eee94ea37df88468374162 · WEB
- https://github.com/advisories/GHSA-hf6f-jq25-8gq9 · ADVISORY
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 4 Nov 2018)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 15 Feb 2022)