[Snyk] Fix critical heap-based buffer overflow in Pillow #8978
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Issue
Snyk Link: SNYK-PYTHON-PILLOW-5918878
Issue Type:
Heap-based Buffer OverflowPriority: Critical
Summary: Pillow 8.3.2 contains a critical heap-based buffer overflow vulnerability (CVE-2023-4863) in libwebp that allows attackers to execute arbitrary code via crafted WebP files. Fixed by upgrading to Pillow 10.4.0.
Changes
pillowfrom8.3.2to10.4.0inmanual-testing-sandbox/requirements.txtAdditional Context
Snyk Issue Details
{ "vulnerability": { "id": "5fbfa035-8cec-4771-9f55-0b5f767e798e", "title": "Heap-based Buffer Overflow", "severity": "critical", "url": "https://security.snyk.io/vuln/SNYK-PYTHON-PILLOW-5918878", "description": "Heap-based Buffer Overflow", "cvssScore": 909, "packageName": "NVD", "isUpgradable": false, "isPatchable": false, "fixedIn": [], "upgradePath": [] }, "project": { "id": "19fa7992-fc8c-4050-aa18-2600afc162f8", "name": "continuedev/continue:manual-testing-sandbox/requirements.txt", "origin": "github", "type": "pip" }, "remediationHints": { "canUpgrade": false, "canPatch": false, "upgradeToVersions": [], "upgradePath": [] } }This agent session was co-authored by nate and Continue.
Summary by cubic
Upgraded Pillow from 8.3.2 to 10.0.1 to patch the critical libwebp heap-based buffer overflow (CVE-2023-4863) flagged by Snyk. This reduces RCE risk when processing WebP files in the manual testing sandbox.
Written for commit fec2bae. Summary will update automatically on new commits.