{"answers":{"affected":"4 open source packages ship an affected version, including Tgstation.Server.Api and Tgstation.Server.Host. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-41799 in the wild and no public exploit code.","fix":"Upgrade Tgstation.Server.Api to 6.8.0 or later.","what":"CVE-2024-41799 is a high-severity path traversal vulnerability in tgstation-server, published on 29 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-41799 and fix it if it is affected.\n\nWhat it is: CVE-2024-41799 is a high-severity path traversal vulnerability in tgstation-server, published on 29 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-41799 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- Tgstation.Server.Api (NuGet): affected from 4.0.0; fixed in 6.8.0\n- Tgstation.Server.Api (NuGet): affected from 4.0.0; fixed in 6.8.0\n- Tgstation.Server.Host (NuGet): affected from 4.0.0; fixed in 6.8.0\n- Tgstation.Server.Host (NuGet): affected from 4.0.0; fixed in 6.8.0\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-2024-41799/ (Markdown: https://insights.sbomify.com/CVE-2024-41799/index.md)","id":"CVE-2024-41799","markdown":"https://insights.sbomify.com/CVE-2024-41799/index.md","name":"CVE-2024-41799","record":{"aliases":["GHSA-c3h4-9gc2-f7h4"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"BYOND server management tool","requires_auth":"low_privilege","summary":"Low-privilege users can compile and execute malicious files outside the deployment directory, potentially leading to remote code execution if trusted security levels are enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tgstation-server","vendor":"tgstation13"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"tgstation-server is a production scale tool for BYOND server management. Prior to 6.8.0, low permission users using the \"Set .dme Path\" privilege could potentially set malicious .dme files existing on the host machine to be compiled and executed. These .dme files could be uploaded via tgstation-server (requiring a separate, isolated privilege) or some other means. A server configured to execute in BYOND's trusted security level (requiring a third separate, isolated privilege OR being set by another user) could lead to this escalating into remote code execution via BYOND's shell() proc. The ability to execute this kind of attack is a known side effect of having privileged TGS users, but normally requires multiple privileges with known weaknesses. This vector is not intentional as it does not require control over the where deployment code is sourced from and _may_ not require remote write access to an instance's `Configuration` directory. This problem is fixed in versions 6.8.0 and above.","ecosystems":["NuGet"],"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":"tgstation-server's DreamMaker environment files outside the deployment directory can be compiled and ran by insufficiently permissioned users","id":"CVE-2024-41799","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":4,"n_references":3,"next":{"headline":"Craft CMS Allows TOTP Token To Stay Valid After Use","id":"CVE-2024-41800"},"packages":[{"ecosystem":"NuGet","fixed":["6.8.0"],"introduced":["4.0.0"],"last_affected":[],"package":"Tgstation.Server.Api","purl":null,"source":"GHSA-c3h4-9gc2-f7h4"},{"ecosystem":"NuGet","fixed":["6.8.0"],"introduced":["4.0.0"],"last_affected":[],"package":"Tgstation.Server.Api","purl":"pkg:nuget/Tgstation.Server.Api","source":"GHSA-c3h4-9gc2-f7h4"},{"ecosystem":"NuGet","fixed":["6.8.0"],"introduced":["4.0.0"],"last_affected":[],"package":"Tgstation.Server.Host","purl":null,"source":"GHSA-c3h4-9gc2-f7h4"},{"ecosystem":"NuGet","fixed":["6.8.0"],"introduced":["4.0.0"],"last_affected":[],"package":"Tgstation.Server.Host","purl":"pkg:nuget/Tgstation.Server.Host","source":"GHSA-c3h4-9gc2-f7h4"}],"prev":{"headline":"Auth bypass in SENTRON 7KM PAC3200","id":"CVE-2024-41798"},"products":["tgstation-server"],"published":"2024-07-29","related":[{"cvss_score":9.8,"headline":"tgstation-server cached user logins in legacy server","id":"CVE-2018-17107","kev_date_added":null,"published":"2018-09-24"},{"cvss_score":8.8,"headline":"tgstation-server's role authorization incorrectly OR'd with user's enabled status","id":"CVE-2025-21611","kev_date_added":null,"published":"2025-01-06"},{"cvss_score":7.7,"headline":"Insufficiently Protected ChatBot Credentials in tgstation-server","id":"CVE-2023-32687","kev_date_added":null,"published":"2023-05-29"},{"cvss_score":7.7,"headline":"Path traversal in n/a","id":"CVE-2020-16136","kev_date_added":null,"published":"2020-07-31"},{"cvss_score":6.1,"headline":"Incorrectly Specified Chat Message Destinations in tgstation-server and DreamMaker API","id":"CVE-2023-33198","kev_date_added":null,"published":"2023-05-30"},{"cvss_score":5.8,"headline":"Windows user name disclosure in TGstation","id":"CVE-2023-34243","kev_date_added":null,"published":"2023-06-08"}],"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":"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":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["tgstation"]},"summary":"Low-privilege users can compile and execute malicious files outside the deployment directory, potentially leading to remote code execution if trusted security levels are enabled.","url":"https://insights.sbomify.com/CVE-2024-41799/"}