{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/46849?format=json","vulnerability_id":"VCID-kj4t-eqt9-x7c1","summary":"Arbitrary Code Execution in Pillow\nPillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).","aliases":[{"alias":"CVE-2023-50447"},{"alias":"GHSA-3f63-hfp8-52jq"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/50050?format=json","purl":"pkg:pypi/pillow@10.2.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-9hza-srk7-sucy"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:pypi/pillow@10.2.0"}],"affected_packages":[],"references":[{"reference_url":"https://duartecsantos.github.io/2023-01-02-CVE-2023-50447","reference_id":"","reference_type":"","scores":[],"url":"https://duartecsantos.github.io/2023-01-02-CVE-2023-50447"},{"reference_url":"https://duartecsantos.github.io/2024-01-02-CVE-2023-50447","reference_id":"","reference_type":"","scores":[],"url":"https://duartecsantos.github.io/2024-01-02-CVE-2023-50447"},{"reference_url":"https://github.com/python-pillow/Pillow","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/python-pillow/Pillow"},{"reference_url":"https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/python-pillow/Pillow/commit/45c726fd4daa63236a8f3653530f297dc87b160a"},{"reference_url":"https://github.com/python-pillow/Pillow/releases","reference_id":"","reference_type":"","scores":[],"url":"https://github.com/python-pillow/Pillow/releases"},{"reference_url":"https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html","reference_id":"","reference_type":"","scores":[],"url":"https://lists.debian.org/debian-lts-announce/2024/01/msg00019.html"},{"reference_url":"https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security","reference_id":"","reference_type":"","scores":[],"url":"https://pillow.readthedocs.io/en/stable/releasenotes/10.2.0.html#security"},{"reference_url":"https://devhub.checkmarx.com/cve-details/CVE-2023-50447","reference_id":"CVE-2023-50447","reference_type":"","scores":[],"url":"https://devhub.checkmarx.com/cve-details/CVE-2023-50447"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50447","reference_id":"CVE-2023-50447","reference_type":"","scores":[],"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50447"},{"reference_url":"https://github.com/advisories/GHSA-3f63-hfp8-52jq","reference_id":"GHSA-3f63-hfp8-52jq","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-3f63-hfp8-52jq"}],"weaknesses":[{"cwe_id":94,"name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment."},{"cwe_id":95,"name":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')","description":"The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. eval)."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."}],"exploits":[],"severity_range_score":null,"exploitability":null,"weighted_severity":null,"risk_score":null,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-kj4t-eqt9-x7c1"}