CVE-2009-4137 Deserialization in n/a
Remote attackers can execute arbitrary code or upload files via unsafe deserialization of cookie data in Piwik.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2009-4137?
CVE-2009-4137 is a high-severity unsafe deserialization vulnerability in n/a, published on 24 Dec 2009. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-20
Which versions are affected by CVE-2009-4137?
It affects 1 product.
Products include Matomo Matomo.
How do I fix CVE-2009-4137?
No fix has been published for CVE-2009-4137 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2009-4137 being exploited?
There is no known exploitation of CVE-2009-4137 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
Sources
Also known as GHSA-56c3-9h8h-r922.