CVE-2013-7377: Command Injection in codem-transcode

codem-transcode Updated 02 Oct 2025

Summary

28/11/2017
Yes i
High
8.1

CVE-2013-7377: Potential Command Injection in codem-transcode. Affects codem-transcode versions < 0.5.0. Fixed in 0.5.0. 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

codem-transcode is an npm package that provides functionality for transcoding media files. It includes an optional feature to enable ffprobe, a tool for analyzing media files. By default, ffprobe functionality is disabled, and the server binds to the local interface. However, when ffprobe is enabled, HTTP POST requests can be made to the /probe endpoint, which passes the requests to the ffprobe binary on the server. This vulnerability allows an attacker to execute arbitrary commands by sending a malformed source file name to ffprobe.

Vulnerability Detail

The vulnerability arises from the lack of input validation in the handling of source file names by ffprobe. An attacker can exploit this by crafting a malicious source file name that includes arbitrary commands. When this file name is passed to ffprobe through the /probe endpoint, the commands will be executed with the privileges of the server. This can lead to various consequences, such as unauthorized access, data leakage, or even complete compromise of the server.

How To Fix

Minimum fixed version

0.5.0

This is the first release that contains the fix.

npm install codem-transcode@0.5.0

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

Workaround

If upgrading to the patched version is not immediately feasible, a temporary workaround is to disable the ffprobe functionality by modifying the server configuration. By disabling ffprobe, the vulnerable endpoint (/probe) will no longer be accessible, mitigating the risk of command injection. The specific steps to disable ffprobe may vary depending on the server configuration and deployment environment.

Conclusion

The command injection vulnerability in codem-transcode can be mitigated by upgrading to version 0.5.0 or by disabling the ffprobe functionality. It is important to take prompt action to protect your system from potential exploitation. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for codem-transcode →

Share this vulnerability

FAQ

codem-transcode is an npm package that provides functionality for transcoding media files. It includes features for analyzing media files using ffprobe.

The vulnerability occurs due to the lack of input validation in the handling of source file names by ffprobe. An attacker can exploit this by sending a specially crafted source file name that includes arbitrary commands.

The consequences of this vulnerability can vary depending on the privileges of the server. However, it can lead to unauthorized access, data leakage, or complete compromise of the server.

No, the ffprobe functionality is not enabled by default. It needs to be explicitly enabled in the server configuration.

To fix this vulnerability, it is recommended to upgrade to version 0.5.0 of the codem-transcode module. Alternatively, you can disable the ffprobe functionality in the server configuration.

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

0.5.0

This is the first release that contains the fix.

npm install codem-transcode@0.5.0

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