CVEvulnerability
CVE-2009-4137
7.5 HIGH
Official page ↗
- Status
- Modified
- Published
- 2009-12-24
- Last modified
- 2026-06-16
- Assigner
- [email protected]
- CVSS 2.0 ([email protected])
- 7.5 HIGH — AV:N/AC:L/Au:N/C:P/I:P/A:P
- Weaknesses
- CWE-20
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.
Affected configurations
• matomo matomo 0.2.25
• matomo matomo 0.2.26
• matomo matomo 0.2.27
• matomo matomo 0.2.28
• matomo matomo 0.2.29
• matomo matomo 0.2.30
• matomo matomo 0.2.31
• matomo matomo 0.2.32
Related
Weakness · CWE (1)
- CWE-20 Improper Input Validation weakness
Referenced by CWE · observed example (1)
- CWE-915 Improperly Controlled Modification of Dynamically-Determined Object Attributes weakness
References
- http://dev.piwik.org/trac/changeset/1637 Vendor Advisory
- http://piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/ Vendor Advisory
- http://www.openwall.com/lists/oss-security/2009/12/09/2 www.openwall.com
- http://www.openwall.com/lists/oss-security/2009/12/10/1 www.openwall.com
- http://www.openwall.com/lists/oss-security/2009/12/14/2 www.openwall.com
- http://www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulnerability/ www.sektioneins.de
- http://www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerability/ www.suspekt.org
- http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf www.suspekt.org
- http://dev.piwik.org/trac/changeset/1637 Vendor Advisory
- http://piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/ Vendor Advisory
- http://www.openwall.com/lists/oss-security/2009/12/09/2 www.openwall.com
- http://www.openwall.com/lists/oss-security/2009/12/10/1 www.openwall.com
- http://www.openwall.com/lists/oss-security/2009/12/14/2 www.openwall.com
- http://www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulnerability/ www.sektioneins.de
- http://www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerability/ www.suspekt.org
- http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf www.suspekt.org