{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-33416 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2026-33416 is a high-severity use after free vulnerability in Libpng Libpng, published on 26 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-33416 and fix it if it is affected.\n\nWhat it is: CVE-2026-33416 is a high-severity use after free vulnerability in Libpng Libpng, published on 26 Mar 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-33416 in the wild and no public exploit code.\n\nAffected product: Libpng Libpng. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-33416/ (Markdown: https://insights.sbomify.com/CVE-2026-33416/index.md)","id":"CVE-2026-33416","markdown":"https://insights.sbomify.com/CVE-2026-33416/index.md","name":"CVE-2026-33416","record":{"aliases":["ALPINE-CVE-2026-33416","ALSA-2026:18028","ALSA-2026:18064","ALSA-2026:26347","ALSA-2026:26348","ALSA-2026:28244","ALSA-2026:29898","AZL-80990","AZL-81315","AZL-81324","AZL-81330","AZL-81333","AZL-81336","AZL-81345","BELL-CVE-2026-33416","CLEANSTART-2026-EK14398","CLSA-2026-1776422998","CLSA-2026-1776424888","CLSA-2026-1781080639","CLSA-2026-1783520301","DEBIAN-CVE-2026-33416","ECHO-5ebc-a922-bbda","GHSA-m4pc-p4q3-4c7j","JLSEC-2026-95","MINI-45v5-7wgh-f7xr","RHSA-2026:18028","RHSA-2026:18064","RHSA-2026:20548","RHSA-2026:20549","RHSA-2026:20550","RHSA-2026:20551","RHSA-2026:26347","RHSA-2026:26348","RHSA-2026:28244","RHSA-2026:28456","RHSA-2026:28457","RHSA-2026:28458","RHSA-2026:29016","RHSA-2026:29018","RHSA-2026:29019","RHSA-2026:29020","RHSA-2026:29021","RHSA-2026:29022","RHSA-2026:29898","RHSA-2026:29900","RHSA-2026:29901","RHSA-2026:29902","RHSA-2026:43702","RHSA-2026:50808","RLSA-2026:18028","RLSA-2026:18064","RLSA-2026:26347","RLSA-2026:26348","RLSA-2026:28244","RLSA-2026:29898","ROOT-OS-ALPINE-315-CVE-2026-33416","SUSE-SU-2026:1311-1","SUSE-SU-2026:1323-1","UBUNTU-CVE-2026-33416"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PNG image library","requires_auth":"none","summary":"A use-after-free vulnerability in libpng allows attackers to execute arbitrary code or cause denial of service via crafted PNG files.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"libpng","vendor":"libpng"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. In versions 1.2.1 through 1.6.55, `png_set_tRNS` and `png_set_PLTE` each alias a heap-allocated buffer between `png_struct` and `png_info`, sharing a single allocation across two structs with independent lifetimes. The `trans_alpha` aliasing has been present since at least libpng 1.0, and the `palette` aliasing since at least 1.2.1. Both affect all prior release lines `png_set_tRNS` sets `png_ptr-\u003etrans_alpha = info_ptr-\u003etrans_alpha` (256-byte buffer) and `png_set_PLTE` sets `info_ptr-\u003epalette = png_ptr-\u003epalette` (768-byte buffer). In both cases, calling `png_free_data` (with `PNG_FREE_TRNS` or `PNG_FREE_PLTE`) frees the buffer through `info_ptr` while the corresponding `png_ptr` pointer remains dangling. Subsequent row-transform functions dereference and, in some code paths, write to the freed memory. A second call to `png_set_tRNS` or `png_set_PLTE` has the same effect, because both functions call `png_free_data` internally before reallocating the `info_ptr` buffer. Version 1.6.56 fixes the issue.","ecosystems":["AlmaLinux:10","AlmaLinux:8","AlmaLinux:9","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_aus:8.4::baseos","Red Hat:rhel_aus:8.6::appstream","Red Hat:rhel_aus:8.6::baseos","Red Hat:rhel_e4s:8.8::appstream","Red Hat:rhel_e4s:8.8::baseos","Red Hat:rhel_e4s:9.2::appstream","Red Hat:rhel_e4s:9.2::baseos","Red Hat:rhel_e4s:9.4::appstream","Red Hat:rhel_els:7","Red Hat:rhel_eus:9.4::appstream","Red Hat:rhel_eus:9.4::baseos","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::baseos","Red Hat:rhel_eus_long_life:8.4::appstream","Red Hat:rhel_eus_long_life:8.4::baseos","Red Hat:rhel_eus_long_life:8.6::appstream","Red Hat:rhel_eus_long_life:8.6::baseos","Red Hat:rhel_tus:8.8::appstream","Red Hat:rhel_tus:8.8::baseos","Rocky Linux:10","Rocky Linux:8","Rocky Linux:9","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Server 12 SP5-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"LIBPNG has use-after-free via pointer aliasing in `png_set_tRNS` and `png_set_PLTE`","id":"CVE-2026-33416","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libpng:libpng","products":["libpng:libpng"],"type":"use_after_free","year":"2026"},"n_packages":188,"n_references":6,"next":{"headline":"Wallos: Password Reset Tokens Never Expire","id":"CVE-2026-33417"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/almalinux/libpng","source":"ALSA-2026:18064"},{"ecosystem":"AlmaLinux:10","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/almalinux/libpng-devel","source":"ALSA-2026:18064"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/almalinux/libpng","source":"ALSA-2026:29898"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/almalinux/libpng-devel","source":"ALSA-2026:29898"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.57-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng12","purl":"pkg:rpm/almalinux/libpng12","source":"ALSA-2026:26348"},{"ecosystem":"AlmaLinux:8","fixed":["1.5.30-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng15","purl":"pkg:rpm/almalinux/libpng15","source":"ALSA-2026:26347"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/almalinux/libpng","source":"ALSA-2026:18028"},{"ecosystem":"AlmaLinux:9","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/almalinux/libpng-devel","source":"ALSA-2026:18028"},{"ecosystem":"AlmaLinux:9","fixed":["1.5.30-15.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libpng15","purl":"pkg:rpm/almalinux/libpng15","source":"ALSA-2026:28244"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debugsource","purl":"pkg:rpm/redhat/libpng-debugsource","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel-debuginfo","purl":"pkg:rpm/redhat/libpng-devel-debuginfo","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["2:1.6.40-8.el10_1.4"],"introduced":["0"],"last_affected":[],"package":"libpng-tools-debuginfo","purl":"pkg:rpm/redhat/libpng-tools-debuginfo","source":"RHSA-2026:18064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.57-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng12","purl":"pkg:rpm/redhat/libpng12","source":"RHSA-2026:26348"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.57-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng12-debuginfo","purl":"pkg:rpm/redhat/libpng12-debuginfo","source":"RHSA-2026:26348"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.57-7.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng12-debugsource","purl":"pkg:rpm/redhat/libpng12-debugsource","source":"RHSA-2026:26348"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.5.30-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng15","purl":"pkg:rpm/redhat/libpng15","source":"RHSA-2026:26347"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.5.30-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng15-debuginfo","purl":"pkg:rpm/redhat/libpng15-debuginfo","source":"RHSA-2026:26347"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.5.30-9.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng15-debugsource","purl":"pkg:rpm/redhat/libpng15-debugsource","source":"RHSA-2026:26347"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-debugsource","purl":"pkg:rpm/redhat/libpng-debugsource","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-devel-debuginfo","purl":"pkg:rpm/redhat/libpng-devel-debuginfo","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:8::baseos","fixed":["2:1.6.34-11.el8_10"],"introduced":["0"],"last_affected":[],"package":"libpng-tools-debuginfo","purl":"pkg:rpm/redhat/libpng-tools-debuginfo","source":"RHSA-2026:29898"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debugsource","purl":"pkg:rpm/redhat/libpng-debugsource","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel-debuginfo","purl":"pkg:rpm/redhat/libpng-devel-debuginfo","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-tools-debuginfo","purl":"pkg:rpm/redhat/libpng-tools-debuginfo","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.5.30-15.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libpng15","purl":"pkg:rpm/redhat/libpng15","source":"RHSA-2026:28244"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.5.30-15.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libpng15-debuginfo","purl":"pkg:rpm/redhat/libpng15-debuginfo","source":"RHSA-2026:28244"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:1.5.30-15.el9_8.1"],"introduced":["0"],"last_affected":[],"package":"libpng15-debugsource","purl":"pkg:rpm/redhat/libpng15-debugsource","source":"RHSA-2026:28244"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-debugsource","purl":"pkg:rpm/redhat/libpng-debugsource","source":"RHSA-2026:18028"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["2:1.6.37-12.el9_7.4"],"introduced":["0"],"last_affected":[],"package":"libpng-devel-debuginfo","purl":"pkg:rpm/redhat/libpng-devel-debuginfo","source":"RHSA-2026:18028"}],"prev":{"headline":"Discourse: Improper Access Control in discourse-ai Allows Unauthorized Category Content Exposure","id":"CVE-2026-33415"},"products":["libpng"],"published":"2026-03-26","related":[{"cvss_score":9.8,"headline":"Denial of service in n/a","id":"CVE-2017-12652","kev_date_added":null,"published":"2019-07-10"},{"cvss_score":8.8,"headline":"Out-of-bounds write in libpng","id":"CVE-2018-14550","kev_date_added":null,"published":"2019-07-10"},{"cvss_score":8.3,"headline":"LIBPNG has a heap buffer overflow in png_set_quantize","id":"CVE-2026-25646","kev_date_added":null,"published":"2026-02-10"},{"cvss_score":7.6,"headline":"LIBPNG has ARM NEON Palette Expansion Out-of-Bounds Read on AArch64","id":"CVE-2026-33636","kev_date_added":null,"published":"2026-03-26"},{"cvss_score":7.5,"headline":"Null dereference in n/a","id":"CVE-2016-10087","kev_date_added":null,"published":"2017-01-30"},{"cvss_score":7.5,"headline":"Memory corruption in n/a","id":"CVE-2011-3464","kev_date_added":null,"published":"2012-07-22"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-04-01","vendors":["pnggroup"]},"summary":"A use-after-free vulnerability in libpng allows attackers to execute arbitrary code or cause denial of service via crafted PNG files.","url":"https://insights.sbomify.com/CVE-2026-33416/"}