{"answers":{"affected":"It affects 2 products.","exploited":"There is no known exploitation of CVE-2009-3546 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2009-3546 is a critical memory corruption vulnerability in Php Php, published on 19 Oct 2009. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2009-3546 and fix it if it is affected.\n\nWhat it is: CVE-2009-3546 is a critical memory corruption vulnerability in Php Php, published on 19 Oct 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2009-3546 in the wild and no public exploit code.\n\nAffected product: Php Php. 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-3546/ (Markdown: https://insights.sbomify.com/CVE-2009-3546/index.md)","id":"CVE-2009-3546","markdown":"https://insights.sbomify.com/CVE-2009-3546/index.md","name":"CVE-2009-3546","record":{"aliases":["DEBIAN-CVE-2009-3546","GHSA-w7xp-2c87-fchc","RHSA-2010:0003","ROOT-OS-DEBIAN-12-CVE-2009-3546"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"GD Graphics Library","requires_auth":"none","summary":"Remote attackers can trigger buffer overflows or over-reads via crafted GD files, potentially leading to code execution or denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"gd_graphics_library","vendor":"libgd"},{"product":"php","vendor":"php"}],"cvss":{"score":9.3,"severity":"critical","source":"nvd","vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","version":"2.0"},"cwes":[{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD Graphics Library 2.x, does not properly verify a certain colorsTotal structure member, which might allow remote attackers to conduct buffer overflow or buffer over-read attacks via a crafted GD file, a different vulnerability than CVE-2009-3293. NOTE: some of these details are obtained from third party information.","ecosystems":["Red Hat:enterprise_linux:4::as","Red Hat:enterprise_linux:4::desktop","Red Hat:enterprise_linux:4::es","Red Hat:enterprise_linux:4::ws","Red Hat:enterprise_linux:5::client","Red Hat:enterprise_linux:5::client_workstation","Red Hat:enterprise_linux:5::server"],"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":"Memory corruption in n/a","id":"CVE-2009-3546","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"php:php","products":["php:php"],"type":"memory_corruption","year":"2009"},"n_packages":26,"n_references":12,"next":{"headline":"Race condition in n/a","id":"CVE-2009-3547"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::as","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::desktop","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::es","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:4::ws","fixed":["0:2.0.28-5.4E.el4_8.1"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::client_workstation","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd","purl":"pkg:rpm/redhat/gd","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-debuginfo","purl":"pkg:rpm/redhat/gd-debuginfo","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-devel","purl":"pkg:rpm/redhat/gd-devel","source":"RHSA-2010:0003"},{"ecosystem":"Red Hat:enterprise_linux:5::server","fixed":["0:2.0.33-9.4.el5_4.2"],"introduced":["0"],"last_affected":[],"package":"gd-progs","purl":"pkg:rpm/redhat/gd-progs","source":"RHSA-2010:0003"}],"prev":{"headline":"Denial of service in n/a","id":"CVE-2009-3545"},"products":["n/a"],"published":"2009-10-19","related":[{"cvss_score":5,"headline":"Denial of service in n/a","id":"CVE-2007-3477","kev_date_added":null,"published":"2007-06-28"},{"cvss_score":4.3,"headline":"Integer overflow in n/a","id":"CVE-2007-3472","kev_date_added":null,"published":"2007-06-28"},{"cvss_score":4.3,"headline":"Denial of service in n/a","id":"CVE-2007-3473","kev_date_added":null,"published":"2007-06-28"},{"cvss_score":2.6,"headline":"Memory corruption in n/a","id":"CVE-2007-3474","kev_date_added":null,"published":"2007-06-28"}],"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":"Remote attackers can trigger buffer overflows or over-reads via crafted GD files, potentially leading to code execution or denial of service.","url":"https://insights.sbomify.com/CVE-2009-3546/"}