Skip to main content

WWW::Mechanize::Cached EUVDEUVD-2026-30495

| CVE-2026-8612 MEDIUM
Incorrect Permission Assignment for Critical Resource (CWE-732)
2026-05-15 CPANSec GHSA-38r9-g25v-vcvr
5.3
CVSS 3.1 · Vendor: CPANSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local authenticated access
  2. Delivery
    Identify victim using WWW::Mechanize::Cached
  3. Exploit
    Compute sha1_hex of target URL
  4. Install
    Write malicious Storable blob to /tmp/FileCache/www-mechanize-cached/[sha1].dat
  5. C2
    Victim requests poisoned URL
  6. Execute
    Storable::thaw deserializes attacker payload
  7. Impact
    Arbitrary code execution as victim

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V13 - Configuration Permission assignment review
Exploitation Conditions

Exploitation requires authenticated local access to the same system as the victim (AV:L/PR:L). The attacker must have write permission to the /tmp/FileCache/www-mechanize-cached/ directory tree, which exists by default with mode 0777 when WWW::Mechanize::Cached is used without specifying a custom cache backend. The attacker must know or predict URLs the victim will request (to compute matching sha1_hex cache keys) and the victim process must have loaded Perl classes with exploitable STORABLE_thaw, DESTROY, or overload hooks to escalate deserialization to code execution. Limiting factors: single-user systems with per-user /tmp directories (systemd PrivateTmp), containerized environments with isolated filesystems, or deployments that explicitly configure Cache::FileCache with non-default cache_root and directory_umask prevent exploitation even on vulnerable WWW::Mechanize::Cached versions below 2.00.

Impact

Real-world risk requires careful contextualization of multiple signals. CVSS 5.3 (MEDIUM) with AV:L/AC:L/PR:L indicates low-complexity local exploitation requiring authenticated access but no user interaction. The EPSS score of 0.05% (16th percentile) suggests minimal observed exploitation attempts in the wild, and no CISA KEV listing confirms this is not yet broadly targeted. However, the technical impact is severe: arbitrary code execution via Storable deserialization gadgets in victim processes that have loaded classes with side-effectful hooks. The attack requires: (1) local authenticated access, (2) knowledge of URLs the victim will request, (3) write access to the shared /tmp/FileCache tree, and (4) victim processes with exploitable Storable gadgets loaded. Multi-user systems with untrusted local users (shared hosting, academic compute clusters) face elevated risk. Single-user workstations or containerized deployments with isolated /tmp have minimal exposure. The patch changes cache location from /tmp to XDG_CACHE_HOME (~/.cache) with directory_umask=077, fully mitigating the permission vulnerability. Priority should be HIGH for multi-tenant environments, LOW for isolated single-user systems.

Exploit ScenarioDerived

An authenticated local attacker on a shared academic compute server identifies that a victim user runs a Perl web scraper using WWW::Mechanize::Cached with default settings. The attacker calculates the sha1_hex of a known URL the victim fetches (e.g., 'https://internal-api.example.edu/data.json') and writes a malicious Storable blob to /tmp/FileCache/www-mechanize-cached/[sha1].dat. The attacker crafts the blob to trigger code execution via a STORABLE_thaw hook in a commonly loaded module (e.g., DateTime, Moose-based classes). When the victim's script next requests that URL, WWW::Mechanize::Cached reads and deserializes the poisoned cache entry through Storable::thaw, executing the attacker's payload with the victim's privileges. Publicly available exploit code exists per GitHub patch references demonstrating the cache poisoning technique.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 15, 2026

Local privilege escalation in WWW::Mechanize::Cached for Perl (versions before 2.00) allows authenticated local attackers to inject malicious cached HTTP responses and achieve arbitrary code execution. The module creates world-writable cache directories under /tmp/FileCache with 0777 permissions, enabling any local user to replace cached responses that are deserialized via Storable::thaw. EPSS exploitation probability is low (0.05%, 16th percentile) and no active exploitation is confirmed at time of analysis. Vendor-released patch available in version 2.00 with upstream fix confirmed via GitHub commit b821647.

RemediationAI

Upgrade to WWW::Mechanize::Cached version 2.00 or later, which relocates the default cache from /tmp/FileCache to XDG_CACHE_HOME (typically ~/.cache/WWW-Mechanize-Cached) and enforces directory_umask=077 to create owner-only cache directories. The fix is confirmed by GitHub commit b821647deeedf83490ebc1db91d959d942300ce0 and pull request https://github.com/libwww-perl/WWW-Mechanize-Cached/pull/36. After upgrading, manually remove any existing /tmp/FileCache directories as they are no longer used by version 2.00+. For systems that cannot immediately upgrade, implement compensating controls: explicitly pass a Cache::FileCache object with cache_root pointing to a user-private directory (mode 0700) and directory_umask=>077, for example: Cache::FileCache->new({namespace=>'mymech', cache_root=>'/home/user/.mycache', directory_umask=>077}). Note this workaround requires application code changes and does not protect other processes on the system still using default settings. On multi-user systems, consider restricting /tmp with filesystem mount options (noexec) as defense-in-depth, though this does not prevent cache poisoning.

Affected VersionsENISA

WWW::Mechanize::Cached 0 <2.00

Affected Packages

euvd www_mechanize_cached fix: 2.00

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WWW::Mechanize::Cached is a Perl library that extends WWW::Mechanize with disk-based caching of HTTP responses using the Cache::FileCache backend. The vulnerability stems from CWE-732 (Incorrect Permission Assignment for Critical Resource). When no explicit cache backend is provided, the module instantiates Cache::FileCache with default settings that create cache directories under /tmp/FileCache with directory_umask=000, resulting in mode 0777 permissions without the sticky bit. Cache entries are keyed by sha1_hex of the HTTP request and stored as serialized Storable blobs. On cache hits, the module deserializes these blobs using Storable::thaw, which triggers special hooks (STORABLE_thaw, DESTROY, or overload methods) in any loaded Perl classes. The CPE identifier cpe:2.3:a:oalders:www::mechanize::cached confirms this affects the CPAN distribution maintained by OALDERS.

Know when Www gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (CPANSec) PRIMARY 5.3 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
SUSE MEDIUM

Primary rating from Vendor (CPANSec).

CVSS VectorVendor: CPANSec

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

Lifecycle Timeline

2
CVSS changed
May 15, 2026 - 15:22 NVD
5.3 (MEDIUM)
CVE Published
May 15, 2026 - 01:11 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 84% exploitable
Social Media
1
Sightings
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Module for Basesystem 15 SP7 Fixed
SUSE Linux Enterprise Server 15 SP7 Fixed
SUSE Linux Enterprise Server 16.0 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy