CVE-2008-5968: Directory Traversal in PHP iCalendar print.php
- Vendor
- Phpicalendar
A directory traversal vulnerability exists in print.php in PHP iCalendar 2.24 and earlier. The vulnerability is due to insufficient sanitization of the cookie_language parameter in a phpicalendar_* cookie, allowing remote attackers to include and execute arbitrary local files by supplying directory traversal sequences (..). This is distinct from CVE-2006-1292.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary local files on the server, potentially leading to remote code execution, information disclosure, or further compromise of the affected system.
Mitigation
If you can’t patch tonight, do this now.
As an interim mitigation, restrict access to the application to trusted users, and use web server configuration to block requests containing suspicious cookie values. Employ input validation and sanitization to prevent directory traversal sequences in user-supplied data.
Remediation
Patch, then assume compromise.
Upgrade to a version of PHP iCalendar later than 2.24 where this vulnerability is patched. Ensure that all user-supplied input, especially cookie values, are properly sanitized and validated before being used in file inclusion operations.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2008-5968 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2008-5968 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2008-5968?
- As of Oct 16, 2026, Mallory has not confirmed a public exploit for CVE-2008-5968. 1 candidate exploit record is not yet analyzed.
- Is there a patch for CVE-2008-5968?
- Upgrade to a version of PHP iCalendar later than 2.24 where this vulnerability is patched. Ensure that all user-supplied input, especially cookie values, are properly sanitized and validated before being used in file inclusion operations.
- What products are affected by CVE-2008-5968?
- Phpicalendar.
- How severe is CVE-2008-5968?
- CVE-2008-5968 has a CVSS v2 score of 7.5 (High) and an EPSS score of 2.9% (87th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.