CVE-2024-41799 — Vulnerability in Tgstation.Server.Host — CVE Details
tgstation-server's DreamMaker environment files outside the deployment directory can be compiled and ran by insufficiently permissioned users
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.63%). Schedule for your next planned update.
Does your project use an affected Tgstation.Server.Host version?
Paste your packages.lock.json to check it for CVE-2024-41799 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
What kind of vulnerability is it? Who is impacted?
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.
Patches
Has the problem been patched? What versions should users upgrade to?
This problem is patched by pull request #1835 and fixed in versions 6.8.0 and above.
Workarounds
Is there a way for users to fix or remediate the vulnerability without upgrading?
Do not give un-trusted users the Deployment permission to set a .dme path on instances.
Advisory Timeline
- First published July 29, 2024 (850 days ago).
- Last revised September 10, 2026 — 772 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
dotnet add package Tgstation.Server.Host --version 6.8.0
dotnet add package Tgstation.Server.Api --version 6.8.0
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (2)
Affects 1 ecosystem: NuGet (2).
| Package | Fixed In |
|---|---|
| Tgstation.Server.Host NuGet · Affected: All versions | 6.8.0 |
| Tgstation.Server.Api NuGet · Affected: 4.0.0, 4.0.2, 6.1.0, 6.2.0 (+6 more) | 6.8.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H
References
- https://github.com/tgstation/tgstation-server/security/advisories/GHSA-c3h4-9gc2-f7h4WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-41799ADVISORY
- https://github.com/tgstation/tgstation-server/pull/1835WEB
- https://github.com/tgstation/tgstation-server/commit/374852fe5ae306415eb5aafb2d16b06897d7afe4WEB
- https://github.com/tgstation/tgstation-serverPACKAGE
Frequently Asked Questions
- What is CVE-2024-41799?
- tgstation-server's DreamMaker environment files outside the deployment directory can be compiled and ran by insufficiently permissioned users. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.4/10).
- How do I check if my project is affected by CVE-2024-41799?
- CVE-2024-41799 affects Tgstation.Server.Host and Tgstation.Server.Api. It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-41799 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 76.5% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-102529HIGH
HtmlSanitizer: CSS Removal DoS
- CVE-2026-63184HIGH
Refitter: Unrestricted OpenAPI references permit build-host SSRF and file inclusion