---
title: "CX-2021-4801"
date: "2021-06-29T07:00:00+00:00"
url: "https://checkmarx.com/zero/vulnerabilities/cx-2021-4801/"
---

# CX-2021-4801

[Disclosed vulnerabilities](https://checkmarx.com/zero/vulnerabilities/)

Fixed: Jun 29, 2021

No CVE assigned  **Published:** Jun 29, 2021

9.3 Critical Severity javascript node nodejs npm RCE

AZ Adar Zandberg  Reported by Checkmarx Zero

Details Overview

## Summary

Affected versions of the `coveralls` npm package are vulnerable to command injection attack via unsafe `exec` usage in `fetchGitData.js`.

## Product

Coveralls before 3.1.1.

## Impact

This issue may lead to remote code execution if a client of the library calls the vulnerable method with untrusted input.

## Steps to reproduce

`poc.js`:

```js
process.env.COVERALLS_GIT_COMMIT = "; touch HACKED;"

var coveralls = require("coveralls")
coveralls.getBaseOptions((a, b) => {});
```

### Expected result:

A file named `HACKED` will be created.

## Remediation

1. Avoid passing untrusted input into the vulnerable parameters when using the library.
2. Update `coveralls` to version 3.1.1.

## Credit

This issue was discovered and reported by Checkmarx SCA Security Analyst [Adar Zandberg](https://www.linkedin.com/in/adarz).

## Resources

1. [565da5f](https://github.com/nickmerwin/node-coveralls/commit/565da5f354758903445db6cbee3bdba9ec697b9e)

0  Critical Severity CVSS v3.1 Score

   9.3

CVSS v3.1 Vectors- Attack Vector: Local
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Changed
- Confidentiality Impact: High
- Integrity Impact: High
- Availability Impact: High

Advisory Timeline1. Disclosed Mar 24, 2021
2. Fixed Jun 29, 2021

## Explore more findings

[27 Nov 2025 CVE-2025-34281  Stored Cross-Site Scripting (XSS) in ThingsBoard   6.2  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-34281/) [17 Jan 2025 CVE-2025-0825  HTTP Response Splitting in cpp-httplib   6.9  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-0825/) [17 Jun 2025 CVE-2025-6050  Stored Cross-Site Scripting (XSS) in Mezzanine CMS Admin Interface   4.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2025-6050/) [12 Dec 2024 CVE-2024-8374  Code Injection in UltiMaker Cura   7.8  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-8374/) [14 Nov 2024 CVE-2024-52526  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-52526/) [14 Nov 2024 CVE-2024-51497  Stored Cross-site Scripting in @LibreNMS/LibreNMS Custom OID Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51497/) [14 Nov 2024 CVE-2024-51496  Reflected Cross-site Scripting in @LibreNMS/LibreNMS /wireless and /health endpoints   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51496/) [  14 Nov 2024 CVE-2024-51495  Stored Cross-site Scripting in @LibreNMS/LibreNMS Device Overview `overwrite\_ip` Field   7.5  Visit the page ](https://checkmarx.com/zero/vulnerabilities/cve-2024-51495/) [14 Nov 2024 CVE-2024-51494  Stored Cross-site Scripting in @LibreNMS/LibreNMS Port Settings   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-51494/) [14 Nov 2024 CVE-2024-50352  Stored Cross-site Scripting in @LibreNMS/LibreNMS Services Section of Device Overview   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-50352/) [14 Nov 2024 CVE-2024-50351  Reflected Cross-site Scripting in @LibreNMS/LibreNMS Logs Tab   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-50351/) [14 Nov 2024 CVE-2024-50350  Stored Cross-site Scripting in @LibreNMS/LibreNMS Port Settings Port Group   7.5  Visit the page](https://checkmarx.com/zero/vulnerabilities/cve-2024-50350/)
