7.5high
Gitea Web Attachment Deletion: Cross-Repository Unauthorized Deletion via Missing Repo Ownership Check
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.62% (higher than 44% of CVEs)
- Published
- Last changed
- Assigned by
- Gitea
- Also known as
- GHSA-hgr3-x44x-33hxBIT-GITEA-2026-20736GHSA-jr6h-pwwp-c8g6GO-2026-4367
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Gitea Gitea Open Source Git Server | up to 1.25.3 | CVE List |
| openshift-pipelines/pipelines-opc-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-cli-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-cli-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-controller-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-controller-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-watcher-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-pipelines-as-code-webhook-rhel9 | Not specified | CVE List |
| code.gitea.io/gitea (Go) | before 1.25.4 | GitHub Advisory Database, Go Vulnerability Database |
| gitea gitea | before 1.25.4 | NVD |
| gitea (Bitnami) | before 1.25.4 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| redhat-SADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| GitHub | low CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | high rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
Go Vulnerability Database
Gitea has improper access control for uploaded attachments in code.gitea.io/gitea
NVD (es)
Gitea no verifica correctamente el contexto del repositorio al eliminar adjuntos. Un usuario que previamente subió un adjunto a un repositorio podría eliminarlo después de perder el acceso a ese repositorio al realizar la solicitud a través de un repositorio diferente al que puede acceder.
References
| https://github.com/go-gitea/gitea/security/advisories/GHSA-jr6h-pwwp-c8g6 | broken-link, vendor-advisory, web | |
| https://github.com/go-gitea/gitea/pull/36320 | fix, issue-tracking, patch, web | |
| https://github.com/go-gitea/gitea/releases/tag/v1.25.4 | article, release-notes, web | |
| https://blog.gitea.com/release-of-1.25.4/ | article, release-notes | |
| https://access.redhat.com/security/cve/CVE-2026-20736 | vdb-entry, web | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2432205 | issue-tracking, web | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-20736.json | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-20736 | advisory, web | |
| https://github.com/go-gitea/gitea/commit/fbea2c68e8df11cfa94e8ead913b79946780ed30 | web | |
| https://blog.gitea.com/release-of-1.25.4 | web | |
| https://github.com/go-gitea/gitea | package | |
| https://github.com/advisories/GHSA-hgr3-x44x-33hx | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-20736 changed 2026-07-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hgr3-x44x-33hx changed 2026-02-03 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4367 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2026-20736 changed 2026-07-15 | Public domain |
| Bitnami Vulnerability Database | BIT-GITEA-2026-20736 changed 2026-09-08 | Apache-2.0 |