{"answers":{"affected":"3 open source packages ship an affected version, including www.velocidex.com/golang/velociraptor. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-0242 in the wild and no public exploit code.","fix":"Upgrade www.velocidex.com/golang/velociraptor to 0.6.7-5 or later.","what":"CVE-2023-0242 is a high-severity missing authorization vulnerability in Rapid7 Velociraptor, published on 18 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-0242 and fix it if it is affected.\n\nWhat it is: CVE-2023-0242 is a high-severity missing authorization vulnerability in Rapid7 Velociraptor, published on 18 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-0242 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- www.velocidex.com/golang/velociraptor (Go): affected all versions; fixed in 0.6.7-5\n- www.velocidex.com/golang/velociraptor (Go): affected all versions; fixed in 0.6.7-5\n- www.velocidex.com/golang/velociraptor (Go): affected all versions; fixed in 0.6.7-5\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-2023-0242/ (Markdown: https://insights.sbomify.com/CVE-2023-0242/index.md)","id":"CVE-2023-0242","markdown":"https://insights.sbomify.com/CVE-2023-0242/index.md","name":"CVE-2023-0242","record":{"aliases":["GHSA-g5vm-525q-r66c","GO-2023-1527"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Velociraptor DFIR server","requires_auth":"none","summary":"Low-privilege users can overwrite server files, including configuration, due to missing write permission checks in the VQL copy function.","user_interaction":"required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"rapid7","cpe":[{"product":"velociraptor","vendor":"rapid7"}],"cvss":{"score":8.8,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"},{"id":"CWE-269","name":"Improper Privilege Management"}],"description":"Rapid7 Velociraptor allows users to be created with different privileges on the server. Administrators are generally allowed to run any command on the server including writing arbitrary files. However, lower privilege users are generally forbidden from writing or modifying files on the server.\n\nThe VQL copy() function applies permission checks for reading files but does not check for permission to write files. This allows a low privilege user (usually, users with the Velociraptor \"investigator\" role) to overwrite files on the server, including Velociraptor configuration files.\n\nTo exploit this vulnerability, the attacker must already have a Velociraptor user account at a low privilege level (at least \"analyst\") and be able to log into the GUI and create a notebook where they can run the VQL query invoking the copy() VQL function. Typically, most users deploy Velociraptor with limited access to a trusted group (most users will be administrators within the GUI).\nThis vulnerability is associated with program files  https://github.Com/Velocidex/velociraptor/blob/master/vql/filesystem/copy.go https://github.Com/Velocidex/velociraptor/blob/master/vql/filesystem/copy.go  and program routines copy().\n\nThis issue affects Velociraptor versions before 0.6.7-5. Version 0.6.7-5, released January 16, 2023, fixes the issue.","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":"Insufficient permission check in the VQL copy() function","id":"CVE-2023-0242","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"missing_authorization","year":"2023"},"n_packages":3,"n_references":1,"next":{"headline":"TuziCMS Article Module ArticleController.class.php index sql injection","id":"CVE-2023-0243"},"packages":[{"ecosystem":"Go","fixed":["0.6.7-5"],"introduced":["0"],"last_affected":[],"package":"www.velocidex.com/golang/velociraptor","purl":null,"source":"GHSA-g5vm-525q-r66c"},{"ecosystem":"Go","fixed":["0.6.7-5"],"introduced":["0"],"last_affected":[],"package":"www.velocidex.com/golang/velociraptor","purl":"pkg:golang/www.velocidex.com/golang/velociraptor","source":"GHSA-g5vm-525q-r66c"},{"ecosystem":"Go","fixed":["0.6.7-5"],"introduced":["0"],"last_affected":[],"package":"www.velocidex.com/golang/velociraptor","purl":"pkg:golang/www.velocidex.com/golang/velociraptor","source":"GO-2023-1527"}],"prev":{"headline":"pgAdmin 4 vulnerable to directory traversal","id":"CVE-2023-0241"},"products":["Velociraptor"],"published":"2023-01-18","related":[{"cvss_score":8.6,"headline":"Rapid7 Velociraptor Reflected XSS","id":"CVE-2023-5950","kev_date_added":null,"published":"2023-11-06"},{"cvss_score":8.5,"headline":"Rapid7 Velociraptor Improper Input Validation in Client Message Handler","id":"CVE-2026-5329","kev_date_added":null,"published":"2026-04-09"},{"cvss_score":8,"headline":"Velociraptor Query() Plugin Misapplies Permissions To Orgs","id":"CVE-2026-6290","kev_date_added":null,"published":"2026-04-15"},{"cvss_score":6.8,"headline":"Rapid7 Velociraptor Directory Traversal Vulnerability","id":"CVE-2025-14728","kev_date_added":null,"published":"2025-12-29"},{"cvss_score":6.1,"headline":"Unsafe HTML Injection in Artifact Collection Report","id":"CVE-2022-35630","kev_date_added":null,"published":"2022-07-29"},{"cvss_score":5.5,"headline":"Velociraptor priviledge escalation via UpdateConfig artifact","id":"CVE-2025-6264","kev_date_added":null,"published":"2025-06-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":"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-04-03","vendors":["Rapid7"]},"summary":"Low-privilege users can overwrite server files, including configuration, due to missing write permission checks in the VQL copy function.","url":"https://insights.sbomify.com/CVE-2023-0242/"}