Description
The printDirect function in lib/printer.js in the node-printer module 0.0.1 and earlier for Node.js allows remote attackers to execute arbitrary commands via unspecified characters in the lpr command.
Remediation
References
http://www.openwall.com/lists/oss-security/2014/05/13/1
http://www.openwall.com/lists/oss-security/2014/05/15/2
https://github.com/tojocky/node-printer/commit/e001e38738c17219a1d9dd8c31f7d82b9c0013c7
https://nodesecurity.io/advisories/printer_potential_command_injection
Related Vulnerabilities
CVE-2021-21351 Vulnerability in maven package com.thoughtworks.xstream:xstream
CVE-2020-8135 Vulnerability in npm package @uppy/companion
CVE-2022-45935 Vulnerability in maven package org.apache.james:apache-james-mailbox-store
CVE-2023-30523 Vulnerability in maven package org.jenkins-ci.plugins:reportportal
CVE-2019-16542 Vulnerability in maven package org.jenkins-ci.plugins:anchore-container-scanner