{"answers":{"affected":"3 open source packages ship an affected version, including github.com/usememos/memos. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-56760 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2025-56760 is a medium-severity path traversal vulnerability in Usememos Memos, published on 3 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-56760 and fix it if it is affected.\n\nWhat it is: CVE-2025-56760 is a medium-severity path traversal vulnerability in Usememos Memos, published on 3 Sep 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2025-56760 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/usememos/memos (Go): affected all versions; no fix listed\n- github.com/usememos/memos (Go): affected all versions up to 0.22.0; no fix listed\n- github.com/usememos/memos (Go): affected all versions up to 0.22.0; no fix listed\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-56760/ (Markdown: https://insights.sbomify.com/CVE-2025-56760/index.md)","id":"CVE-2025-56760","markdown":"https://insights.sbomify.com/CVE-2025-56760/index.md","name":"CVE-2025-56760","record":{"aliases":["GHSA-78j5-8vq7-jxv5","GO-2025-3936"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Memos note-taking app","requires_auth":"low_privilege","summary":"Attackers can write arbitrary files to the server via path traversal in resource names when local storage is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"memos","vendor":"usememos"}],"cvss":{"score":4.3,"severity":"medium","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-24","name":"Path Traversal: '../filedir'"}],"description":"When Memos 0.22 is configured to store objects locally, an attacker can create a file via the CreateResource endpoint containing a path traversal sequence in the name, allowing arbitrary file write on the server.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Memos Vulnerable to Path Traversal via the CreateResource Endpoint","id":"CVE-2025-56760","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"usememos:memos","products":["usememos:memos"],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":2,"next":{"headline":"Memos Vulnerable to Stored Cross-Site Scripting","id":"CVE-2025-56761"},"packages":[{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":[],"package":"github.com/usememos/memos","purl":"pkg:golang/github.com/usememos/memos","source":"GO-2025-3936"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.22.0"],"package":"github.com/usememos/memos","purl":null,"source":"GHSA-78j5-8vq7-jxv5"},{"ecosystem":"Go","fixed":[],"introduced":["0"],"last_affected":["0.22.0"],"package":"github.com/usememos/memos","purl":"pkg:golang/github.com/usememos/memos","source":"GHSA-78j5-8vq7-jxv5"}],"prev":{"headline":"Auth bypass in n/a","id":"CVE-2025-56752"},"products":["n/a"],"published":"2025-09-03","related":[{"cvss_score":9.8,"headline":"Memos has Cross-Site Scripting (XSS) Vulnerability in Image URLs","id":"CVE-2025-50738","kev_date_added":null,"published":"2025-07-29"},{"cvss_score":9.8,"headline":"Memos Server-Side Request Forgery (SSRF)","id":"CVE-2025-22952","kev_date_added":null,"published":"2025-02-27"},{"cvss_score":9.8,"headline":"Stored XSS in usememos/memos","id":"CVE-2023-0109","kev_date_added":null,"published":"2024-11-15"},{"cvss_score":9.8,"headline":"Improper Access Control in usememos/memos","id":"CVE-2023-4696","kev_date_added":null,"published":"2023-09-01"},{"cvss_score":9.8,"headline":"Cross-site Scripting (XSS) - Stored in usememos/memos","id":"CVE-2022-4866","kev_date_added":null,"published":"2022-12-31"},{"cvss_score":9.8,"headline":"Improper Handling of Values in usememos/memos","id":"CVE-2022-4851","kev_date_added":null,"published":"2022-12-29"},{"cvss_score":9.8,"headline":"Improper Restriction of Excessive Authentication Attempts in usememos/memos","id":"CVE-2022-4797","kev_date_added":null,"published":"2022-12-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-09-04","vendors":["n/a"]},"summary":"Attackers can write arbitrary files to the server via path traversal in resource names when local storage is enabled.","url":"https://insights.sbomify.com/CVE-2025-56760/"}