{"id":"CVE-2024-41799","aliases":["CVE-2024-41799","GHSA-c3h4-9gc2-f7h4"],"related":[],"kind":"vulnerability","state":"published","title":"tgstation-server's DreamMaker environment files outside the deployment directory can be compiled and ran by insufficiently permissioned users","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nLow permission users using the \"Set .dme Path\" privilege could potentially set malicious .dme files existing on the host machine to be compiled and executed. \n\nThese .dme files could be uploaded via tgstation-server (requiring a separate, isolated privilege) or some other means.\n\nA 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.\n\nThe 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.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nThis problem is patched by pull request #1835 and fixed in versions 6.8.0 and above.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nDo not give un-trusted users the Deployment permission to set a .dme path on instances.","format":"markdown","source":"ghsa"},{"lang":"es","text":"tgstation-server es una herramienta a escala de producción para la gestión de servidores BYOND. Antes de 6.8.0, los usuarios con permisos bajos que usaban el privilegio \"Set .dme Path\" podían configurar archivos .dme maliciosos existentes en la máquina host para compilarlos y ejecutarlos. Estos archivos .dme se pueden cargar a través del servidor tgstation (que requiere un privilegio aislado e independiente) o por algún otro medio. Un servidor configurado para ejecutarse en el nivel de seguridad confiable de BYOND (que requiere un tercer privilegio separado y aislado O que lo establezca otro usuario) podría llevar a que esto se convierta en una ejecución remota de código a través del proceso shell() de BYOND. La capacidad de ejecutar este tipo de ataque es un efecto secundario conocido de tener usuarios privilegiados de TGS, pero normalmente requiere múltiples privilegios con debilidades conocidas. Este vector no es intencional ya que no requiere control sobre el origen del código de implementación y _puede_ no requerir acceso de escritura remota al directorio \"Configuration\" de una instancia. Este problema se solucionó en las versiones 6.8.0 y superiores.","source":"nvd"}],"published":"2024-07-29T15:00:23.851Z","modified":"2026-09-10T03:50:16.586Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H","score":8.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H","score":8.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:L/VA:H/SC:H/SI:L/SA:H","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":">= 4.0.0, < 6.8.0","status":"affected"}],"vendor":"tgstation","product":"tgstation-server","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"4.0.0.0","fixed":"6.8.0","status":"affected"}],"vendor":"tgstation13","product":"tgstation-server","cpe":"cpe:2.3:a:tgstation13:tgstation-server:4.0.0.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"6.8.0"}],"ecosystem":"NuGet","package":"Tgstation.Server.Api","purl":"pkg:nuget/Tgstation.Server.Api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.0.0","status":"affected","fixed":"6.8.0"}],"ecosystem":"NuGet","package":"Tgstation.Server.Host","purl":"pkg:nuget/Tgstation.Server.Host","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.0.0","fixed":"6.8.0"}],"vendor":"tgstation13","product":"tgstation-server","cpe":"cpe:2.3:a:tgstation13:tgstation-server:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/tgstation/tgstation-server/security/advisories/GHSA-c3h4-9gc2-f7h4","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tgstation/tgstation-server/pull/1835","tags":["issue-tracking","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/tgstation/tgstation-server/commit/374852fe5ae306415eb5aafb2d16b06897d7afe4","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41799","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/tgstation/tgstation-server","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-29T17:40:12.363Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-41799","url":"https://www.cve.org/CVERecord?id=CVE-2024-41799","licence":"CVE Terms of Use","modified":"2024-08-02T04:46:52.940Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c3h4-9gc2-f7h4","url":"https://github.com/advisories/GHSA-c3h4-9gc2-f7h4","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:16.586Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-41799","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-41799","licence":"Public domain","modified":"2026-06-17T07:48:15.367Z"}],"updatedAt":"2026-11-25T22:58:43.322Z","epss":{"score":0.0121,"percentile":0.69277,"date":"2026-12-01T12:00:22.000Z"}}