{"id":"CVE-2018-18926","aliases":["EUVD-2022-1042","GHSA-hf6f-jq25-8gq9","GO-2022-0844","UBUNTU-CVE-2018-18926"],"status":"published","title":"Gitea Remote Code Execution (RCE)","description":"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.","severity":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.03041,"percentile":0.87612,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-384","CWE-94"],"published":"2018-11-04T05:29:00Z","modified":"2026-06-17T01:48:08Z","fixes":[{"ecosystem":"Go","package":"code.gitea.io/gitea","fixed_in":["1.5.2"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.2"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.2"}]}]},{"source":"osv","ecosystem":"Go","package":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.5.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"golang-code.gitea-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20170710.0.fc63966-1","0.0~git20170919.0.cdb43f0-1","0.0~git20171222.4ec3654-1","0.0~git20171222.4ec3654-3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"golang-code.gitea-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20171222.4ec3654-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"golang-code.gitea-git","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0~git20190411.63b74d4+ds-1"]}],"products":[{"vendor":"gitea","product":"gitea"}],"references":[{"url":"https://github.com/go-gitea/gitea/issues/5140","tags":["x_refsource_MISC","x_transferred","Mitigation","Patch","Third Party Advisory","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18926","tags":["advisory"]},{"url":"https://github.com/go-gitea/gitea/pull/5177","tags":["web"]},{"url":"https://github.com/go-gitea/gitea/commit/aeb5655c25053bdcd7eee94ea37df88468374162","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hf6f-jq25-8gq9","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-18926","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-18926","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-18926","description":"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.","status":"published","published":"2018-11-04T06:00:00Z","modified":"2024-08-05T11:23:08.554Z","updated_at":"2026-11-02T14:35:11.799349Z"}],"euvd":[{"id":"EUVD-2022-1042","description":"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.","status":"published","published":"2018-11-04T06:00:00Z","modified":"2024-08-05T11:23:08Z","updated_at":"2026-11-03T02:39:34.768254Z"}],"ghsa":[{"id":"GHSA-hf6f-jq25-8gq9","title":"Gitea Remote Code Execution (RCE)","description":"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.","status":"published","published":"2022-02-15T01:57:18Z","modified":"2023-09-15T18:13:45Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:37:05.567008Z"}],"nvd":[{"id":"CVE-2018-18926","description":"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.","status":"published","published":"2018-11-04T05:29:00.427Z","modified":"2026-06-17T01:48:08.067Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-384"],"updated_at":"2026-11-02T14:04:47.196456Z"}],"osv":[{"id":"GHSA-hf6f-jq25-8gq9","title":"Gitea Remote Code Execution (RCE)","description":"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.","status":"published","published":"2022-02-15T01:57:18Z","modified":"2024-08-21T15:58:58.172948Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:46:48.920784Z"},{"id":"UBUNTU-CVE-2018-18926","description":"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.","status":"published","published":"2018-11-04T05:29:00Z","modified":"2025-10-24T04:47:16Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:54:17.496046Z"},{"id":"GO-2022-0844","title":"Gitea Remote Code Execution (RCE) in code.gitea.io/gitea","description":"Gitea Remote Code Execution (RCE) in code.gitea.io/gitea","status":"published","published":"2024-08-21T15:29:04Z","modified":"2026-03-03T04:52:20.787387Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
