VYPR
Critical severity9.8NVD Advisory· Published Oct 23, 2017· Updated May 13, 2026

CVE-2014-3741

CVE-2014-3741

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
printernpm
< 0.0.20.0.2

Affected products

1

Patches

1
e001e38738c1

Removed possible command injection

https://github.com/tojocky/node-printerchieffancypantsJun 28, 2013via ghsa
1 file changed · +1 1
  • lib/printer.js+1 1 modified
    @@ -93,7 +93,7 @@ function printDirect(parameters){
         }else if (!printer_helper.printDirect){// should be POSIX
             var temp_file_name = path.join(os.tmpDir(),"printing");
             fs.writeFileSync(temp_file_name, data);
    -        child_process.exec('lpr -P'+printer+' -oraw -r'+' '+temp_file_name, function(err, stdout, stderr){
    +        child_process.execFile('lpr', ['-P' + printer, '-oraw', '-r', temp_file_name], function(err, stdout, stderr){
                 if (err !== null) {
                     error('ERROR: ' + err);
                     return;
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

7

News mentions

0

No linked articles in our index yet.