{"id":"CVE-2018-18925","published":"2018-11-04T06:00:00Z","modified":"2024-08-05T11:23:08Z","title":"Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a \"..\"…","vendor":null,"product":null,"tier":"tail","description":{"text":"Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a \"..\" session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.31133,"percentile":0.9831,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/gogs/gogs/issues/5469","tags":["x_refsource_MISC"]}],"priority":{"score":24.7,"factors":[{"name":"EPSS percentile","points":19.66},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2021-09-12","earliestUrl":"https://github.com/j4k0m/CVE-2018-18925","repos":[{"name":"j4k0m/CVE-2018-18925","url":"https://github.com/j4k0m/CVE-2018-18925","stars":7,"created":"2021-09-12"}]},"nuclei":[{"id":"CVE-2018-18925","name":"Gogs (Go Git Service) 0.11.66 - Remote Code Execution","severity":"critical","path":"http/cves/2018/CVE-2018-18925.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-18925.yaml"}],"first":{"date":"2021-09-12","source":"PoC-in-GitHub","url":"https://github.com/j4k0m/CVE-2018-18925"},"provenance":"source"},"summary":{"text":"Gogs 0.11.66 contains a flaw in its handling of session IDs within the file session provider (file.go), which relies on the go-macaron/session code used by the Macaron framework. Because session IDs are not properly validated, an attacker can forge a session file using a \"../\" path-traversal sequence to achieve remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:37:54Z"},"euvd":{"id":"EUVD-2018-10632","exploited":false,"provenance":"source"},"lineage":{"children":[{"from":"CVE-2018-18925","to":"CVE-2018-20303","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"In pkg/tool/path.go in Gogs before 0.11.82.1218, a directory traversal in the file-upload functionality can allow an attacker to create a file under data/sessions on the server, a similar issue to CVE-2018-18925.","from":"CVE.org","in":"CVE-2018-20303"}]}]}}