{"id":"CVE-2026-25229","published":"2026-02-19T02:33:09Z","modified":"2026-02-19T17:44:28Z","title":"Gogs Authorization Bypass Allows Cross-Repository Label Modification","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"Gogs is an open source self-hosted Git service. Versions 0.13.4 and below have a broken access control vulnerability which allows authenticated users with write access to any repository to modify labels belonging to other repositories. The UpdateLabel function in the Web UI (internal/route/repo/issue.go) fails to verify that the label being modified belongs to the repository specified in the URL path, enabling cross-repository label tampering attacks. The vulnerability exists in the Web UI's label update endpoint POST /:username/:reponame/labels/edit. The handler function UpdateLabel uses an incorrect database query function that bypasses repository ownership validation. This issue has been fixed in version 0.14.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00302,"percentile":0.23564,"provenance":"source"},"cwes":[{"id":"CWE-284","name":"Improper Access Control"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-cv22-72px-f4gh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/commit/643a6d6353cb6a182a4e1f0720228727f30a3ad2","tags":["x_refsource_MISC"]}],"priority":{"score":8.4,"factors":[{"name":"EPSS percentile","points":4.71},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-02-19T17:04:50.842075Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.0","all versions"],"patched":["0.14.0"],"from":["GHSA-cv22-72px-f4gh","GO-2026-4499"],"provenance":"source"}],"summary":{"text":"Gogs versions 0.13.4 and below contain an improper access control flaw in the Web UI's label update handler, UpdateLabel in internal/route/repo/issue.go, reached via POST /:username/:reponame/labels/edit, which fails to check that the label belongs to the repository named in the URL. An authenticated user with write access to any repository over the network can, without further user interaction or special configuration, modify labels belonging to other repositories.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:31Z"},"euvd":{"id":"EUVD-2026-8118","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-23633","published":"2026-02-06","fixed":"0.13.4","kev":false},{"cve":"CVE-2026-24135","published":"2026-02-06","fixed":"0.13.4","kev":false},{"cve":"CVE-2026-25120","published":"2026-02-19","fixed":"0.14.0","kev":false},{"cve":"CVE-2026-25229","published":"2026-02-19","fixed":"0.14.0","kev":false},{"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,"link":{"from":"CVE-2026-25229","to":"CVE-2026-25232","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-25242","published":"2026-02-19","fixed":"0.14.1","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}]}}],"package":"Go:gogs.io/gogs"}}