Description
Versions of the package git-commit-info before 2.0.2 are vulnerable to Command Injection such that the package-exported method gitCommitInfo () fails to sanitize its parameter commit, which later flows into a sensitive command execution API. As a result, attackers may inject malicious commands once they control the hash content.
Remediation
References
https://github.com/JPeer264/node-git-commit-info/commit/f7c491ede51f886a988af9b266797cb24591d18c
https://security.snyk.io/vuln/SNYK-JS-GITCOMMITINFO-5740174
https://github.com/JPeer264/node-git-commit-info/issues/24
Related Vulnerabilities
CVE-2021-21697 Vulnerability in maven package org.jenkins-ci.main:jenkins-core
CVE-2021-21413 Vulnerability in npm package isolated-vm
CVE-2011-1184 Vulnerability in maven package org.apache.tomcat:tomcat-catalina
CVE-2022-23622 Vulnerability in maven package org.xwiki.platform:xwiki-platform-web-templates
CVE-2021-28165 Vulnerability in maven package org.eclipse.jetty:jetty-io