{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-5022 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2009-5022 is a medium-severity memory corruption vulnerability in Libtiff Libtiff, published on 3 May 2011. 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-5022 and fix it if it is affected.\n\nWhat it is: CVE-2009-5022 is a medium-severity memory corruption vulnerability in Libtiff Libtiff, published on 3 May 2011. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-5022 exists.\n\nAffected product: Libtiff Libtiff. 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-5022/ (Markdown: https://insights.sbomify.com/CVE-2009-5022/index.md)","id":"CVE-2009-5022","markdown":"https://insights.sbomify.com/CVE-2009-5022/index.md","name":"CVE-2009-5022","record":{"aliases":["DEBIAN-CVE-2009-5022","DSA-2256-1","GHSA-c6jf-8jhf-3f5j","RHSA-2011:0452"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"LibTIFF image library","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via a crafted TIFF file due to a heap-based buffer overflow in the LibTIFF OJPEG decoder.","user_interaction":"required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"libtiff","vendor":"libtiff"}],"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-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"description":"Heap-based buffer overflow in tif_ojpeg.c in the OJPEG decoder in LibTIFF before 3.9.5 allows remote attackers to execute arbitrary code via a crafted TIFF file.","ecosystems":["Red Hat:enterprise_linux:6::client","Red Hat:enterprise_linux:6::computenode","Red Hat:enterprise_linux:6::server","Red Hat:enterprise_linux:6::workstation"],"exploits":{"exploitdb":1,"first_seen":"2012-11-13","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2012-11-13","kind":"exploitdb","ref":"22681","stars":null,"title":"IrfanView - '.TIF' Image Decompression Buffer Overflow"}],"tier":"weaponised"},"has_fix":true,"headline":"Memory corruption in n/a","id":"CVE-2009-5022","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"libtiff:libtiff","products":["libtiff:libtiff"],"type":"memory_corruption","year":"2009"},"n_packages":16,"n_references":17,"next":{"headline":"Path traversal in n/a","id":"CVE-2009-5023"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/redhat/libtiff","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/redhat/libtiff-devel","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::client","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-static","purl":"pkg:rpm/redhat/libtiff-static","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/redhat/libtiff","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/redhat/libtiff-devel","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::computenode","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-static","purl":"pkg:rpm/redhat/libtiff-static","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/redhat/libtiff","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/redhat/libtiff-devel","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::server","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-static","purl":"pkg:rpm/redhat/libtiff-static","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff","purl":"pkg:rpm/redhat/libtiff","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-debuginfo","purl":"pkg:rpm/redhat/libtiff-debuginfo","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-devel","purl":"pkg:rpm/redhat/libtiff-devel","source":"RHSA-2011:0452"},{"ecosystem":"Red Hat:enterprise_linux:6::workstation","fixed":["0:3.9.4-1.el6_0.3"],"introduced":["0"],"last_affected":[],"package":"libtiff-static","purl":"pkg:rpm/redhat/libtiff-static","source":"RHSA-2011:0452"}],"prev":{"headline":"Hardcoded credentials in n/a","id":"CVE-2009-5021"},"products":["n/a"],"published":"2011-05-03","related":[{"cvss_score":10,"headline":"Integer overflow in n/a","id":"CVE-2004-1308","kev_date_added":null,"published":"2004-12-22"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2004-0929","kev_date_added":null,"published":"2004-10-26"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2025-61144","kev_date_added":null,"published":"2026-02-23"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9533","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9534","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9535","kev_date_added":null,"published":"2016-11-22"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2016-9536","kev_date_added":null,"published":"2016-11-22"}],"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)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via a crafted TIFF file due to a heap-based buffer overflow in the LibTIFF OJPEG decoder.","url":"https://insights.sbomify.com/CVE-2009-5022/"}