Arbitrary File Deletion Flaw in Gogs Wiki Update Enables Path Traversal
Vulnerability Disclosure · 2 sources · Updated 5mo ago · First seen May 25, 2026

Gogs disclosed a security advisory for an arbitrary file deletion vulnerability in its wiki page update functionality, tracked as GHSA-jp7c-wj6q-3qf2. The flaw stems from a path traversal issue that can let an attacker manipulate file paths during wiki updates and delete files outside the intended directory, creating a risk to repository integrity and server-side data stored by the self-hosted Git service.
A public repository referencing CVE-2026-24135 later documented the same issue as an arbitrary file deletion bug in Gogs caused by wiki path traversal, indicating that technical details are now publicly accessible. Organizations running Gogs should review exposed wiki features, assess whether untrusted users can modify wiki content, and prioritize vendor guidance and patching to prevent unauthorized deletion of application or system files.
Why it matters
Impact assessment
Gogs deployments that expose wiki editing to untrusted or low-trust users are affected by an arbitrary file deletion vulnerability in wiki update handling. The primary risk is integrity and availability impact on the self-hosted Git service and potentially the underlying host, because an attacker can delete files outside the intended wiki directory via path traversal.
The likely scope is targeted to organizations running self-hosted Gogs rather than internet-wide end users, but exposure can be significant in environments where repositories and wiki features are broadly accessible. Public technical documentation exists for the issue, increasing the likelihood of opportunistic exploitation, although the provided references do not confirm exploitation in the wild.
Supporting facts
- Product affected: Gogs, a self-hosted Git service.
- Vulnerability type: arbitrary file deletion caused by path traversal in wiki page update functionality.
- Advisory identifier: GHSA-jp7c-wj6q-3qf2.
- Public CVE reference: CVE-2026-24135.
- Impacted assets: repository data integrity, application files, and potentially server-side files accessible to the Gogs process.
- Exposure condition: wiki functionality enabled and writable by untrusted or insufficiently restricted users.
- Known exploitation status: no confirmed in-the-wild exploitation stated in the provided references.


