{
  "id": "CVE-2026-59774",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-59774",
  "published_at": "2026-10-14T14:28:25.862Z",
  "title": "Gitea Org-mode file disclosure and code execution",
  "vendor": "Gitea",
  "product": "Gitea",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-08-10T11:31:54Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -65.1,
    "source": "nuclei",
    "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59774.yaml"
  },
  "poc_repo_count": 2,
  "exploit_count": 2,
  "suspicious_repo_count": 1,
  "edge_device": null,
  "description": "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.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cisa-adp": 9.8
  },
  "repos": [
    {
      "repo": "FlowerWitch/CVE-2026-59774_docker",
      "url": "https://github.com/FlowerWitch/CVE-2026-59774_docker",
      "created_at": "2026-08-06T05:43:33Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 5,
      "is_poc": "fake",
      "kind": "fake",
      "suspicion_score": 50,
      "suspicious": true,
      "suspicion_reasons": [
        "pipes a download into a shell / encoded PowerShell in CVE-2026-59774_exp.py"
      ],
      "status": "analyzed",
      "owner_created_at": "2016-05-30T02:48:12Z"
    },
    {
      "repo": "asvorg/CVE-2026-59774-poc",
      "url": "https://github.com/asvorg/CVE-2026-59774-poc",
      "created_at": "2026-10-21T00:13:02Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-09-15T13:46:13Z"
    },
    {
      "repo": "Ly0kha/CVE-2026-59774",
      "url": "https://github.com/Ly0kha/CVE-2026-59774",
      "created_at": "2026-10-24T08:30:16Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2014-07-08T05:52:52Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Gitea",
        "product": "Gitea",
        "ranges": [
          "\u003e= 1.22, \u003c 1.27.1"
        ],
        "fixed_in": [
          "1.27.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Gitea to 1.27.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/38642"
      },
      {
        "kind": "Release notes",
        "url": "https://blog.gitea.com/release-of-1.27.1/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/go-gitea/gitea/pull/38645"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/go-gitea/gitea/releases/tag/v1.27.1"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: Forgejo Arbitrary File Read via Org-mode Include (auxiliary/gather/forgejo_orgmode_fileread_cve_2026_59774)",
      "published_at": "2026-08-18T19:38:19Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-59774.yaml",
      "source": "nuclei",
      "title": "nuclei template: Gitea 1.22.1-1.27.0 - Unauthenticated Arbitrary File Read",
      "published_at": "2026-08-10T11:31:54Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/api/v1/repos/{var}",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "content_type": "application/json",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774",
        "asvorg/CVE-2026-59774-poc"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:173",
        "Ly0kha/CVE-2026-59774/poc.py:751",
        "asvorg/CVE-2026-59774-poc/poc.py:33"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}/src/branch/{var}",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774",
        "asvorg/CVE-2026-59774-poc"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:185",
        "asvorg/CVE-2026-59774-poc/poc.py:45"
      ]
    },
    {
      "method": "POST",
      "path_template": "/{var}/markup",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "body_markers": [
        "\"Mode\":\"file\"",
        "\"FilePath\":\"poc.org\"",
        "\"Text\"",
        "\"Context\""
      ],
      "content_type": "application/json",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774",
        "asvorg/CVE-2026-59774-poc"
      ],
      "repo_count": 2,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:227",
        "asvorg/CVE-2026-59774-poc/poc.py:114"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/internal/repo/1",
      "headers": [
        {
          "name": "Authorization",
          "value": "Bearer {var}"
        },
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:150",
        "Ly0kha/CVE-2026-59774/poc.py:369",
        "Ly0kha/CVE-2026-59774/poc.py:493",
        "Ly0kha/CVE-2026-59774/poc.py:588"
      ]
    },
    {
      "method": "GET",
      "path_template": "/api/v1/repos/search",
      "query_markers": [
        "limit=5"
      ],
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:516"
      ]
    },
    {
      "method": "GET",
      "path_template": "/{var}/markup",
      "ports": [
        3000
      ],
      "protocol": "http",
      "repos": [
        "asvorg/CVE-2026-59774-poc"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "asvorg/CVE-2026-59774-poc/poc.py:10"
      ]
    },
    {
      "method": "PATCH",
      "path_template": "/api/internal/repo/1",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "body_markers": [
        "\"content\"",
        "\"content\":\"\"\"#!/bin/bash\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:467",
        "Ly0kha/CVE-2026-59774/poc.py:736"
      ]
    },
    {
      "method": "PATCH",
      "path_template": "/api/v1/repos/OWNER/REPO/hooks/git/post-receive",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:941"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/internal/repo/1",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "body_markers": [
        "\"Mode\":\"file\"",
        "\"FilePath\":\"poc.org\"",
        "\"Text\"",
        "\"Context\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:404",
        "Ly0kha/CVE-2026-59774/poc.py:505",
        "Ly0kha/CVE-2026-59774/poc.py:608"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/user/repos",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "body_markers": [
        "\"Mode\":\"file\"",
        "\"FilePath\":\"poc.org\"",
        "\"Text\"",
        "\"Context\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:543"
      ]
    },
    {
      "method": "POST",
      "path_template": "/api/v1/users/{var}/tokens",
      "body_markers": [
        "\"name\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:439"
      ]
    },
    {
      "method": "POST",
      "path_template": "/user/sign_up",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:427"
      ]
    },
    {
      "method": "PUT",
      "path_template": "/api/internal/repo/1",
      "headers": [
        {
          "name": "Origin",
          "value": "{var}"
        },
        {
          "name": "Referer",
          "value": "{var}/{var}"
        }
      ],
      "body_markers": [
        "\"Mode\":\"file\"",
        "\"FilePath\":\"poc.org\"",
        "\"Text\"",
        "\"Context\""
      ],
      "content_type": "application/json",
      "protocol": "http",
      "repos": [
        "Ly0kha/CVE-2026-59774"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "Ly0kha/CVE-2026-59774/poc.py:498",
        "Ly0kha/CVE-2026-59774/poc.py:597"
      ]
    }
  ],
  "rules": []
}
