Vulnerabilities in pkg:npm/pi_video_recording

PACKAGE
Advisory Summary

GHSA-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/pi_video_recording

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:npm/pi_video_recording. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-9wjh-jr2j-6r4x - HIGH Remote Code Execution in pi_video_recording

GHSA-9wjh-jr2j-6r4x at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9wjh-jr2j-6r4x
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-20: Improper Input Validation
Affected Product Pi video recording
Package Ecosystem npm
Published Date
Last Updated

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.

pi_video_recording fixed: Latest secure release
npm install pi_video_recording@Latest secure release
Verify Direct and Transitive Dependencies

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

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 ## Recommendation No fix is currently available. Consider using an alternative module until a fix is made available.

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?
GHSA-9wjh-jr2j-6r4x is a security vulnerability in Pi video recording involving Remote Code Execution in pi_video_recording under CWE-20: Improper Input Validation.
Which Pi video recording versions are affected?
Affected versions include releases prior to current release patches across affected packages: pi_video_recording.
What version fixes GHSA-9wjh-jr2j-6r4x?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is pi_video_recording affected?
Yes, pi_video_recording is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-9wjh-jr2j-6r4x?
GHSA-9wjh-jr2j-6r4x is classified under CWE-20: Improper Input Validation (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.).
How can I check npm dependencies for GHSA-9wjh-jr2j-6r4x?
Run the dependency tree command: 'npm ls pi_video_recording'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}