{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-40930 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2026-40930 is a medium-severity vulnerability in pnggroup libpng, published on 4 Jun 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-40930 and fix it if it is affected.\n\nWhat it is: CVE-2026-40930 is a medium-severity vulnerability in pnggroup libpng, published on 4 Jun 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-40930 in the wild and no public exploit code.\n\nAffected product: pnggroup 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-40930/ (Markdown: https://insights.sbomify.com/CVE-2026-40930/index.md)","id":"CVE-2026-40930","markdown":"https://insights.sbomify.com/CVE-2026-40930/index.md","name":"CVE-2026-40930","record":{"aliases":["ALPINE-CVE-2026-40930","AZL-89501","AZL-89504","AZL-89507","AZL-89513","AZL-89516","BELL-CVE-2026-40930","CLSA-2026-1788344031","DEBIAN-CVE-2026-40930","GHSA-c4v6-gxrq-6g2x","MGASA-2026-0205","OESA-2026-2533","OESA-2026-2534","OESA-2026-2535","RHSA-2026:20356","ROOT-OS-DEBIAN-11-CVE-2026-40930","UBUNTU-CVE-2026-40930"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PNG image library","requires_auth":"none","summary":"Attackers can exploit a chunk smuggling flaw in the APNG parser to cause memory corruption or crashes by sending malicious PNG files.","user_interaction":"required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-436","name":"Interpretation Conflict"}],"description":"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.","ecosystems":["Red Hat:hummingbird:1"],"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: Chunk smuggling in push-mode APNG parser via unconsumed chunk body","id":"CVE-2026-40930","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2026"},"n_packages":4,"n_references":2,"next":{"headline":"Complete Bypass of CVE-2026-24884 Patch via Git-Delivered Symlink Poisoning in compressing","id":"CVE-2026-40931"},"packages":[{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.6.58-1.hum1"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2026:20356"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.6.58-1.hum1"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2026:20356"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.6.58-1.hum1"],"introduced":["0"],"last_affected":[],"package":"libpng-static","purl":"pkg:rpm/redhat/libpng-static","source":"RHSA-2026:20356"},{"ecosystem":"Red Hat:hummingbird:1","fixed":["0:1.6.58-1.hum1"],"introduced":["0"],"last_affected":[],"package":"libpng-tools","purl":"pkg:rpm/redhat/libpng-tools","source":"RHSA-2026:20356"}],"prev":{"headline":"WWBN AVideo is missing CSRF protection in objects/commentDelete.json.php enables mass comment deletion against moderators and content creators","id":"CVE-2026-40929"},"products":["libpng","libpng-apng"],"published":"2026-06-04","related":[],"sources":[{"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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-06-04","vendors":["pnggroup"]},"summary":"Attackers can exploit a chunk smuggling flaw in the APNG parser to cause memory corruption or crashes by sending malicious PNG files.","url":"https://insights.sbomify.com/CVE-2026-40930/"}