{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-68937 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2025-68937 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-68937 is a critical path traversal vulnerability in Forgejo, published on 25 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-68937 and fix it if it is affected.\n\nWhat it is: CVE-2025-68937 is a critical path traversal vulnerability in Forgejo, published on 25 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-68937 in the wild and no public exploit code.\n\nAffected product: Forgejo. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2025-68937/ (Markdown: https://insights.sbomify.com/CVE-2025-68937/index.md)","id":"CVE-2025-68937","markdown":"https://insights.sbomify.com/CVE-2025-68937/index.md","name":"CVE-2025-68937","record":{"aliases":["GHSA-7mhf-6fhv-c83c"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Forgejo Git hosting","requires_auth":"none","summary":"Attackers can write to unintended files and potentially gain server shell access via mishandled symlink destinations in template repositories.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[],"cvss":{"score":9.5,"severity":"critical","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"}],"description":"Forgejo 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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2025-12-01","github_poc":2,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-12-01T02:04:06Z","kind":"github_poc","ref":"https://github.com/ClemaX/Gitea-Forgejo-CVE-2025-68937","stars":0,"title":"Directory traversal in Gitea and Forgejo's repository‑template processing allows remote authenticated attackers to process arbitrary files on the filesystem, leading to remote code execution."},{"date":"2026-08-02T03:14:20Z","kind":"github_poc","ref":"https://github.com/Scratchappy/CVE-2025-68937","stars":0,"title":"Automated PoC exploit for CVE-2025-68937 — Gitea/Forgejo Template Symlink RCE. Any authenticated user can get a shell as the git service user."}],"tier":"poc_unverified"},"has_fix":null,"headline":"Path traversal in Forgejo","id":"CVE-2025-68937","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":0,"n_references":6,"next":{"headline":"Gitea mishandles authorization for deletion of releases","id":"CVE-2025-68938"},"packages":[],"prev":{"headline":"Cross-site scripting in Document Server","id":"CVE-2025-68936"},"products":["Forgejo"],"published":"2025-12-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-12-26","vendors":["Forgejo"]},"summary":"Attackers can write to unintended files and potentially gain server shell access via mishandled symlink destinations in template repositories.","url":"https://insights.sbomify.com/CVE-2025-68937/"}