{"id":"GHSA-2m9v-5q2g-58vq","revision":null,"records":[{"revision":"110f4ed1b55d44b1b61a743b0efb0303","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-28740","aliases":[],"title":"Gitea LFS object reuse bypasses Code-unit authorization","description":"Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.","state":0,"publishedAt":"2026-07-03T20:19:39.687+00:00","modifiedAt":"2026-07-07T16:58:26.934+00:00","affected":[{"ecosystem":"Vendor product","name":"Gitea Open Source Git Server","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Gitea\",\n                    \"product\": \"Gitea Open Source Git Server\",\n                    \"versions\": [\n                        {\n                            \"version\": \"0\",\n                            \"lessThanOrEqual\": \"1.26.2\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"severity":"HIGH"}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-2m9v-5q2g-58vq","https://github.com/go-gitea/gitea/pull/38050","https://github.com/go-gitea/gitea/releases/tag/v1.26.3","https://blog.gitea.com/release-of-1.26.3-and-1.26.4/"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-28740","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-28740","identifiers":["CVE-2026-28740"]},"retained":false,"historicalAffected":[]},{"revision":"74984401dddf4c24b6feb94d29a624ca","observedAt":"2026-11-07T06:34:13.455+00:00","statement":{"source":"euvd","id":"EUVD-2026-41643","aliases":["CVE-2026-28740","GHSA-2m9v-5q2g-58vq"],"title":"Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.","description":"Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"severity":null}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-2m9v-5q2g-58vq","https://github.com/go-gitea/gitea/pull/38050","https://github.com/go-gitea/gitea/releases/tag/v1.26.3","https://blog.gitea.com/release-of-1.26.3-and-1.26.4/"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-41643","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Jul 3, 2026, 8:19:39 PM","dateUpdated":"Jul 7, 2026, 4:58:26 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-41643","identifiers":["EUVD-2026-41643","CVE-2026-28740","GHSA-2m9v-5q2g-58vq"]},"retained":false,"historicalAffected":[]},{"revision":"aceb771b4c4d40a39571a9022f3ca787","observedAt":"2026-10-27T07:23:38.985+00:00","statement":{"source":"nvd","id":"CVE-2026-28740","aliases":[],"title":"Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.","description":"Gitea versions up to and including 1.26.2 allow Git LFS object reuse to authorize private source objects for users who have repository access but lack Code-unit access.","state":0,"publishedAt":"2026-07-03T21:16:59.89+00:00","modifiedAt":"2026-10-25T15:10:00.147+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · 88ee5874-cf24-4952-aea0-31affedb7ff2 · Secondary","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":7.1,"severity":"HIGH"}],"references":["https://blog.gitea.com/release-of-1.26.3-and-1.26.4/","https://github.com/go-gitea/gitea/pull/38050","https://github.com/go-gitea/gitea/releases/tag/v1.26.3","https://github.com/go-gitea/gitea/security/advisories/GHSA-2m9v-5q2g-58vq"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-28740","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-639","CWE-863"],"productCriteria":[],"sourceDates":{"published":"2026-07-03T21:16:59.890","lastModified":"2026-10-25T15:10:00.147"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-28740","identifiers":["CVE-2026-28740"]},"retained":false,"historicalAffected":[]},{"revision":"bc2f8799dae946c18b20d542700c3b23","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-2m9v-5q2g-58vq","aliases":["CVE-2026-28740","GO-2026-6029"],"title":"Gitea: Git LFS object reuse allows non-Code access to authorize private source objects","description":"## Summary\n\nA user with Code write access to one repository may be able to associate an existing Git LFS object from a private source repository with their target repository, even when they do not have Code access to the source repository that currently owns the LFS object.\n\nThe issue appears to be caused by the source-object authorization check using broad repository accessibility instead of requiring Code-unit access to at least one repository that owns the requested LFS object.\n\n## Impact\n\nThis issue breaks the expected authorization boundary between repository units.\n\nA user who does not have Code access to a private source repository should not be able to reuse or associate Git LFS objects owned by that repository. However, because the source-object accessibility check accepts broad repository access, non-Code access such as Issues access may be sufficient for the LFS object to be treated as accessible.\n\nIf the reused object becomes downloadable through the attacker-controlled target repository after metadata association, this can result in cross-repository Git LFS content disclosure.\n\nThe target repository write authorization is still enforced. The problem is specifically in the authorization decision for whether the source LFS object is accessible and may be reused.\n\n## Preconditions\n\nThe attacker needs:\n\n* an authenticated Gitea account;\n* Code write access to a target repository;\n* non-Code access, such as Issues access, to a private source repository;\n* knowledge of an existing Git LFS object OID and size from the private source repository.\n\n## Affected Area\n\nThe issue affects the Git LFS upload/object reuse path.\n\nRelevant paths:\n\n```text\nservices/lfs/server.go\n```\n\nRelevant handlers:\n\n```text\nBatchHandler\nUploadHandler\n```\n\nBoth paths can call:\n\n```go\ngit_model.LFSObjectAccessible(ctx, ctx.Doer, p.Oid)\n```\n\nThe helper is located in:\n\n```text\nmodels/git/lfs.go\n```\n\nThe authorization check uses:\n\n```go\nrepo_model.AccessibleRepositoryCondition(user, unit.TypeInvalid)\n```\n\nWhen `unit.TypeInvalid` is used, the repository access condition can include broad repository access, such as organization team membership through `team_repo` and `team_user`, without requiring that the user has access to the Code unit of the source repository.\n\nBy contrast, Code-specific repository access checks use a concrete unit type and include `team_unit` validation.\n\n## Validation\n\nI reproduced this locally using Gitea's Go test harness.\n\nValidated against commit:\n\n```text\ndac41a124fd34820a3c8caf3b3592ba62cd514ff\n```\n\nThe PoC creates the following scenario:\n\n1. The attacker has Code write access to the target repository.\n2. The source repository is private.\n3. The attacker does not have Code access to the source repository.\n4. The attacker only has Issues access to the source repository through an organization team.\n5. An LFS object exists in the source repository.\n6. `LFSObjectAccessible(ctx, attacker, oid)` returns `true`.\n7. `NewLFSMetaObject(ctx, targetRepo.ID, pointer)` successfully creates LFS metadata for the target repository.\n\nTest result:\n\n```text\n=== RUN   TestLFSObjectAccessibleAllowsNonCodeSourceAccess\n--- PASS: TestLFSObjectAccessibleAllowsNonCodeSourceAccess\nPASS\nok  \tgitea.dev/models/git\n```\n\nNo live instance was tested. Validation was performed only against a local test database.\n\n## Security Expectation\n\nA user should not be allowed to reuse or associate an LFS object from a private source repository unless they have Code access to that source repository, or another permission level explicitly intended to grant access to repository file contents.\n\nNon-Code permissions such as Issues access should not authorize access to Git LFS object content or allow Git LFS object reuse.\n\n## Suggested Fix\n\n`LFSObjectAccessible` should require Code-unit access to at least one repository that owns the requested LFS object.\n\nThe check should avoid using `unit.TypeInvalid` for this source-object authorization decision. A Code-specific repository access condition should be used instead.\n\nA regression test should cover:\n\n* private source repository;\n* user has Issues-only access to the source repository;\n* user does not have Code access to the source repository;\n* user has Code write access to the target repository;\n* known LFS object exists in the source repository;\n* object reuse must be rejected unless the user has Code access to the source repository.\n\n## Suggested Severity\n\nSuggested severity: Medium to High.\n\nThe severity depends on whether the associated LFS object becomes downloadable through the target repository after reuse.\n\nIf the object becomes downloadable through the target repository, the issue should be considered High because it can lead to cross-repository Git LFS content disclosure.\n\nSuggested CVSS v3.1 if content disclosure is confirmed:\n\n```text\nCVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N\n```\n\nRationale:\n\n* network reachable through Git LFS endpoints;\n* requires authentication;\n* requires knowledge of the LFS object OID and size;\n* no user interaction required;\n* breaks repository-level authorization expectations;\n* primary impact is confidentiality of private Git LFS content;\n* limited integrity impact through unauthorized LFS metadata association in the target repository.\n\n## Evidence\n\nI can provide the local regression test and passing test log privately if needed.","state":0,"publishedAt":"2026-07-21T20:29:43+00:00","modifiedAt":"2026-07-22T21:11:16.4830944+00:00","affected":[{"ecosystem":"Go","name":"gitea.dev","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.26.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-2m9v-5q2g-58vq","https://nvd.nist.gov/vuln/detail/CVE-2026-28740","https://github.com/go-gitea/gitea/pull/38050","https://github.com/go-gitea/gitea/commit/1c7b7ea72df7cf81e88b8e09049608254d32e56e","https://github.com/go-gitea/gitea/commit/7b4a1a1a118501b9d0260301dfed7f52dfc36ee9","https://blog.gitea.com/release-of-1.26.3-and-1.26.4","https://github.com/go-gitea/gitea","https://github.com/go-gitea/gitea/releases/tag/v1.26.3"],"sourceUrl":"https://github.com/advisories/GHSA-2m9v-5q2g-58vq","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2m9v-5q2g-58vq","identifiers":["GHSA-2m9v-5q2g-58vq","CVE-2026-28740","GO-2026-6029"]},"retained":false,"historicalAffected":[]},{"revision":"27b67aac4acc4dc78eefe28910bca62b","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2026-6029","aliases":["CVE-2026-28740","GHSA-2m9v-5q2g-58vq"],"title":"Gitea: Git LFS object reuse allows non-Code access to authorize private source objects in code.gitea.io/gitea","description":"Gitea: Git LFS object reuse allows non-Code access to authorize private source objects in code.gitea.io/gitea","state":0,"publishedAt":"2026-07-22T20:36:35+00:00","modifiedAt":"2026-07-22T21:00:25.6552136+00:00","affected":[{"ecosystem":"Go","name":"code.gitea.io/gitea","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.26.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/go-gitea/gitea/security/advisories/GHSA-2m9v-5q2g-58vq","https://nvd.nist.gov/vuln/detail/CVE-2026-28740","https://blog.gitea.com/release-of-1.26.3-and-1.26.4","https://github.com/go-gitea/gitea/commit/1c7b7ea72df7cf81e88b8e09049608254d32e56e","https://github.com/go-gitea/gitea/commit/7b4a1a1a118501b9d0260301dfed7f52dfc36ee9","https://github.com/go-gitea/gitea/pull/38050","https://github.com/go-gitea/gitea/releases/tag/v1.26.3"],"sourceUrl":"https://osv.dev/vulnerability/GO-2026-6029","license":"OSV · upstream source license applies","key":"osv:GO-2026-6029","identifiers":["GO-2026-6029","CVE-2026-28740","GHSA-2m9v-5q2g-58vq"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-07T21:52:16.7895348+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-07T21:52:16.7895348+00:00","lastSuccessAt":"2026-11-07T21:52:17.018923+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:17.0189237+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-bb5c9d5a08063ef076042e33dd72a7d0ffa4c4487efdcf3106e29ba55ec2ad57-5978693a555a2fac0feee4f8e1cdc5e013b9a91b16046d4e34ae63a3d3db8d19","complete":true,"records":420947,"lastAttemptAt":"2026-11-07T21:52:16.4606105+00:00","lastSuccessAt":"2026-11-07T21:52:16.3995215+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.4606105+00:00","snapshotPublishedAt":"2026-11-07T21:18:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-c91a0736a9624a48aebf081ca5dd86b2","complete":true,"records":13633,"lastAttemptAt":"2026-11-07T22:04:27.1191985+00:00","lastSuccessAt":"2026-11-07T22:04:27.115+00:00","error":null,"lastVerifiedAt":"2026-11-07T22:04:27.115+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-07T21:52:16.7895348+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-07T21:52:16.7895348+00:00","lastSuccessAt":"2026-11-07T21:52:17.0199092+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:17.0199095+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2b22c2d15f834007aa54c93f73b8deaf","complete":true,"records":13645,"lastAttemptAt":"2026-11-07T21:52:42.2590883+00:00","lastSuccessAt":"2026-11-07T21:52:42.255+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:42.255+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13685,"expectedIdentifiers":13685,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-0eb4d6dde62dffacd040ad992d4fd5a65cd7d0dc5f5f4cfa8b41967fc6f9ca5f","complete":true,"records":9914,"lastAttemptAt":"2026-11-07T21:52:16.7352005+00:00","lastSuccessAt":"2026-11-06T20:10:36.6450506+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.7352005+00:00","snapshotPublishedAt":"2026-11-06T20:02:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-07T21:52:16.5087916+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.5087916+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-335633e78a15c9cde10a6025895b5617717087fb945489ae7e15d377bacf34a9","complete":true,"records":3055,"lastAttemptAt":"2026-11-07T21:52:16.7531721+00:00","lastSuccessAt":"2026-11-06T16:03:00.7615789+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.7531721+00:00","snapshotPublishedAt":"2026-11-06T16:02:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-40ad6183a951565ace1520a9b4d631e1d0bfb1d4bf7c5574c375032559f3ff53","complete":true,"records":231292,"lastAttemptAt":"2026-11-07T21:52:16.6283313+00:00","lastSuccessAt":"2026-11-07T10:29:00.4821259+00:00","error":null,"lastVerifiedAt":"2026-11-07T21:52:16.6283313+00:00","snapshotPublishedAt":"2026-11-07T09:32:47+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}