{"id":"CVE-2026-58440","aliases":["CVE-2026-58440","GHSA-66m4-5jjr-2rg5","GO-2026-6033"],"related":[],"kind":"vulnerability","state":"published","title":"Webhooks created by a collaborator keep firing after their repo access is revoked → ongoing real-time exfiltration of private repo content (incomplete revocation cleanup in `DeleteCollaboration`)","summary":"Webhooks created by a collaborator keep firing after their repo access is revoked → ongoing real-time exfiltration of private repo content (incomplete revocation cleanup in `DeleteCollaboration`)","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Webhooks created by a collaborator keep firing after their repo access is revoked → ongoing real-time exfiltration of private repo content (incomplete revocation cleanup in `DeleteCollaboration`)","source":"cvelist"},{"lang":"en","text":"## Affected product\nGitea — `services/repository/collaboration.go` (`DeleteCollaboration`) + webhook delivery\n\n## Summary\nWhen a collaborator with admin permission on a private repo creates a webhook, that webhook keeps firing\nafter the collaborator's access is revoked. Gitea's revocation cleanup `DeleteCollaboration` removes the\ncollaboration record, recalculates accesses, drops watches, and unassigns issues — but it does **not**\nremove or disable webhooks the user created, and webhook delivery never re-checks whether the creator still\nhas repo access. The former collaborator therefore receives the full payload (issue/comment bodies, commit\ndata) of all future repository events at their controlled endpoint, indefinitely and invisibly.\n\n## Affected code\n- `services/repository/collaboration.go` → `DeleteCollaboration()` — cleans watches/assignees only; no\n  webhook cleanup.\n- Webhook delivery path — fires on repo events without re-validating the creator's current access.\n\n## Steps to reproduce\nUsing the provided reproduction materials:\n1. Attacker (admin collaborator) creates a webhook → revoke access.\n2. Control: `GET /api/v1/repos/admin/wh-repo` (attacker) → **404**.\n3. `GET .../hooks` → webhook still `active=true`.\n4. Admin creates a new issue **after** revocation → the catcher receives `action:\"opened\"`,\n   `issue.title:\"CRITICAL SECRET: …\"`, `issue.body` (sentinel private key), `repository.private:true`.\n(Runtime-confirmed on `gitea/gitea:1.25.4`. Catcher is an internal sentinel listener; the payload is a\nplanted sentinel, not real data; nothing is sent to any external/metadata endpoint.)\n\n## Impact\nAuthenticated former admin-collaborator → ongoing real-time exfiltration of private content created after\nrevocation; invisible to the owner; scope crosses from the application boundary to data the user should no\nlonger access.\n\n## Suggested remediation\n1. On revocation, delete/disable webhooks created by the removed collaborator (or hand them to the owner).\n2. Re-validate the creator's current repo access before each webhook delivery.\n3. At minimum, warn admins on revocation if the user created webhooks.\n\n## Credit\nReported as part of an incomplete-patch / authorization-residue measurement study (responsible disclosure).","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gitea: Webhooks created by a collaborator keep firing after their repo access is revoked → ongoing real-time exfiltration of private repo content in gitea.dev","format":"markdown","source":"go"}],"published":"2026-07-21T20:11:36.000Z","modified":"2026-08-26T16:53:48.300Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:N/A:N","score":6.8,"rating":"MEDIUM"}],"cwes":["CWE-284","CWE-863"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.26.4","status":"affected"}],"vendor":"Gitea","product":"Gitea Open Source Git Server","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"Go","package":"gitea.dev","purl":"pkg:golang/gitea.dev","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.27.0"}],"ecosystem":"Go","package":"gitea.dev","purl":"pkg:golang/gitea.dev","source":"go"}],"references":[{"url":"https://github.com/go-gitea/gitea/security/advisories/GHSA-66m4-5jjr-2rg5","tags":["advisory","exploit","vendor-advisory","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/go-gitea/gitea/releases/tag/v1.27.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://blog.gitea.com/gitea-1.27.0-is-released/","tags":["release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/go-gitea/gitea/pull/38406","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea/pull/38426","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea/commit/de4b8277e9cb576f2315fb03b5ab6478b42a1d31","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea/commit/f69e15afe7496cc62e96dab244629c69eb31a7bf","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/go-gitea/gitea","tags":["package"],"sources":["ghsa"]}],"credits":["sec-reex"],"assigner":"Gitea","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-08-14T19:58:47.519Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-58440","url":"https://www.cve.org/CVERecord?id=CVE-2026-58440","licence":"CVE Terms of Use","modified":"2026-08-14T19:59:35.049Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-66m4-5jjr-2rg5","url":"https://github.com/advisories/GHSA-66m4-5jjr-2rg5","licence":"CC-BY-4.0","modified":"2026-07-22T21:11:21.725Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-6033","url":"https://pkg.go.dev/vuln/GO-2026-6033","licence":"CC-BY-4.0","modified":"2026-07-22T21:00:27.190Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-58440","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-58440","licence":"Public domain","modified":"2026-08-26T16:53:48.300Z"}],"updatedAt":"2026-11-25T22:59:32.803Z","epss":{"score":0.00278,"percentile":0.21683,"date":"2026-12-01T12:00:22.000Z"}}