CVE-2025-68937
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedForgejo before 13.0.2 allows attackers to write to unintended files, and possibly obtain server shell access, because of mishandling of out-of-repository symlink destinations for template repositories. This is also fixed for 11 LTS in 11.0.7 and later.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceForgejo before 13.0.2 and 11.0.7 (LTS) contains a path traversal vulnerability in template repository handling where symlinks pointing outside the repository are not properly validated. Attackers can create or use templates with symlinks that escape the intended directory boundaries, allowing write access to arbitrary files on the server and potentially achieving remote code execution.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- High
- Privileges
- None
- Authentication
- X
- User interaction
- None
- Scope
- X
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Forgejo installation and versionCheck the Forgejo version by querying the API endpoint /api/v1/version or inspecting the binary/executable version (forgejo --version). Alternatively, check the installation's version file if available in the installation directory.Affected if The installed version is lower than 13.0.2 or is between 11.0.0 and 11.0.7 (non-LTS versions before 11.0.7, or LTS versions before 11.0.7).
-
Confirm template repository feature is in useDetermine whether template repository functionality is enabled or being used on the instance. Check Forgejo admin settings or user-created template repositories via the web UI or API (look for repositories with template sources).Affected if Template repository creation or usage is allowed and active on the Forgejo instance.
-
Inspect template repositories for symlinksIf you have access to the filesystem hosting Forgejo data, examine the template repository directories (typically under /var/opt/forgejo/gitea/repositories or equivalent data path). Identify any symlinks within these repositories and verify their targets using 'ls -la' or 'readlink -f'.Affected if Symlinks in template repositories point to paths outside their intended repository boundaries (e.g., ../../ or absolute paths to system directories).
You are affected if your Forgejo version is below 13.0.2 (or below 11.0.7 LTS) AND template repository functionality is enabled or being used, allowing symlinks to escape repository boundaries.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade to Forgejo 13.0.2 or later (or 11.0.7+ for LTS branch). If patching is not immediately feasible, disable or restrict template repository functionality until the upgrade can be applied.
Forgejo 13.0.2 or later (or 11.0.7+ for 11 LTS branch)
- 1. Identify the currently running Forgejo version by checking the admin dashboard or running 'forgejo --version'
- 2. If running a version before 13.0.2, plan upgrade to version 13.0.2 or later
- 3. If running Forgejo 11 LTS (11.x series), upgrade to version 11.0.7 or later
- 4. Before upgrading, backup the Forgejo database and repositories
- 5. Follow the official Forgejo upgrade documentation for your deployment method (binary, Docker, or package manager)
- 6. After upgrade, verify the installation is functional and the vulnerability is patched
- 7. Review audit logs to check for any exploitation attempts prior to patching
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $3,088.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-68937 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-68937 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data