# CVE-2024-41799: tgstation-server's DreamMaker environment files outside the deployment directory can be compiled and ran by insufficiently permissioned users

- Severity: High 8.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.21%, higher than 69% of CVEs (2026-12-01)
- Published: 2024-07-29T15:00:23.851Z
- Modified: 2026-09-10T03:50:16.586Z
- Also known as: GHSA-c3h4-9gc2-f7h4
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- tgstation tgstation-server: >= 4.0.0, < 6.8.0
- tgstation13 tgstation-server: from 4.0.0.0 before 6.8.0; from 4.0.0 before 6.8.0
- Tgstation.Server.Api (NuGet): from 4.0.0 before 6.8.0
- Tgstation.Server.Host (NuGet): from 4.0.0 before 6.8.0

## Every score

- GitHub_M: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H`
- GitHub: CVSS:3.1 8.4 High `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/tgstation/tgstation-server/security/advisories/GHSA-c3h4-9gc2-f7h4> (vendor-advisory, web)
- <https://github.com/tgstation/tgstation-server/pull/1835> (issue-tracking, web)
- <https://github.com/tgstation/tgstation-server/commit/374852fe5ae306415eb5aafb2d16b06897d7afe4> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-41799> (advisory)
- <https://github.com/tgstation/tgstation-server> (package)

## Sources

- CVE List: [CVE-2024-41799](https://www.cve.org/CVERecord?id=CVE-2024-41799), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-c3h4-9gc2-f7h4](https://github.com/advisories/GHSA-c3h4-9gc2-f7h4), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-41799](https://nvd.nist.gov/vuln/detail/CVE-2024-41799), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-41799 · Whole record: https://cve.day/CVE-2024-41799.json · Rebuilt by cve.day 2026-11-25T22:58:43.322Z
