Vulnerability · Published Aug 21, 2025 · Assigned by VulDB
CVE-2025-9300saitoha libsixel img2sixel encoder.c sixel_debug_print_palette stack-based overflow
Medium 5.3
In plain English
A medium-severity stack buffer overflow in libsixel from saitoha. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 17% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
A vulnerability was found in saitoha libsixel up to 1.10.3. Affected by this issue is the function sixel_debug_print_palette of the file src/encoder.c of the component img2sixel. The manipulation results in stack-based buffer overflow. The attack must be initiated from a local position. The exploit has been made public and could be used. The patch is identified as 316c086e79d66b62c0c4bc66229ee894e4fdb7d1. Applying a patch is advised to resolve this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libsixel | no fix listed | DEBIAN-CVE-2025-9300 |
| Debian:13 | libsixel | no fix listed | DEBIAN-CVE-2025-9300 |
| Debian:14 | libsixel | 1:1.8.7-1 | DEBIAN-CVE-2025-9300 |
| Ubuntu:22.04:LTS | libsixel | no fix listed | UBUNTU-CVE-2025-9300 |
| Ubuntu:24.04:LTS | libsixel | no fix listed | UBUNTU-CVE-2025-9300 |
| Ubuntu:25.10 | libsixel | no fix listed | UBUNTU-CVE-2025-9300 |
| Ubuntu:26.04:LTS | libsixel | no fix listed | UBUNTU-CVE-2025-9300 |
| Ubuntu:26.10 | libsixel | no fix listed | UBUNTU-CVE-2025-9300 |
Affected products (as reported)
Weakness: CWE-121, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C
References
- VDB-320905 | saitoha libsixel img2sixel encoder.c sixel_debug_print_palette stack-based overflow vdb-entry, technical-description
- VDB-320905 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #632366 | LibSixel img2sixel LibSixel version 1.10.3 (commit 6dd664c) compiled on Aug 2 2025 and the newest master version. Heap Buffer Overflow third-party-advisory
- https://github.com/saitoha/libsixel/issues/200 issue-tracking
- https://github.com/saitoha/libsixel/issues/200#issuecomment-3178785635 issue-tracking
- https://drive.google.com/file/d/1IIvvRFgUQZcySqeoqXXhsxd0HZCjClJ7/view?usp=sharing exploit
- https://github.com/saitoha/libsixel/commit/316c086e79d66b62c0c4bc66229ee894e4fdb7d1 patch