Skip to main content

CVE-2024-41799 — Vulnerability in Tgstation.Server.Host — CVE Details

HIGH

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

Published July 29, 2024Updated September 10, 2026Source: OSV

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.

Check my packages.lock.json

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.

NuGet
Update Tgstation.Server.Host to 6.8.0 or later
dotnet add package Tgstation.Server.Host --version 6.8.0
NuGet
Update Tgstation.Server.Api to 6.8.0 or later
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).

PackageFixed In
Tgstation.Server.Host NuGet · Affected: All versions6.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.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.4 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
Low
Availability
High

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:H

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

CVSS Score
8.4

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
1.63%
EPSS percentile: 76.5

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

GHSA-c3h4-9gc2-f7h4

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my packages.lock.json