Pillow is a Python imaging library. Prior to 13.0.0, PILfont text-width accumulation in src/_imaging.c checks positive glyph advances against INT_MAX but does not check negative advances against INT_MIN. Repeating a signed 16-bit advance of -32768 can therefore execute a signed C integer overflow in xsize += dx, producing a large positive width from a negative mathematical result. Applications that use getlength(), getsize(), or derived layout, quota, serialization, or allocation calculations can experience logic-integrity errors or resource consumption, while the high-level mask path commonly retains a decompression-bomb check. This issue is fixed in version 13.0.0.
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
| Name | Vendor | Start Version | End Version |
|---|---|---|---|
| Pillow | Python | * | 13.0.0 (excluding) |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/vllm-rocm-rhel9:1793961846 | * |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/model-opt-cuda-rhel9:1793962303 | * |
| Red Hat AI Inference Server 3.2 | RedHat | rhaiis/vllm-cuda-rhel9:1793961309 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-cpu-rhel9:1793444554 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-rocm-rhel9:1793444456 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/model-opt-cuda-rhel9:1793444339 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-spyre-rhel9:1793444409 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-gaudi-rhel9:1793444510 | * |
| Red Hat AI Inference Server 3.5 | RedHat | rhaii/vllm-cuda-rhel9:1793444600 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/disk-image-cuda-rhel9:1793995863 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-aws-cuda-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-azure-cuda-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-azure-rocm-rhel9:1793973314 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-cuda-rhel9:1793914518 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-gcp-cuda-rhel9:1793973312 | * |
| Red Hat Enterprise Linux AI 3.5 | RedHat | rhelai3/bootc-rocm-rhel9:1793914504 | * |
| Pillow | Ubuntu | devel | * |
| Pillow | Ubuntu | esm-infra-legacy/trusty | * |
| Pillow | Ubuntu | esm-infra-legacy/xenial | * |
| Pillow | Ubuntu | esm-infra/bionic | * |
| Pillow | Ubuntu | esm-infra/focal | * |
| Pillow | Ubuntu | jammy | * |
| Pillow | Ubuntu | noble | * |
| Pillow | Ubuntu | resolute | * |
| Pillow | Ubuntu | stonking | * |
| Pillow | Ubuntu | upstream | * |