{"id":"CVE-2026-25242","published":"2026-02-19T02:28:40Z","modified":"2026-02-19T17:44:40Z","title":"Gogs allows unauthenticated file uploads","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"Gogs is an open source self-hosted Git service. Versions 0.13.4 and below expose unauthenticated file upload endpoints by default. When the global RequireSigninView setting is disabled (default), any remote user can upload arbitrary files to the server via /releases/attachments and /issues/attachments. This enables the instance to be abused as a public file host, potentially leading to disk exhaustion, content hosting, or delivery of malware. CSRF tokens do not mitigate this attack due to same-origin cookie issuance. This issue has been fixed in version 0.14.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00949,"percentile":0.59713,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-fc3h-92p8-h36f","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8128","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/628216d5889fcb838c471f4754f09b935d9cd9f3","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.1","tags":["x_refsource_MISC"]}],"priority":{"score":21.8,"factors":[{"name":"EPSS percentile","points":11.94},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.83}]},"exploitSources":{"nuclei":[{"id":"CVE-2026-25242","name":"Gogs <= 0.13.3 - Unauthenticated Attachment Upload","severity":"high","path":"http/cves/2026/CVE-2026-25242.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-25242.yaml"}],"provenance":"source"},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-19T17:23:29.408186Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.1","all versions"],"patched":["0.14.1"],"from":["GHSA-fc3h-92p8-h36f","GO-2026-4500"],"provenance":"source"}],"summary":{"text":"Gogs, the open source self-hosted Git service, exposes unauthenticated file upload endpoints (/releases/attachments and /issues/attachments) in versions 0.13.4 and below, due to missing authorization checks. An attacker with only network access can upload arbitrary files to the server without authentication or user interaction, provided the global RequireSigninView setting is disabled, which is the default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:00Z"},"euvd":{"id":"EUVD-2026-8119","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-gogs-gogs-cve-2018-15192","parents":[{"from":"CVE-2018-15192","to":"CVE-2026-25242","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/cmd/web.go"],"commits":["https://github.com/gogs/gogs/commit/22717a1c064511cf37c46af5e650baf7184cf25b","https://github.com/gogs/gogs/commit/628216d5889fcb838c471f4754f09b935d9cd9f3"],"basis":"shared function","functions":["runWeb"]}]},{"from":"CVE-2022-1464","to":"CVE-2026-25242","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["internal/cmd/web.go"],"commits":["https://github.com/gogs/gogs/commit/bc77440b301ac8780698be91dff1ac33b7cee850","https://github.com/gogs/gogs/commit/628216d5889fcb838c471f4754f09b935d9cd9f3"],"basis":"shared function","functions":["runWeb"]}]}],"packageHistory":[{"cve":"CVE-2026-25229","published":"2026-02-19","fixed":"0.14.0","kev":false,"link":{"from":"CVE-2026-25229","to":"CVE-2026-25242","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:gogs.io/gogs","fromFixed":"0.14.0","toFixed":"0.14.1","daysApart":0}]}},{"cve":"CVE-2026-52797","published":"2026-06-24","fixed":"0.14.0","kev":false},{"cve":"CVE-2026-25232","published":"2026-02-19","fixed":"0.14.1","kev":false},{"cve":"CVE-2026-25242","published":"2026-02-19","fixed":"0.14.1","kev":false},{"cve":"CVE-2026-25921","published":"2026-03-05","fixed":"0.14.2","kev":false},{"cve":"CVE-2026-26022","published":"2026-03-05","fixed":"0.14.2","kev":false},{"cve":"CVE-2026-26194","published":"2026-03-05","fixed":"0.14.2","kev":false}],"package":"Go:gogs.io/gogs"}}