CVE-2020-13619: Locutus escapeshellarg command injection

CVE-2020-13619 · Severity: low · CVSS 3.1 · Published 2021-07-26

Locutus is a library that provides PHP standard library functions reimplemented in TypeScript/JavaScript. A command injection vulnerability in the escapeshellarg function allows remote attackers to execute arbitrary system commands on servers using affected versions, potentially leading to complete system compromise.

Technologies: locutus (npm). Vendors: npm.

Quick answers

Is CVE-2020-13619 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-13619 being exploited in the wild.
How severe is CVE-2020-13619?
Low severity, with a CVSS score of 3.1, published 26 July 2021.
Which products and versions are affected?
locutus (npm) SEMVER:introduced=0,last_affected=2.0.11.
Is there a fix for CVE-2020-13619?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2020-13619 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2020-13619?
Check whether you run locutus (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a command injection flaw (CWE-78) in the escapeshellarg function implementation within Locutus PHP through version 2.0.11. The vulnerable function fails to properly sanitize user-controlled input before passing it to shell commands, allowing an attacker to inject arbitrary shell metacharacters and escape sequences. The attack requires no authentication and is network-reachable via any application using the vulnerable function to process untrusted input. A successful exploit grants the attacker remote code execution with the privileges of the application process. Patches are available in versions after 2.0.11.

Affected products

  • Locutus Locutus through 2.0.11

Identifiers

  • CVE-2020-13619
  • GHSA-h86x-mv66-gr5q

Timeline

  • 2020-07-01: disclosed
  • 2021-07-26: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.