{"id":"CVE-2025-9300","summary":"saitoha libsixel img2sixel encoder.c sixel_debug_print_palette stack-based overflow","details":"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.","modified":"2026-08-12T15:15:07.787319Z","published":"2025-08-21T13:02:08.108Z","related":["openSUSE-SU-2025:15526-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9300.json","unresolved_ranges":[{"extracted_events":[{"introduced":"1.10.0"},{"last_affected":"1.10.0"},{"introduced":"1.10.1"},{"last_affected":"1.10.1"},{"introduced":"1.10.2"},{"last_affected":"1.10.2"},{"introduced":"1.10.3"},{"last_affected":"1.10.3"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"VulDB","cwe_ids":["CWE-119","CWE-121"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9300.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-9300"},{"type":"ADVISORY","url":"https://vuldb.com/?id.320905"},{"type":"ADVISORY","url":"https://vuldb.com/?submit.632366"},{"type":"REPORT","url":"https://github.com/saitoha/libsixel/issues/200"},{"type":"REPORT","url":"https://github.com/saitoha/libsixel/issues/200#issuecomment-3178785635"},{"type":"REPORT","url":"https://vuldb.com/?ctiid.320905"},{"type":"FIX","url":"https://github.com/saitoha/libsixel/commit/316c086e79d66b62c0c4bc66229ee894e4fdb7d1"},{"type":"EVIDENCE","url":"https://drive.google.com/file/d/1IIvvRFgUQZcySqeoqXXhsxd0HZCjClJ7/view?usp=sharing"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/saitoha/libsixel","events":[{"introduced":"0"},{"fixed":"24c34a23461a7d5034a43a365723ceda04eecdf5"},{"fixed":"316c086e79d66b62c0c4bc66229ee894e4fdb7d1"}],"database_specific":{"cpe":"cpe:2.3:a:saitoha:libsixel:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"1.8.7"}],"source":["CPE_RANGE","REFERENCES"]}}],"versions":["nightly-latest","v1.8.6","v1.8.5","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8.0","v1.7.3","v1.7.2","v1.7.1","v1.6.1","v1.5.2","v1.5.1","v1.5.0","v1.4.13","v1.4.12","v1.4.11","v1.4.10","v1.4.9","v1.4.8","v1.4.7","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4.0","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.1.2","v1.1.1","v1.1.0","v1.0.2","v1.0.1","v1.0.0","v0.28.0","v0.27.1","v0.27.0","v0.26.0","v0.25.5","v0.25.4","v0.25.3","v0.25.2","v0.25.1","v0.25.0","v0.24.2","v0.24.0","v0.23.2","v0.23.1","v0.23.0","v0.22.3","v0.22.2","v0.22.1","v0.22.0","v0.21.1","v0.21.0","v0.20.0","v0.19.6","v0.19.5","v0.19.4","v0.19.3","v0.19.2","v0.18.0","v0.17.2","v0.17.1","v0.17.0","v0.16.1","v0.16.0","v0.15.0","v0.14.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-9300.json","vanir_signatures_modified":"2026-08-12T15:15:07Z","vanir_signatures":[{"id":"CVE-2025-9300-4602e085","signature_type":"Line","signature_version":"v1","source":"https://github.com/saitoha/libsixel/commit/316c086e79d66b62c0c4bc66229ee894e4fdb7d1","target":{"file":"src/encoder.c"},"deprecated":false,"digest":{"line_hashes":["324341800310160323184982437435675500935","239212271903271994781398894234890973052","255605245299660600253827363630067496152","76709793144735232411283228931123182352","252586162127490786426823653755694609801","339985645142845336691561340843632246979","237216805159618240505545109782195305875"],"threshold":0.9}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/saitoha/libsixel/commit/316c086e79d66b62c0c4bc66229ee894e4fdb7d1","target":{"function":"sixel_debug_print_palette","file":"src/encoder.c"},"deprecated":false,"digest":{"function_hash":"333227096889767899294724403782450659792","length":316},"id":"CVE-2025-9300-be8ec105"}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"}]}