{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-18925 exists.","fix":"No fix has been published for CVE-2018-18925 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-18925 is a critical path traversal vulnerability in n/a, published on 4 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2018-18925 and fix it if it is affected.\n\nWhat it is: CVE-2018-18925 is a critical path traversal vulnerability in n/a, published on 4 Nov 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-18925 exists.\n\nAffected product: n/a. 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-2018-18925/ (Markdown: https://insights.sbomify.com/CVE-2018-18925/index.md)","id":"CVE-2018-18925","markdown":"https://insights.sbomify.com/CVE-2018-18925/index.md","name":"CVE-2018-18925","record":{"aliases":["CVE-2018-1000853","GHSA-59hg-cj84-76w9"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Gogs Git server","requires_auth":"none","summary":"Attackers can achieve remote code execution in Gogs by forging session IDs via path traversal in the file session provider.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"gogs","vendor":"gogs"}],"cvss":{"score":9.8,"severity":"critical","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-384","name":"Session Fixation"}],"description":"Gogs 0.11.66 allows remote code execution because it does not properly validate session IDs, as demonstrated by a \"..\" session-file forgery in the file session provider in file.go. This is related to session ID handling in the go-macaron/session code for Macaron.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":"2021-09-12","github_poc":1,"max_poc_stars":7,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-09-12T17:57:56Z","kind":"github_poc","ref":"https://github.com/j4k0m/CVE-2018-18925","stars":7,"title":"Exploitation of CVE-2018-18925 a Remote Code Execution against the Git self hosted tool: Gogs."},{"date":null,"kind":"nuclei","ref":"http/cves/2018/CVE-2018-18925.yaml","stars":null,"title":"Gogs (Go Git Service) 0.11.66 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":false,"headline":"Path traversal in n/a","id":"CVE-2018-18925","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"path_traversal","year":"2018"},"n_packages":0,"n_references":1,"next":{"headline":"Gitea Remote Code Execution (RCE)","id":"CVE-2018-18926"},"packages":[],"prev":{"headline":"File upload in n/a","id":"CVE-2018-18924"},"products":["n/a"],"published":"2018-11-04","related":[{"cvss_score":8.7,"headline":"Gogs Path Traversal","id":"CVE-2025-8110","kev_date_added":"2026-01-12","published":"2025-12-10"},{"cvss_score":10,"headline":"Gogs deletion of internal files allows remote command execution","id":"CVE-2024-56731","kev_date_added":null,"published":"2025-06-24"},{"cvss_score":10,"headline":"Remote Command Execution in gogs/gogs","id":"CVE-2022-1884","kev_date_added":null,"published":"2024-11-15"},{"cvss_score":10,"headline":"OS Command Injection in gogs/gogs","id":"CVE-2022-1986","kev_date_added":null,"published":"2022-06-09"},{"cvss_score":10,"headline":"Path Traversal in gogs/gogs","id":"CVE-2022-1992","kev_date_added":null,"published":"2022-06-08"},{"cvss_score":9.9,"headline":"Duplicate Advisory: github.com/gogs/gogs affected by CVE-2024-39930","id":"CVE-2024-39930","kev_date_added":null,"published":"2024-07-04"},{"cvss_score":9.9,"headline":"Duplicate Advisory: Gogs allows deletion of internal files","id":"CVE-2024-39931","kev_date_added":null,"published":"2024-07-04"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Attackers can achieve remote code execution in Gogs by forging session IDs via path traversal in the file session provider.","url":"https://insights.sbomify.com/CVE-2018-18925/"}