How this bug class keeps shipping
The bug class that keeps shipping in enterprise software: a feature designed to accept user content (an attachment, a plugin bundle, a media file) lets the user control where on disk that content lands. Once attacker-controlled bytes meet an attacker-chosen path, you no longer have "arbitrary file write." You have arbitrary code execution with whatever privileges the host process runs under; in both cases below, that is root.
Two advisories in the last week make this concrete, both drawn from public source material: CVE-2026-96656 in Plex Media Server (added to CISA's KEV on 2026-10-20, confirmed exploited in the wild) and CVE-2026-76519 in Cisco Secure Email Gateway (published 2026-10-27).
The common anatomy
Any arbitrary-file-write-to-RCE primitive has three ingredients:
- A writable sink. Something in the request graph calls a file-writing API with a path that is partially or fully attacker-controlled.
- A loader. The target application later reads, parses, executes, or deserialises files under some directory using a predictable rule (file extension, glob, modification time, startup scan).
- An overlap. The attacker can steer (1) into a path that satisfies (2) before any sanitisation fires.
Mitigations exist at every layer: canonicalise paths, reject traversal, confine writes to a chroot, make load paths read-only, strip executable bits, enforce signatures on anything you execute. The bugs ship when exactly one of those layers is missing and nothing downstream catches it.
Lead case: CVE-2026-96656 (Plex Media Server)
CISA's KEV entry describes CVE-2026-96656 as an "external control of file name or path vulnerability which can allow an admin user to write arbitrary files that may be executed on load." The entry also notes it is chained with three other Plex issues from the same batch: CVE-2026-96652 and CVE-2026-96655 (both SSRF, one abusing any X-Plex-Token on the protocol parameter, one via /video/:/transcode/universal) and CVE-2026-96654 (improper neutralisation of encoded URI schemes that lets a caller invoke other plugins' functions with attacker-supplied parameters).
The chain, read in order:
- CVE-2026-96652 and CVE-2026-96655 provide the SSRF primitives, letting an attacker reach internal services or coerce the server to contact attacker-chosen endpoints, even with a low-privilege token.
- CVE-2026-96654 is the pivot: by abusing encoded URI schemes, the attacker jumps into a different plugin and supplies parameters it would never have accepted from the outside.
- CVE-2026-96656 delivers the write primitive. Because file name or path is externally controlled, the plugin call that reaches the filesystem can be steered to drop the attacker's bytes somewhere the server will later load.
The KEV entry lists the precondition as "admin user," which sounds limiting. Once the SSRF and plugin-pivot bugs enter the chain, however, "admin user" shrinks to "any X-Plex-Token the attacker can scrape, phish, or guess." Any Plex server exposed on its default TCP port is in scope. CISA's KEV addition on 2026-10-20 confirms in-the-wild exploitation, not theoretical risk.
How to tell whether you are exposed:
# Fingerprint externally reachable Plex instances
curl -sk 'https://plex.example.com:32400/identity' \
| grep -Eo 'version="[^"]+"'
# Check for inbound requests that exercise the known chain
# (adapt field names to your proxy/WAF log schema)
grep -E '/video/:/transcode/universal' access.log \
| awk '{print $1, $7}' | sort -u
# Any plugin invocation carrying a percent-encoded scheme in a param
# is worth triaging against CVE-2026-96654
grep -Ei '%25(68|74|70)' access.log
An outbound-restricted egress limits the SSRF legs but leaves the write primitive in CVE-2026-96656 intact. The right fix is the vendor patch; compensating controls are not sufficient. Under BOD 26-04 (Prioritizing Security Updates Based on Risk, effective 2026-06-10), KEV entries require remediation action, and this chain is exactly what the directive targets.
Second case: CVE-2026-76519 (Cisco Secure Email Gateway)
The second advisory, published 2026-10-27, presents the same bug class through a different entry point. In Cisco's words, the Advanced Malware Protection feature of Secure Email Gateway improperly handles attachments when the file reputation service is enabled. An unauthenticated remote attacker who can send an email through an affected device can write arbitrary files on the underlying operating system and execute commands as root.
The trust boundary drives the risk here. Secure Email Gateway accepts email from anywhere: that is its job. The protection pipeline is precisely the code expected to handle hostile input. When the attachment handler composes a filesystem path from attributes of the attachment and does not fully constrain it to a scratch directory, the loader step is already waiting (the engine will inspect, cache, or process whatever it just wrote). The result Cisco states plainly: arbitrary file write becomes RCE as root.
Detection ideas for operators waiting on an upgrade window:
# High-signal hunting on the SEG host and in SMTP telemetry
- Attachments whose declared name contains ../, NUL, or
non-UTF-8 bytes.
- MIME filename vs Content-Disposition filename mismatch.
- New or modified files outside the AMP sandbox directory tree
owned by the AMP service account within 60s of message receipt.
- Outbound connections from the SEG shortly after a reputation
lookup for an inbound attachment.
Because this is pre-auth and triggered by sending email, there is no realistic network-level control that stops the exploit without also stopping mail. Patch is the control.
Why this class keeps shipping
Three recurring reasons, visible across both cases:
- Path construction crosses a trust boundary the developer did not anticipate. In Plex, the "admin" caller is reachable via a plugin pivot. In Secure Email Gateway, the "attachment" is unauthenticated by design. The write runs in code that assumes the caller is already trusted.
- The loader is implicit. Nobody writes
exec(file); the file is loaded on startup, or during the next scan, or by a sibling worker. Reviewers reading the write path never see the execute path. - Defence in depth gets skipped under the assumption the sink will stay confined. The two paths are usually owned by different teams, and neither assumes the other is hostile.
The single most useful question for any attachment, upload, plugin, or import feature during review: "After this write succeeds, does any other process read, parse, or execute files from the destination directory?" If yes, the write path needs the same hostile-input hardening as the malware parser.
Verifiable security.