CVE-2009-4137
The loadContentFromCookie function in core/Cookie.php in Piwik before 0.5 does not validate strings obtained from cookies before calling…
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 16.9% · top 2.9% of all CVEs (5 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
References (8)
- [oss-security] 20091214 Re: Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://piwik.org/blog/2009/12/piwik-response-to-shocking-news-in-php-exploitation/ (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.suspekt.org/downloads/POC2009-ShockingNewsInPHPExploitation.pdf (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20091210 Re: Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20091209 Piwik <= 0.4.5 Cookie Unserialize() Vulnerability (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://dev.piwik.org/trac/changeset/1637 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.suspekt.org/2009/12/09/advisory-032009-piwik-cookie-unserialize-vulnerability/ (opens in a new tab)x_refsource_MISCx_transferred
- http://www.sektioneins.de/en/advisories/advisory-032009-piwik-cookie-unserialize-vulnerability/ (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2009-4137)Record last updated .