GHSA-9wjh-jr2j-6r4x: Pi video recording Remote Code Execution Vulnerability
HIGHGHSA-9wjh-jr2j-6r4x is a HIGH remote code execution vulnerability (CWE-20: Improper Input Validation) affecting Pi video recording libraries in the npm ecosystem. The issue involves remote code execution in pi_video_recording. Remediation is available in the latest vendor maintenance releases.
GHSA-9wjh-jr2j-6r4x at a Glance
How to Fix GHSA-9wjh-jr2j-6r4x
To remediate this vulnerability, upgrade all affected Pi video recording dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install pi_video_recording@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls pi_video_recording
How to Check if You Are Affected
To determine whether your Node.js application is affected by GHSA-9wjh-jr2j-6r4x, inspect your project dependencies using npm:
npm ls pi_video_recording
Analyze the terminal output to locate any version of Pi video recording in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls pi_video_recording command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Pi video recording, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-9wjh-jr2j-6r4x Affected Pi video recording Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pi_video_recording
|
npm |
|
|
References
Frequently Asked Questions
What is GHSA-9wjh-jr2j-6r4x?
Which Pi video recording versions are affected?
What version fixes GHSA-9wjh-jr2j-6r4x?
Is pi_video_recording affected?
What CWE is associated with GHSA-9wjh-jr2j-6r4x?
How can I check npm dependencies for GHSA-9wjh-jr2j-6r4x?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9wjh-jr2j-6r4x",
"modified" : "2020-08-31T18:35:14Z",
"published" : "2020-09-02T15:55:58Z",
"aliases" : [ ],
"summary" : "Remote Code Execution in pi_video_recording",
"details" : "All versions of `pi_video_recording` are vulnerable to Remote Code Execution. Due to insufficient input validation the server executes arbitrary code through the /api/record/start endpoint. After running the server, `curl -POST -H \"Content-Type: application/json\" -d '{\"filename\": \" || touch /tmp/worked;\"}' http://localhost:5000/api/record/start`creates a file in the /tmp/ directory\n\n\n## Recommendation\n\nNo fix is currently available. Consider using an alternative module until a fix is made available.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "pi_video_recording"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://www.npmjs.com/advisories/773"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-08-31T18:35:14Z",
"nvd_published_at" : null
}
}