Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. code.gitea.io/gitea
  4. ›
  5. CVE-2026-20736

CVE-2026-20736: Gitea has improper access control for uploaded attachments

January 23, 2026

Gitea does not properly verify repository context when deleting attachments. A user who previously uploaded an attachment to a repository may be able to delete it after losing access to that repository by making the request through a different repository they can access.

References

  • blog.gitea.com/release-of-1.25.4
  • github.com/advisories/GHSA-hgr3-x44x-33hx
  • github.com/go-gitea/gitea
  • github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30
  • github.com/go-gitea/gitea/pull/36320
  • github.com/go-gitea/gitea/releases/tag/v1.25.4
  • nvd.nist.gov/vuln/detail/CVE-2026-20736

Code Behaviors & Features

Detect and mitigate CVE-2026-20736 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 1.25.4

Fixed versions

  • 1.25.4

Solution

Upgrade to version 1.25.4 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-284: Improper Access Control

Source file

go/code.gitea.io/gitea/CVE-2026-20736.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:57 +0000.