Improper Output Neutralization for Logs Affecting ms-swift package, versions [,3.7.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Output Neutralization for Logs vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MSSWIFT-11502591
  • published7 Aug 2025
  • disclosed31 Jul 2025
  • creditTencentAISec

Introduced: 31 Jul 2025

New CVE NOT AVAILABLE CWE-117  (opens in a new tab)

How to fix?

Upgrade ms-swift to version 3.7.0 or higher.

Overview

ms-swift is a Swift: Scalable lightWeight Infrastructure for Fine-Tuning

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the train method. An attacker can execute arbitrary system commands by injecting malicious input into parameters that are concatenated into shell commands.

PoC

/tmp/xxx'; touch /tmp/inject_success_1; #

References

CVSS Base Scores

version 4.0
version 3.1