{"schema":"threatline.record/2","record":{"id":"CVE-2026-59959","aliases":["GHSA-5g8g-g347-84m8"],"summary":"SAIL: WebP decoder division by zero through malformed animated canvas metadata","details":"SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to version 1.0.2, the built-in WebP decoder can crash during loader initialization when processing a malformed animated WebP file with inconsistent container or `ANMF` frame metadata. In `sail_codec_load_init_v8_webp()` in `src/sail-codecs/webp/webp.c`, `WebPDemuxGetI` with `WEBP_FF_CANVAS_WIDTH` can return a zero `image_local->width`, which is then used as a divisor when calculating `bytes_per_pixel` from the image row size. The division happens before frame decoding and before generic image skeleton validation in `src/sail/sail_advanced.c`, causing an arithmetic fault and process termination. Applications accepting untrusted WebP images can consequently suffer denial of service; builds must include the affected WebP codec. This issue is fixed in version 1.0.2.","categories":["Unclassified"],"product":"sail","vendor":"HappySeaFox","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-59959","source_modified_at":"2026-10-28T13:17:29.214Z","fetched_at":"2026-10-28T15:55:58.673066Z","product":"sail","vendor":"HappySeaFox","versions":[{"version":"< 1.0.2","status":"affected"}],"defaultStatus":null}],"fixed_versions":[],"cvss":4.8,"severity":"Medium","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-28T13:17:29.214Z","modified_at":"2026-10-28T13:17:29.214Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-59959","fetched_at":"2026-10-28T15:55:58.673066Z","source_modified_at":"2026-10-28T13:17:29.214Z"}],"sources":["CVE List"],"references":[{"source":"CVE List","url":"https://github.com/HappySeaFox/sail/security/advisories/GHSA-5g8g-g347-84m8","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/HappySeaFox/sail/commit/495660135a4c62e416a1b357a4381dd30069229d","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/HappySeaFox/sail/tree/v1.0.2","tags":["x_refsource_MISC"]}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","cvss_source":"CVE List","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":null,"confidence":"unknown","reviewed":false},"change_timestamp":"2026-10-28T13:17:29.214Z","content_hash":"b1e48ca1eaac2e32a3c0f3ec5f0aadb447ab32f98196e77b82b7c4153611087a"}}
