An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "binary_version": "7.0.0-4ubuntu0.8", "binary_name": "python-pil-doc" }, { "binary_version": "7.0.0-4ubuntu0.8", "binary_name": "python3-pil" }, { "binary_version": "7.0.0-4ubuntu0.8", "binary_name": "python3-pil-dbg" }, { "binary_version": "7.0.0-4ubuntu0.8", "binary_name": "python3-pil.imagetk" }, { "binary_version": "7.0.0-4ubuntu0.8", "binary_name": "python3-pil.imagetk-dbg" } ], "priority_reason": "Only consumes memory when very long strings are used as text input" }
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "binary_version": "9.0.1-1ubuntu0.2", "binary_name": "python-pil-doc" }, { "binary_version": "9.0.1-1ubuntu0.2", "binary_name": "python3-pil" }, { "binary_version": "9.0.1-1ubuntu0.2", "binary_name": "python3-pil-dbgsym" }, { "binary_version": "9.0.1-1ubuntu0.2", "binary_name": "python3-pil.imagetk" }, { "binary_version": "9.0.1-1ubuntu0.2", "binary_name": "python3-pil.imagetk-dbgsym" } ], "priority_reason": "Only consumes memory when very long strings are used as text input" }
{ "availability": "No subscription required", "ubuntu_priority": "low", "binaries": [ { "binary_version": "10.0.0-1", "binary_name": "python-pil-doc" }, { "binary_version": "10.0.0-1", "binary_name": "python3-pil" }, { "binary_version": "10.0.0-1", "binary_name": "python3-pil-dbgsym" }, { "binary_version": "10.0.0-1", "binary_name": "python3-pil.imagetk" }, { "binary_version": "10.0.0-1", "binary_name": "python3-pil.imagetk-dbgsym" } ], "priority_reason": "Only consumes memory when very long strings are used as text input" }