Snyk has a published code exploit for this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.
Start learningUpgrade mongo-express
to version 0.54.0 or higher.
mongo-express is a web-based MongoDB admin interface written with Node.js, Express and Bootstrap3
Affected versions of this package are vulnerable to Remote Code Execution (RCE) via endpoints that use the toBSON
method. A misuse of the vm
dependency to perform exec
commands in a non-safe environment.
# MacOS
this.constructor.constructor("return process")().mainModule.require('child_process').execSync('/Applications/Calculator.app/Contents/MacOS/Calculator')
it('should not be executable', function () {
const test = `
this.constructor.constructor("return console")().log(this.constructor.constructor("return process")().mainModule.require('child_process').execSync('id').toString())
`;
const result = bson.toBSON(calculatorTest);
});