CVE-2018-18926 json
Gitea Remote Code Execution (RCE)
published 2018-11-04 8 y ago modified 2026-06-17 4 mo ago also GHSA-hf6f-jq25-8gq9 , GO-2022-0844 , EUVD-2022-1042
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, percentile 87%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go code.gitea.io/gitea 1.5.2
- gitea gitea 1.5.4
- github.com/go-gitea/gitea@aeb5655 commit
- github.com/go-gitea/gitea#5177 pull request
- github.com/go-gitea/gitea/issues/5140 advisory
Exploit prediction
3.04% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | code.gitea.io/gitea | <1.5.2 |
1.5.2 |
Classification
References
-
github.com
/go-gitea/gitea/issues/5140
web, mitigation, patch, third-party-advisory
-
github.com
/go-gitea/gitea/pull/5177
web
-
github.com
/go-gitea/gitea/commit/aeb5655c25053bdcd7eee94ea37df88468374162
web
-
nvd.nist.gov
/vuln/detail/CVE-2018-18926
advisory
-
github.com
/advisories/GHSA-hf6f-jq25-8gq9
advisory
Sources
- CVE List CVE-2018-18926
- GitHub Advisory GHSA-hf6f-jq25-8gq9
- NVD CVE-2018-18926
- OSV GO-2022-0844
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.