CVE-2020-28440:Command Injection vulnerability in corenlp-js-interface package allows attackers to execute arbitrary commands.

splash
Back

Description Preview

All versions of the corenlp-js-interface npm package are vulnerable to Command Injection (CWE-78). The vulnerability exists in the main function of the package, which fails to properly sanitize user input before passing it to system commands. This allows attackers to inject malicious commands that will be executed on the host system with the privileges of the application running the corenlp-js-interface package.

Overview

The corenlp-js-interface package is a JavaScript interface for Stanford CoreNLP, which is a natural language processing toolkit. The vulnerability occurs because the package does not properly validate or sanitize input parameters before using them in shell command execution. An attacker who can control input to the main function can potentially execute arbitrary system commands, leading to a complete compromise of the affected system. This is a critical security issue as it could allow remote code execution in applications using this package.

Remediation

As of the CVE publication, there is no fixed version available for the corenlp-js-interface package. Users are advised to:

  1. Consider replacing corenlp-js-interface with an alternative package that provides similar functionality without the security vulnerability.
  2. If continued use is necessary, implement additional input validation and sanitization before passing any data to the corenlp-js-interface functions.
  3. Limit the permissions of the process running applications that use this package.
  4. Monitor for updates from the package maintainers that address this vulnerability.
  5. Consider implementing a Web Application Firewall (WAF) or similar protection mechanism to filter potentially malicious inputs.

References

  1. https://snyk.io/vuln/SNYK-JS-CORENLPJSINTERFACE-1050435 - Detailed vulnerability report by Snyk
  2. https://cwe.mitre.org/data/definitions/78.html - Information about Command Injection vulnerabilities (CWE-78)
  3. https://www.npmjs.com/package/corenlp-js-interface - Package information on npm registry

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database