{"url":"http://public2.vulnerablecode.io/api/packages/412851?format=json","purl":"pkg:composer/squizlabs/php_codesniffer@1.5.2","type":"composer","namespace":"squizlabs","name":"php_codesniffer","version":"1.5.2","qualifiers":{},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":"2.8.1","latest_non_vulnerable_version":"3.0.1","affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/362010?format=json","vulnerability_id":"VCID-cjfu-e1rn-1qdx","summary":"Arbitrary shell execution\nThis release contains a fix for a security advisory related to the improper handling of shell commands. Uses of `shell_exec()` and `exec()` were not escaping filenames and configuration settings in most cases A properly crafted filename or configuration option would allow for arbitrary code execution when using some features.","references":[{"reference_url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1"}],"fixed_packages":[],"aliases":["GMS-2017-112"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-cjfu-e1rn-1qdx"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/208601?format=json","vulnerability_id":"VCID-f7xv-brzk-57hm","summary":"Arbitrary shell execution","references":[{"reference_url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml"},{"reference_url":"https://github.com/squizlabs/PHP_CodeSniffer","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/squizlabs/PHP_CodeSniffer"},{"reference_url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1","reference_id":"","reference_type":"","scores":[{"value":"HIGH","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1"},{"reference_url":"https://github.com/advisories/GHSA-mhfv-8rc9-w38c","reference_id":"GHSA-mhfv-8rc9-w38c","reference_type":"","scores":[{"value":"HIGH","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-mhfv-8rc9-w38c"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/19856?format=json","purl":"pkg:composer/squizlabs/php_codesniffer@2.8.1","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/squizlabs/php_codesniffer@2.8.1"}],"aliases":["GHSA-mhfv-8rc9-w38c","GMS-2022-514"],"risk_score":4.0,"exploitability":"0.5","weighted_severity":"8.0","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-f7xv-brzk-57hm"},{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/362003?format=json","vulnerability_id":"VCID-np7j-auay-17at","summary":"Code Injection\nArbitrary shell execution in php_codesniffer.","references":[{"reference_url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/388952?format=json","purl":"pkg:composer/squizlabs/php_codesniffer@2.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-cjfu-e1rn-1qdx"},{"vulnerability":"VCID-f7xv-brzk-57hm"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/squizlabs/php_codesniffer@2.0.0"}],"aliases":["GMS-2017-344"],"risk_score":null,"exploitability":null,"weighted_severity":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-np7j-auay-17at"}],"fixing_vulnerabilities":[],"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/packages/pkg:composer/squizlabs/php_codesniffer@1.5.2"}