CVE-2009-4137
CVE-2009-4137 is a high-severity vulnerability in Matomo with a CVSS 2.0 base score of 7.5. Its EPSS exploit-prediction score of 17% places it in the 97th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-20.
Key facts
- Severity: High (CVSS 2.0 base score 7.5)
- EPSS exploit prediction: 17% (97th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-20
- Affected product: Matomo
- Published:
- Last modified:
Description
The loadContentFromCookie function in core/Cookie.php in Piwik before 0.5 does not validate strings obtained from cookies before calling the unserialize function, which allows remote attackers to execute arbitrary code or upload arbitrary files via vectors related to the __destruct function in the Piwik_Config class; php://filter URIs; the __destruct functions in Zend Framework, as demonstrated by the Zend_Log destructor; the shutdown functions in Zend Framework, as demonstrated by the Zend_Log_Writer_Mail class; the render function in the Piwik_View class; Smarty templates; and the _eval function in Smarty.
Frequently asked questions
- What is CVE-2009-4137?
- The loadContentFromCookie function in core/Cookie.php in Piwik before 0.5 does not validate strings obtained from cookies before calling the unserialize function, which allows remote attackers to execute arbitrary code or upload arbitrary files via vectors related to the __destruct function in the Piwik_Config class; php://filter URIs; the __destruct functions in Zend Framework, as demonstrated by the Zend_Log destructor; the shutdown functions in Zend Framework, as demonstrated by the Zend_Log_Writer_Mail class; the render function in the Piwik_View class; Smarty templates; and the _eval function in Smarty.
- How severe is CVE-2009-4137?
- CVE-2009-4137 has a CVSS 2.0 base score of 7.5, rated high severity.
- Is CVE-2009-4137 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 17% (97th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2009-4137?
- CVE-2009-4137 primarily affects Matomo. In total, 8 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2009-4137?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2009-4137 published?
- CVE-2009-4137 was published on 2009-12-24 and last updated on 2026-06-16.
References
- http://dev.piwik.org/trac/changeset/1637
- http://piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/
- http://www.openwall.com/lists/oss-security/2009/12/09/2
- http://www.openwall.com/lists/oss-security/2009/12/10/1
- http://www.openwall.com/lists/oss-security/2009/12/14/2
- http://www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulnerability/
- http://www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerability/
- http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf
Affected products (8)
- cpe:2.3:a:matomo:matomo:0.2.25:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.26:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.27:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.28:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.29:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.30:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.31:*:*:*:*:*:*:*
- cpe:2.3:a:matomo:matomo:0.2.32:*:*:*:*:*:*:*
More vulnerabilities in Matomo
- CVE-2015-7816 — High (CVSS 7.5): The DisplayTopKeywords function in plugins/Referrers/Controller.php in Piwik before 2.15.0 allows remote attackers to…
- CVE-2015-7815 — High (CVSS 7.5): Directory traversal vulnerability in core/ViewDataTable/Factory.php in Piwik before 2.15.0 allows remote attackers to…
- CVE-2009-4140 — High (CVSS 7.5): Unrestricted file upload vulnerability in ofc_upload_image.php in Open Flash Chart v2 Beta 1 through v2 Lug Wyrm…
- CVE-2011-4941 — Medium (CVSS 6.8): Unspecified vulnerability in Piwik 1.2 through 1.4 allows remote attackers with the view permission to execute…
- CVE-2010-2786 — Medium (CVSS 6.8): Directory traversal vulnerability in Piwik 0.6 through 0.6.3 allows remote attackers to include arbitrary local files…
- CVE-2011-0398 — Medium (CVSS 6.4): The Piwik_Common::getIP function in Piwik before 1.1 does not properly determine the client IP address, which allows…
Other CWE-20 (Improper Input Validation) vulnerabilities
- CVE-2026-48316 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48281 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48277 — Critical (CVSS 10.0): ColdFusion versions 2025.9, 2023.20 and earlier are affected by an Improper Input Validation vulnerability that could…
- CVE-2026-48055 — Critical (CVSS 10.0): Streambert is a cross-platform Electron Desktop App to stream and download any video media. In versions 2.4.0 and…
- CVE-2026-34910 — Critical (CVSS 10.0): A malicious actor with access to the network could exploit an Improper Input Validation vulnerability found in UniFi OS…
- CVE-2026-33587 — Critical (CVSS 10.0): Lack of user input sanitisation in Open Notebook v1.8.3 allows the application user to execute Python code (and…
Browse all CWE-20 (Improper Input Validation) vulnerabilities →