Skip to content
Heist/ feed
Back to feed
Critical

Gitea Org-mode file disclosure and code execution

Type: advisorySources: OSV

Gitea's Org-mode markup renderer processes INCLUDE directives supplied to the repository markup endpoint without preventing access to server-side files. An unauthenticated attacker can use a suitable public repository to read files accessible to the Gitea service account. If the disclosed files include app.ini and its INTERNAL_TOKEN, the attacker can chain the disclosure with internal logger access to modify a Git hook and execute commands as the Gitea service account.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-59774
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 16:38 UTC · Revision 1

Source evidence

Gitea Org-mode file disclosure and code execution

core-osv · Original source

Published 14 Oct 2026, 14:28 UTC

Gitea's Org-mode markup renderer processes INCLUDE directives supplied to the repository markup endpoint without preventing access to server-side files. An unauthenticated attacker can use a suitable public repository to read files accessible to the Gitea service account. If the disclosed files include app.ini and its INTERNAL_TOKEN, the attacker can chain the disclosure with internal logger access to modify a Git hook and execute commands as the Gitea service account.

osv:CVE-2026-59774
Complete source record
{
  "id": "3082c8c82383ee01bbde919f9c884eeb61b4750a554fe7d3c611242d0e21aca2",
  "url": "https://osv.dev/vulnerability/CVE-2026-59774",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Gitea Org-mode file disclosure and code execution",
    "summary": "Gitea's Org-mode markup renderer processes INCLUDE directives supplied to the repository markup endpoint without preventing access to server-side files. An unauthenticated attacker can use a suitable public repository to read files accessible to the Gitea service account. If the disclosed files include app.ini and its INTERNAL_TOKEN, the attacker can chain the disclosure with internal logger access to modify a Git hook and execute commands as the Gitea service account.",
    "evidence": "osv:CVE-2026-59774",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2026-59774",
      "aliases": [
        "CVE-2026-59774",
        "GHSA-6v53-hr58-556r"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/go-gitea/gitea",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d7f73a1334ab7a97d4e055b7c58cdd9ac303f77a"
                },
                {
                  "fixed": "a62dfffbe7d3a454c2f2d3c4b2788ba432724a5f"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "1.22"
                      },
                      {
                        "fixed": "1.27.1"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "fixed": "a62dfffbe7d3a454c2f2d3c4b2788ba432724a5f"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.27.1"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v1.27.0",
            "v1.27.0-rc0",
            "v1.28.0-dev",
            "v1.27.0-dev",
            "v1.26.0-dev",
            "v1.25.0-dev",
            "v1.24.0-dev",
            "v1.22.0-rc1",
            "v1.23.0-dev",
            "v1.22.0-rc0",
            "v1.22.0-dev"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-59774.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:51.030088262Z",
      "provider": "osv",
      "references": [
        "https://blog.gitea.com/release-of-1.27.1/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59774.json",
        "https://github.com/go-gitea/gitea/releases/tag/v1.27.1",
        "https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-59774",
        "https://github.com/go-gitea/gitea/pull/38642",
        "https://github.com/go-gitea/gitea/pull/38645"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-22"
        ],
        "cna_assigner": "Gitea",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59774.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-59774",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519892,
  "published_at": "2026-10-14T14:28:25.862+00:00"
}