Command Injection in samsung-remote

samsung-remote Updated 02 Oct 2025

Summary

01/09/2020
CRITICAL
Yes i
Critical
Not published

GHSA-xhjx-mfr6-9rr4: Command Injection in samsung-remote. Affects samsung-remote versions < 1.3.5. Fixed in 1.3.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The samsung-remote package is an npm package that provides a remote control interface for Samsung TVs. It allows users to control their Samsung TVs programmatically by sending commands over the network. The package is widely used in applications that require remote control functionality for Samsung TVs.

Vulnerability Detail

Versions of samsung-remote before 1.3.5 are vulnerable to command injection. This vulnerability occurs when user input is not properly sanitized and is directly passed into the ip option of the package constructor. An attacker can exploit this vulnerability by injecting malicious commands into the ip option, which will be executed on the target system. This can lead to unauthorized remote code execution, allowing the attacker to take control of the Samsung TV or perform other malicious actions.

How To Fix

Minimum fixed version

1.3.5

This is the first release that contains the fix.

npm install samsung-remote@1.3.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If updating to the latest version is not immediately possible, a temporary workaround is to manually sanitize user input before passing it to the ip option. This can be done by validating and sanitizing the input to ensure it only contains valid IP addresses and does not include any malicious commands.

Conclusion

The samsung-remote package before version 1.3.5 is vulnerable to command injection, which can lead to unauthorized remote code execution. It is crucial to update to the latest version or apply the recommended workaround to mitigate the risk. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for samsung-remote →

Share this vulnerability

FAQ

This vulnerability can allow an attacker to execute arbitrary commands on the target system, potentially leading to unauthorized remote code execution and full control of the Samsung TV.

There are currently no known public exploits for this vulnerability. However, it is important to update to the latest version or apply the recommended workaround to mitigate the risk.

No, only versions before 1.3.5 are affected. It is recommended to update to version 1.3.5 or later to fix the vulnerability.

Yes, this vulnerability can be exploited remotely if the affected application is exposed to the internet or accessible by an attacker on the same network.

In addition to updating to the latest version or applying the recommended workaround, it is also recommended to ensure that the affected application is not directly exposed to the internet and is protected by a firewall or other network security measures.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

1.3.5

This is the first release that contains the fix.

npm install samsung-remote@1.3.5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback