{"answers":{"affected":"4 open source packages ship an affected version, including github.com/casdoor/casdoor and casdoor. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-38638 in the wild and no public exploit code.","fix":"Upgrade github.com/casdoor/casdoor to 1.103.1 or later.","what":"CVE-2022-38638 is a critical path traversal vulnerability in n/a, published on 9 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-38638 and fix it if it is affected.\n\nWhat it is: CVE-2022-38638 is a critical path traversal vulnerability in n/a, published on 9 Sep 2022. 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-2022-38638 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/casdoor/casdoor (Go): affected all versions; fixed in 1.103.1\n- github.com/casdoor/casdoor (Go): affected all versions; fixed in 1.103.1\n- github.com/casdoor/casdoor (Go): affected all versions; fixed in 1.103.1\n- casdoor (PyPI): affected all versions up to 1.97.3; 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-2022-38638/ (Markdown: https://insights.sbomify.com/CVE-2022-38638/index.md)","id":"CVE-2022-38638","markdown":"https://insights.sbomify.com/CVE-2022-38638/index.md","name":"CVE-2022-38638","record":{"aliases":["GHSA-9vm3-r8gq-cr6x","GO-2022-1006","PYSEC-2022-43190"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Casdoor identity provider","requires_auth":"none","summary":"Attackers can write arbitrary files via the upload-resource API, potentially leading to code execution or data modification in Casdoor.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"casdoor","vendor":"casbin"}],"cvss":{"score":9.1,"severity":"critical","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"Casdoor v1.97.3 was discovered to contain an arbitrary file write vulnerability via the fullFilePath parameter at /api/upload-resource.","ecosystems":["Go","PyPI"],"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":"Casdoor arbitrary file write vulnerability","id":"CVE-2022-38638","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"path_traversal","year":"2022"},"n_packages":4,"n_references":1,"next":{"headline":"Markdown-Nice v1.8.22 vulnerable to Cross-site Scripting","id":"CVE-2022-38639"},"packages":[{"ecosystem":"Go","fixed":["1.103.1"],"introduced":["0"],"last_affected":[],"package":"github.com/casdoor/casdoor","purl":null,"source":"GHSA-9vm3-r8gq-cr6x"},{"ecosystem":"Go","fixed":["1.103.1"],"introduced":["0"],"last_affected":[],"package":"github.com/casdoor/casdoor","purl":"pkg:golang/github.com/casdoor/casdoor","source":"GHSA-9vm3-r8gq-cr6x"},{"ecosystem":"Go","fixed":["1.103.1"],"introduced":["0"],"last_affected":[],"package":"github.com/casdoor/casdoor","purl":"pkg:golang/github.com/casdoor/casdoor","source":"GO-2022-1006"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["1.97.3"],"package":"casdoor","purl":"pkg:pypi/casdoor","source":"PYSEC-2022-43190"}],"prev":{"headline":"SQL injection in n/a","id":"CVE-2022-38637"},"products":["n/a"],"published":"2022-09-09","related":[{"cvss_score":8.1,"headline":"GHSL-2024-035: Casdoor CORS misconfiguration","id":"CVE-2024-41657","kev_date_added":null,"published":"2024-08-20"},{"cvss_score":8.1,"headline":"Casdoor arbitrary file deletion vulnerability via uploadFile function","id":"CVE-2022-44942","kev_date_added":null,"published":"2022-12-07"},{"cvss_score":7.5,"headline":"casdoor's use of`ssh.InsecureIgnoreHostKey()` disables host key verification","id":"CVE-2024-41264","kev_date_added":null,"published":"2024-08-01"},{"cvss_score":7.5,"headline":"SQL Injection in Casdoor","id":"CVE-2022-24124","kev_date_added":null,"published":"2022-01-29"},{"cvss_score":6.5,"headline":"Casdoor Cross-Site Request Forgery vulnerability","id":"CVE-2023-34927","kev_date_added":null,"published":"2023-06-22"},{"cvss_score":6.1,"headline":"GHSL-2024-036: Reflected XSS in QrCodePage.js","id":"CVE-2024-41658","kev_date_added":null,"published":"2024-08-20"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"Attackers can write arbitrary files via the upload-resource API, potentially leading to code execution or data modification in Casdoor.","url":"https://insights.sbomify.com/CVE-2022-38638/"}