Remote Code Execution Affecting curling package, versions *


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-CURLING-1060043
  • published14 Jan 2021
  • disclosed14 Jan 2021
  • creditAlexey Solovyev

Introduced: 14 Jan 2021

CVE NOT AVAILABLE CWE-58  (opens in a new tab)

How to fix?

There is no fixed version for curling.

Overview

curling is a node wrapper for curl with a very simple api.

Affected versions of this package are vulnerable to Remote Code Execution. The regular expression in run() in lib/curl-transport.js does not perform proper validation. Combined with curl, this can lead to the injection of arbitrary commands.

PoC

const curling = require('curling');

curling.run('file:///etc/passwd -o ./index.js', function(d, payload){console.log(payload)});

CVSS Scores

version 3.1