{"answers":{"affected":"It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-4140 exists.","fix":"No fix has been published for CVE-2009-4140 yet. Limit exposure of the affected software until one is available.","what":"CVE-2009-4140 is a high-severity vulnerability in n/a, published on 22 Dec 2009. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2009-4140 and fix it if it is affected.\n\nWhat it is: CVE-2009-4140 is a high-severity vulnerability in n/a, published on 22 Dec 2009. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-4140 exists.\n\nAffected product: n/a. 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-4140/ (Markdown: https://insights.sbomify.com/CVE-2009-4140/index.md)","id":"CVE-2009-4140","markdown":"https://insights.sbomify.com/CVE-2009-4140/index.md","name":"CVE-2009-4140","record":{"aliases":["GHSA-x396-wp63-mv42"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Open Flash Chart library","requires_auth":"low_privilege","summary":"Authenticated attackers can upload malicious files to execute arbitrary code when register_globals is enabled in Open Flash Chart.","user_interaction":"not_required","vuln_class":"file_upload"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"matomo","vendor":"matomo"},{"product":"open_flash_chart","vendor":"teethgrinder.co.uk"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[],"description":"Unrestricted file upload vulnerability in ofc_upload_image.php in Open Flash Chart v2 Beta 1 through v2 Lug Wyrm Charmer, as used in Piwik 0.2.35 through 0.4.3, Woopra Analytics Plugin before 1.4.3.2, and possibly other products, when register_globals is enabled, allows remote authenticated users to execute arbitrary code by uploading a file with an executable extension through the name parameter with the code in the HTTP_RAW_POST_DATA parameter, then accessing it via a direct request to the file in tmp-upload-images/.","ecosystems":[],"exploits":{"exploitdb":6,"first_seen":"2009-12-14","github_poc":0,"max_poc_stars":null,"metasploit":2,"nuclei":0,"refs":[{"date":"2009-12-14","kind":"metasploit","ref":"exploit/unix/webapp/open_flash_chart_upload_exec","stars":null,"title":"Open Flash Chart v2 Arbitrary File Upload"},{"date":"2009-12-17","kind":"exploitdb","ref":"10532","stars":null,"title":"Piwik Open Flash Chart - Remote Code Execution"},{"date":"2013-02-13","kind":"exploitdb","ref":"24492","stars":null,"title":"OpenEMR 4.1.1 - 'ofc_upload_image.php' Arbitrary File Upload"},{"date":"2013-02-13","kind":"metasploit","ref":"exploit/unix/webapp/openemr_upload_exec","stars":null,"title":"OpenEMR PHP File Upload Vulnerability"},{"date":"2013-02-20","kind":"exploitdb","ref":"24529","stars":null,"title":"OpenEMR - Arbitrary '.PHP' File Upload (Metasploit)"},{"date":"2013-04-22","kind":"exploitdb","ref":"24969","stars":null,"title":"Joomla! Component com_civicrm 4.2.2 - Remote Code Injection"},{"date":"2013-10-20","kind":"exploitdb","ref":"29091","stars":null,"title":"ZonPHP 2.25 - Remote Code Execution"},{"date":"2013-10-26","kind":"exploitdb","ref":"29210","stars":null,"title":"Open Flash Chart 2 - Arbitrary File Upload (Metasploit)"}],"tier":"weaponised"},"has_fix":null,"headline":"File upload in n/a","id":"CVE-2009-4140","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"file_upload","year":"2009"},"n_packages":0,"n_references":16,"next":{"headline":"Use after free in n/a","id":"CVE-2009-4141"},"packages":[],"prev":{"headline":"Cross-site request forgery in Red Hat Enterprise Linux 6","id":"CVE-2009-4139"},"products":["n/a"],"published":"2009-12-22","related":[{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2015-7815","kev_date_added":null,"published":"2015-11-16"},{"cvss_score":7.5,"headline":"Deserialization in n/a","id":"CVE-2015-7816","kev_date_added":null,"published":"2015-11-16"},{"cvss_score":7.5,"headline":"Deserialization in n/a","id":"CVE-2009-4137","kev_date_added":null,"published":"2009-12-24"},{"cvss_score":6.8,"headline":"Piwik (now Matomo) Vulnerable to Arbitrary Code Execution","id":"CVE-2011-4941","kev_date_added":null,"published":"2012-09-18"},{"cvss_score":6.8,"headline":"Path traversal in n/a","id":"CVE-2010-2786","kev_date_added":null,"published":"2010-08-02"},{"cvss_score":6.4,"headline":"Security feature bypass in n/a","id":"CVE-2011-0398","kev_date_added":null,"published":"2011-01-10"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"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":"Authenticated attackers can upload malicious files to execute arbitrary code when register_globals is enabled in Open Flash Chart.","url":"https://insights.sbomify.com/CVE-2009-4140/"}