CVE-2026-8612 Details
Description
WWW::Mechanize::Cached versions before 2.00 for Perl deserialize cached HTTP responses from a world-writable on-disk cache, enabling local response forgery and code execution. With no explicit cache backend, WWW::Mechanize::Cached constructs a default Cache::FileCache under /tmp/FileCache without overriding the backend's documented directory_umask of 000, so the cache root and its subdirectories are created mode 0777 with no sticky bit. Cache entries are named by sha1_hex of the request and read back through Storable::thaw on the next cache hit. A local attacker with write access to the cache tree can replace a victim's cache entry for a known URL with an arbitrary frozen HTTP::Response blob, causing the victim's next get() of that URL to return attacker controlled response bytes. Because the bytes are passed to Storable::thaw, a victim process that has loaded any class with a side-effectful STORABLE_thaw, DESTROY, or overload hook can be escalated to arbitrary code execution.
A vulnerability in WWW::Mechanize::Cached versions prior to 2.00 for Perl allows local response forgery and code execution by deserializing cached HTTP responses from a world-writable on-disk cache. The default cache backend, Cache::FileCache, creates a cache under /tmp/FileCache' with a directory umask of 000, resulting in a 0777 permission mode. This vulnerability enables a local attacker with write access to the cache to replace a victim's cached response with a malicious one, which, when accessed, could execute arbitrary code if the response is processed by a class with a side-effectful deserialization hook.
Users should upgrade to WWW::Mechanize::Cached version 2.00 or later, which changes the default cache location to the user's XDG cache home with owner-only permissions.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed May 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/libwww-perl/WWW-Mechanize-Cached/commit/b821647deeedf83490ebc1db91d959d942300ce0.patch | CPANSec | Patch |
| https://github.com/libwww-perl/WWW-Mechanize-Cached/pull/36 | CPANSec | Issue TrackingPatch |
| https://metacpan.org/release/OALDERS/WWW-Mechanize-Cached-2.00/changes | CPANSec | Release Notes |
| http://www.openwall.com/lists/oss-security/2026/05/15/1 | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-502 | Deserialization of Untrusted Data | CPANSec |
| CWE-732 | Incorrect Permission Assignment for Critical Resource | CPANSec |
Affected Products
| Product | Versions |
|---|---|
| oalders www::mechanize::cached | < 2.00 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CPANSec |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| May 18, 2026 | Initial Analysis | [email protected] |
| May 15, 2026 | CVE Modified | CISA-ADP |
| May 15, 2026 | CVE Modified | CVE |
| May 15, 2026 | New CVE Received | CPANSec |