{"answers":{"affected":"It affects 9 products.","exploited":"There is no known exploitation of CVE-2009-0040 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2009-0040 is a medium-severity use after free vulnerability in Apple Iphone Os, published on 22 Feb 2009. 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-2009-0040 and fix it if it is affected.\n\nWhat it is: CVE-2009-0040 is a medium-severity use after free vulnerability in Apple Iphone Os, published on 22 Feb 2009. 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-2009-0040 in the wild and no public exploit code.\n\nAffected product: Apple Iphone Os. 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-2009-0040/ (Markdown: https://insights.sbomify.com/CVE-2009-0040/index.md)","id":"CVE-2009-0040","markdown":"https://insights.sbomify.com/CVE-2009-0040/index.md","name":"CVE-2009-0040","record":{"aliases":["GHSA-m968-rq7m-646j","RHSA-2009:0340"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"PNG reference library","requires_auth":"none","summary":"Attackers can cause crashes or execute code via crafted PNG files exploiting uninitialized pointer frees in libpng.","user_interaction":"required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"iphone_os","vendor":"apple"},{"product":"mac_os_x","vendor":"apple"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"libpng","vendor":"libpng"},{"product":"opensuse","vendor":"opensuse"},{"product":"linux_enterprise","vendor":"suse"},{"product":"linux_enterprise_desktop","vendor":"suse"},{"product":"linux_enterprise_server","vendor":"suse"}],"cvss":{"score":6.8,"severity":"medium","source":"nvd","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-824","name":"Access of Uninitialized Pointer"}],"description":"The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows context-dependent attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PNG file that triggers a free of an uninitialized pointer in (1) the png_read_png function, (2) pCAL chunk handling, or (3) setup of 16-bit gamma tables.","ecosystems":["Red Hat:enterprise_linux:3::as","Red Hat:enterprise_linux:3::desktop","Red Hat:enterprise_linux:3::es","Red Hat:enterprise_linux:3::ws"],"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":"Use after free in n/a","id":"CVE-2009-0040","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"apple:iphone_os","products":["apple:iphone_os","apple:mac_os_x","debian:debian_linux","fedoraproject:fedora","libpng:libpng","opensuse:opensuse","suse:linux_enterprise","suse:linux_enterprise_desktop","suse:linux_enterprise_server"],"type":"use_after_free","year":"2009"},"n_packages":24,"n_references":82,"next":{"headline":"Information disclosure in n/a","id":"CVE-2009-0041"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10","purl":"pkg:rpm/redhat/libpng10","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-debuginfo","purl":"pkg:rpm/redhat/libpng10-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::as","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-devel","purl":"pkg:rpm/redhat/libpng10-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10","purl":"pkg:rpm/redhat/libpng10","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-debuginfo","purl":"pkg:rpm/redhat/libpng10-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::desktop","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-devel","purl":"pkg:rpm/redhat/libpng10-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10","purl":"pkg:rpm/redhat/libpng10","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-debuginfo","purl":"pkg:rpm/redhat/libpng10-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::es","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-devel","purl":"pkg:rpm/redhat/libpng10-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng","purl":"pkg:rpm/redhat/libpng","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-debuginfo","purl":"pkg:rpm/redhat/libpng-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["2:1.2.2-29"],"introduced":["0"],"last_affected":[],"package":"libpng-devel","purl":"pkg:rpm/redhat/libpng-devel","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10","purl":"pkg:rpm/redhat/libpng10","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-debuginfo","purl":"pkg:rpm/redhat/libpng10-debuginfo","source":"RHSA-2009:0340"},{"ecosystem":"Red Hat:enterprise_linux:3::ws","fixed":["0:1.0.13-20"],"introduced":["0"],"last_affected":[],"package":"libpng10-devel","purl":"pkg:rpm/redhat/libpng10-devel","source":"RHSA-2009:0340"}],"prev":{"headline":"Apache Geronimo Application Server CSRF vulnerabilities","id":"CVE-2009-0039"},"products":["n/a"],"published":"2009-02-22","related":[{"cvss_score":8.8,"headline":"Apple iOS WebKit Buffer Overflow","id":"CVE-2021-30666","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS WebKit Memory Corruption","id":"CVE-2021-30761","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS WebKit Use-After-Free","id":"CVE-2021-30762","kev_date_added":"2021-11-03","published":"2021-09-08"},{"cvss_score":8.8,"headline":"Apple iOS Webkit Memory Corruption","id":"CVE-2016-4657","kev_date_added":"2022-05-24","published":"2016-08-25"},{"cvss_score":7.8,"headline":"Apple Multiple Products Memory Corruption","id":"CVE-2019-7286","kev_date_added":"2022-05-23","published":"2019-12-18"},{"cvss_score":7.8,"headline":"Apple iOS Memory Corruption","id":"CVE-2019-7287","kev_date_added":"2022-05-23","published":"2019-12-18"},{"cvss_score":7.8,"headline":"Apple Multiple Products Use-After-Free","id":"CVE-2019-8605","kev_date_added":"2022-06-27","published":"2019-12-18"}],"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":"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Attackers can cause crashes or execute code via crafted PNG files exploiting uninitialized pointer frees in libpng.","url":"https://insights.sbomify.com/CVE-2009-0040/"}