Command Injection in node-gitlog - CVE-2021-26541

 

Command Injection in node-gitlog - CVE-2021-26541

Published: February 16, 2021


Vulnerability identifier: #VU50733
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-26541
CWE-ID: CWE-77
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary commands on the target system.

The vulnerability exists due to improper input validation in the "gitlog" function in "src/index.ts". A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary commands on the target system.


Affected software

node-gitlog

How to mitigate CVE-2021-26541

Install updates from vendor's website.

node-gitlog - update to 4.0.4

External References

Related Security Bulletins