# CVE-2026-4851: GRID::Machine versions through 0.127 for Perl allows arbitrary code execution via unsafe deserialization

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.55%, higher than 47% of CVEs (2026-12-01)
- Published: 2026-03-29T00:22:22.578Z
- Modified: 2026-06-17T10:57:20.807Z
- Weaknesses: CWE-95, CWE-502
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: CPANSec

## Description

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.

(As written by CVE List.)

## Affected

- GRID-Machine: up to 0.127
- casiano grid::machine: up to 0.127

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.openwall.com/lists/oss-security/2026/03/26/6> (mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2026/03/26/6> (mailing-list)

## Sources

- CVE List: [CVE-2026-4851](https://www.cve.org/CVERecord?id=CVE-2026-4851), CVE Terms of Use, modified 2026-04-01
- NVD: [CVE-2026-4851](https://nvd.nist.gov/vuln/detail/CVE-2026-4851), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-4851 · Whole record: https://cve.day/CVE-2026-4851.json · Rebuilt by cve.day 2026-11-25T22:59:17.478Z
