Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
HighPublic exploit

Arbitrary file deletion via path traversal in Gogs wiki updateWikiPage (old_title)

IdentifiersCVE-2026-24135CWE-22· Improper Limitation of a Pathname…

In Gogs (self-hosted Git service) versions 0.13.3 and earlier, the wiki update/rename flow contains a path traversal flaw in the updateWikiPage function. An authenticated user with write access to a repository’s wiki can manipulate the old_title parameter in the wiki editing/rename form to traverse outside the intended wiki directory. The server then resolves the attacker-influenced path (with a .md suffix appended) and deletes it via os.Remove, enabling deletion of arbitrary server-side files reachable by traversal that match the effective target naming (i.e., with .md appended). The issue is fixed in 0.13.4 and 0.14.0+dev.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Arbitrary deletion of server-side files (constrained by the application appending a .md extension), leading to data loss and denial of service. This can include deletion of wiki pages and other critical Markdown files on the host, potentially disrupting service operation and/or destroying important documentation/content.

Mitigation

If you can’t patch tonight, do this now.

Until patched, restrict wiki write access to trusted users only. Monitor and alert on wiki edit/rename requests containing traversal sequences in old_title (e.g., "../"). If feasible, disable the wiki feature to remove the vulnerable attack surface.

Remediation

Patch, then assume compromise.

Upgrade Gogs to 0.13.4 or later (or 0.14.0+dev). Ensure old_title is sanitized/normalized before being used in path construction and deletion (e.g., apply the same canonicalization used for new titles such as ToWikiPageName, and/or enforce path.Clean plus strict basename/allowlist validation) prior to path.Join and os.Remove.
PUBLIC EXPLOITS

Exploits

No valid public exploits. Mallory filtered out 1 candidate as fakes, detection scripts, or README-only repos.

VALID 0 / 1 TOTALView more in app

All candidate exploits were filtered out by Mallory's validation.

EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
GogsGogsapplication
GogsGogsapplication

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence

Every observed campaign linking this CVE to a named adversary.

Associated malware

Malware families riding this exploit, with evidence and IOCs.

Detection signatures1

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity1

Community discussion across Reddit, Mastodon, and other social sources.