All vulnerabilities

Servers and applications

GHSA-hr26-3fq5-9365

Unauthenticated Arbitrary Server File Read via go-org `#+INCLUDE`/`#+SETUPFILE` in Org-mode markup rendering

Severity
High
Published
24 Nov 2026
Last changed
24 Nov 2026
Added to UpHeron
24 Nov 2026
Sources
Project advisories (GitHub)

Description

Gogs renders Org-mode (.org) repository files through the third-party parser github.com/niklasfasching/go-org v1.9.1. That library implements the Org-mode keywords #+INCLUDE and #+SETUPFILE as an unrestricted local file read whose default ReadFile is plain ioutil.ReadFile, with no allowlist, sandbox, or path guard. When a user views a crafted .org file (via the public /src/* blob view), the Gogs server process reads an arbitrary absolute path from the filesystem and emits its raw contents unescaped into the rendered HTML response.

The most damaging target is the Gogs configuration file, /custom/conf/app.ini, which contains SECRET_KEY, the database connection credentials, and [server] secrets. Disclosure of SECRET_KEY is a known token/session-forging primitive in Gogs.

From gogs/gogs's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
GogsServers and applications · github:gogs/gogs
  • Every version up to 0.14.3

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,097,312Docker Hub, 22 Nov 2026
GitHub stars
47,981GitHub, 22 Nov 2026
Forks
5,081GitHub, 22 Nov 2026
Latest release
v0.14.4GitHub, 22 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References