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/.
CVE-2009-4140
This CVE was only ever scored under CVSS v2.0. NVD CVSS v2.0 base 7.5 — v2 rates that HIGH (v2 bands: LOW 0.0–3.9 / MEDIUM 4.0–6.9 / HIGH 7.0–10.0; v2 has no CRITICAL band). Vector AV:N/AC:L/Au:N/C:P/I:P/A:P. CVSS v2 is an older, coarser metric than v3.1/v4.0 (no Scope, no User Interaction, no Attack Requirements), so it is not directly comparable to a v3 or v4 score. NVD has never re-scored this record under v3. EPSS predicts 75.8% exploitation probability in the next 30 days, which is reflected in EG Risk but does not lift the v2 base. Confidence: LOW.
- High exploitation likelihood — EPSS 76%
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, epss high, public exploit)
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v2.0 (legacy)
- 7.5HIGHNVD never assigned a CVSS v3 rating to this CVE
- EG Score
- 7.5(low)
- EG Risk
- 69(Track)EG Risk 69/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity75% × 45%Exploitation76% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 76%
- EPSS %ILE
- 99%
- KEV
- Not listed
Published
December 22, 2009
Last Modified
April 23, 2026
References (32)
- secalert@redhathttp://packetstormsecurity.com/files/123493/wpseowatcher-exec.txt
- secalert@redhathttp://packetstormsecurity.com/files/123494/wpslimstatex-exec.txt
- secalert@redhathttp://packetstormsecurity.org/0910-exploits/piwik-upload.txt
- secalert@redhathttp://piwik.org/blog/2009/10/piwik-response-to-secunia-advisory-sa37078/
- secalert@redhathttp://secunia.com/advisories/37078
- secalert@redhathttp://secunia.com/advisories/37911
- secalert@redhathttp://secunia.com/advisories/55160
- secalert@redhathttp://secunia.com/advisories/55162
- secalert@redhathttp://wordpress.org/extend/plugins/woopra/changelog/
- secalert@redhathttp://www.exploit-db.com/exploits/24969
- secalert@redhathttp://www.openwall.com/lists/oss-security/2009/12/14/1
- secalert@redhathttp://www.openwall.com/lists/oss-security/2009/12/14/3
- secalert@redhathttp://www.osvdb.org/59051
- secalert@redhathttp://www.securityfocus.com/bid/37314
- secalert@redhathttp://www.vupen.com/english/advisories/2009/2966
Data Freshness Timeline
(refreshed 1× in last 7d / 4× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-08-25 13:43 UTCEPSS rescore
- 2026-08-19 16:58 UTCEPSS rescore
- 2026-08-15 01:24 UTCEPSS rescore
- 2026-07-30 16:22 UTCEPSS rescore
- 2026-07-26 13:39 UTCEG score recompute▲ 7.50
- 2026-07-25 14:12 UTCEPSS rescore
- 2026-07-24 14:12 UTCEPSS rescore
- 2026-07-23 14:14 UTCEPSS rescore
- 2026-07-23 01:00 UTCEG score recompute
- 2026-07-23 00:37 UTCEG score recompute▼ 7.50
- 2026-07-23 00:04 UTCEG score recompute▲ 7.50
- 2026-07-22 21:43 UTCEG score recompute▼ 9.00
- 2026-07-22 14:03 UTCEPSS rescore
- 2026-07-21 15:20 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-16 16:58 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-13 22:25 UTCEPSS rescore
- 2026-07-13 06:07 UTCEPSS rescore
- 2026-07-11 08:22 UTCEPSS rescore
- 2026-07-11 08:22 UTCEPSS rescore
- 2026-07-04 06:27 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
Show 36 moreShow fewer
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:46 UTCEPSS rescore
- 2026-06-25 13:46 UTCEPSS rescore
- 2026-06-23 21:29 UTCEPSS rescore
- 2026-06-23 21:29 UTCEPSS rescore
- 2026-06-22 14:22 UTCEPSS rescore
- 2026-06-22 14:22 UTCEPSS rescore
- 2026-06-21 14:53 UTCEPSS rescore
- 2026-06-21 01:56 UTCEPSS rescore
- 2026-06-21 01:56 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-17 17:49 UTCEPSS rescore
- 2026-06-15 17:44 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:08 UTCEPSS rescore
- 2026-06-12 23:08 UTCEPSS rescore
- 2026-06-10 22:14 UTCEPSS rescore
- 2026-06-10 13:17 UTCEPSS rescore
- 2026-06-08 14:13 UTCEPSS rescore
- 2026-06-05 06:07 UTCEPSS rescore
- 2026-06-02 20:10 UTCEPSS rescore
- 2026-06-02 20:10 UTCEPSS rescore
- 2026-05-29 13:40 UTCEPSS rescore
- 2026-05-29 13:19 UTCEG score recompute
- 2026-05-29 13:19 UTCGHSA enrichment
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-26 13:41 UTCEPSS rescore
- 2026-05-26 13:41 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-22 21:15 UTCEPSS rescore
- 2026-05-18 21:29 UTCEPSS rescore
Publicly available exploits
(8 references)Working exploit code is in the public domain (2 Metasploit modules) (6 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-29210✓ verifiedFirst seen Oct 26, 2013
Open Flash Chart 2 - Arbitrary File Upload (Metasploit)
Open source ↗ - Exploit-DBEDB-29091✓ verifiedFirst seen Oct 20, 2013
ZonPHP 2.25 - Remote Code Execution
Open source ↗ - Exploit-DBEDB-24969✓ verifiedFirst seen Apr 22, 2013
Joomla! Component com_civicrm 4.2.2 - Remote Code Injection
Open source ↗ - Exploit-DBEDB-24529✓ verifiedFirst seen Feb 20, 2013
OpenEMR - Arbitrary '.PHP' File Upload (Metasploit)
Open source ↗ - Exploit-DBEDB-24492✓ verifiedFirst seen Feb 13, 2013
OpenEMR 4.1.1 - 'ofc_upload_image.php' Arbitrary File Upload
Open source ↗ - Metasploitexploit/unix/webapp/openemr_upload_exec✓ verifiedFirst seen Feb 13, 2013
OpenEMR PHP File Upload Vulnerability
Open source ↗ - Exploit-DBEDB-10532First seen Dec 17, 2009
Piwik Open Flash Chart - Remote Code Execution
Open source ↗ - Metasploitexploit/unix/webapp/open_flash_chart_upload_exec✓ verifiedFirst seen Dec 14, 2009
Open Flash Chart v2 Arbitrary File Upload
Open source ↗
Frequently asked(4)
What is CVE-2009-4140?
When was CVE-2009-4140 disclosed?
Is CVE-2009-4140 actively exploited?
How do I remediate CVE-2009-4140?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2009-4140
Is Your Infrastructure Affected by CVE-2009-4140?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.