p PatchFirst

CVE-2026-40930

CVE-2026-40930 · LIBPNG: Chunk smuggling in push-mode APNG parser via unconsumed chunk body

This page contains facts from public vulnerability sources. Check the original advisory before updating.

LIBPNG is a reference library for use in applications that process PNG (Portable Network Graphics) raster image files. In version 1.8.0, three inter-frame chunk discard paths in the push-mode APNG parser clear the chunk-header flag without consuming the chunk body and CRC, allowing attacker-controlled bytes inside an ignored ancillary chunk to be reinterpreted as a fresh chunk header on the next call to `png_process_data`. Commit faf06924688b62d7c1654b5ceddedbde66ffadb4 fixes the issue.

CVSS 5.4 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • libpng

    Versions
    • = 1.8.0: Affected

    No fix published

  • libpng-apng

    Versions
    • >= 1.6.49, <= 1.6.57: Affected

    No fix published

  • libpng1.6 Debian:12

    Affected ranges
    • ECOSYSTEM: < 1.6.37-4

    Update to 1.6.37-4

  • libpng1.6 Debian:13

    Affected ranges
    • ECOSYSTEM: < 1.6.37-4

    Update to 1.6.37-4

  • libpng1.6 Debian:14

    Affected ranges
    • ECOSYSTEM: < 1.6.37-4

    Update to 1.6.37-4

  • libpng1.6 Ubuntu:Pro:20.04:LTS

    Versions
    • 1.6.37-1
    • 1.6.37-2
    • 1.6.37-2ubuntu0.1~esm1
    • 1.6.37-2ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: < 1.6.37-2ubuntu0.1~esm3

    Update to 1.6.37-2ubuntu0.1~esm3

  • libpng1.6 Ubuntu:22.04:LTS

    Versions
    • 1.6.37-3build4
    • 1.6.37-3build5
    • 1.6.37-3ubuntu0.1
    • 1.6.37-3ubuntu0.3
    • 1.6.37-3ubuntu0.4
    • 1.6.37-3ubuntu0.5
    Affected ranges
    • ECOSYSTEM: < 1.6.37-3ubuntu0.6

    Update to 1.6.37-3ubuntu0.6

Original sources

Check your server →