<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-26T23:08:19.460534+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-57886</id>
    <title>CVE-2026-57886 — Cross-repository issue/comment attachment re-linking can expose private attachment content</title>
    <updated>2026-10-26T23:08:19.481876+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Gitea Open Source Git Server</p>
<p>Cross-repository issue/comment attachment re-linking can expose private attachment content</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-57886"/>
  </entry>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-6c6r-5xr4-cr5m</id>
    <title>GHSA-6c6r-5xr4-cr5m — Gitea: Cross-repository issue/comment attachment re-linking can expose private attachment content</title>
    <updated>2026-10-26T23:08:19.481959+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Go: code.gitea.io/gitea</p>
<p>## Summary</p>
<p>Gitea's issue and comment attachment update paths accept attachment UUIDs without verifying that each attachment belongs to the target issue/comment repository. If an authenticated attacker knows a victim attachment UUID, they can re-link that attachment to an attacker-controlled issue or comment, causing later attachment access checks to use the attacker's repository authorization context.</p>
<p>## Affected</p>
<p>- Component: web issue/comment attachment handling.
- Confirmed version: `main` commit `a39b2775edcb3ba53def96794491b91335117d81` (`v1.27.0-dev-352-ga39b2775ed`).
- Fixed in: not fixed at the time of validation.
- Other versions: not exhaustively tested. The affected code path appears structurally similar to versions that contain the current issue/comment attachment update logic.</p>
<p>## Description / Root Cause</p>
<p>`files[]` values from issue/comment edit flows are passed to `updateAttachments` in `routers/web/repo/issue.go:589-629`. That helper calls:</p>
<p>- `models/issues/issue_update.go:267-278` (`UpdateIssueAttachments`)
- `models/issues/comment.go:623-642` (`UpdateCommentAttachments`)</p>
<p>Both functions load attachments by UUID and update the attachment linkage, but neither validates that the attachment row's `RepoID` matches the repository of the target issue/comment. They also do not reject attachments already linked to a different issue/comment.</p>
<p>Attachment reads then use the linked issue/release repository to decide access:</p>
<p>- `services/repository/repository.go:185-2…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-6c6r-5xr4-cr5m"/>
  </entry>
</feed>
