Vulnerability Information
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
Vulnerability Title
PHP_CodeSniffer gitblame report command injection via crafted filename
Vulnerability Description
PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards. Prior to versions 3.13.6 and 4.0.2, PHP_CodeSniffer contains a command injection vulnerability in the code that generates the Gitblame, Hgblame, and Svnblame report formats. As a result, running PHP_CodeSniffer over untrusted files, for example in a continuous integration pipeline that scans pull requests, or on a developer machine reviewing third party code, could result in attacker controlled shell commands being executed when the Gitblame, Hgblame, or Svnblame report processes a file whose name contains shell metacharacters. Users using the default Full report, or any of the other non-blame reports, are not affected. Users on a runtime platform which does not allow filenames to contain shell metacharacters, such as " and ;, are not affected. This issue is fixed in versions 3.13.6 and 4.0.2.
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Vulnerability Title
PHPCSStandards PHP_CodeSniffer 命令注入漏洞
Vulnerability Description
PHPCSStandards PHP_CodeSniffer是PHPCSStandards组织的一款PHP代码规范检查工具。 PHPCSStandards PHP_CodeSniffer 3.13.6之前版本和4.0.0至4.0.2之前版本存在命令注入漏洞,该漏洞源于生成Gitblame、Hgblame和Svnblame报告格式时,对包含shell元字符的文件名处理不当,导致命令注入,可能执行攻击者控制的shell命令。
CVSS Information
N/A
Vulnerability Type
N/A