By NHI Mgmt Group Editorial TeamPublished 2026-02-12Domain: Breaches & IncidentsSource: Cyera

TL;DR: A CVE-2025-64712, CVSS 9.8 path traversal flaw in Unstructured.io can enable arbitrary file write and, in many deployments, remote code execution across AI document-processing pipelines used by a large share of Fortune 1000 environments, according to Cyera. The issue shows how ETL trust assumptions, dependency chains, and attachment handling can turn data ingestion into a system takeover path.


At a glance

What this is: Cyera’s analysis shows a critical path traversal flaw in Unstructured.io that can turn attachment handling in AI ETL workflows into arbitrary file write and potential remote code execution.

Why it matters: IAM and platform teams need to treat document ingestion libraries as identity-adjacent infrastructure, because compromised service contexts can expose credentials, enable lateral movement, and undermine controls across NHI, autonomous, and human workflows.

By the numbers:

👉 Read Cyera’s analysis of CVE-2025-64712 in Unstructured.io


Context

Unstructured document ingestion is the layer that turns PDFs, emails, slide decks, and attachments into machine-readable content for AI systems. In this case, the primary identity problem is not the document parser itself, but the trust placed in the runtime that processes untrusted files on behalf of a larger AI and data platform.

For IAM and security teams, the issue sits in the overlap between application security and non-human identity governance. A parser or ETL service that can write to the local filesystem, execute in a privileged container, or reach downstream secrets becomes a viable takeover point for the workload identity running it.

That makes this an AI pipeline governance problem as much as a software defect. The typical starting assumption is that ingestion components are safe plumbing; this article shows that assumption is often false in enterprise deployments.


Key questions

Q: What breaks when a document parser can write files outside its temp directory?

A: A file-write bug turns the parser into a privilege bridge. Once an attacker can place content anywhere on disk, they can often overwrite startup files, SSH keys, or web-executable paths and convert an ingestion flaw into code execution or persistence. The risk is highest when the parser runs with cloud credentials or access to connected AI services.

Q: Why do AI ETL libraries create such high lateral movement risk?

A: AI ETL libraries often run inside privileged service contexts that can read documents, reach storage, and call downstream APIs. If that workload is compromised, the attacker inherits the same non-human identity and can move from file handling into secrets access, data exfiltration, or adjacent service abuse. The issue is the runtime privilege set, not just the parser bug.

Q: How do security teams know whether an ingestion service is over-privileged?

A: Look for write access to arbitrary paths, access to secrets stores, broad network reach, and the ability to invoke other internal services. If the service can touch startup directories, credentials, or production data locations, it has a blast radius that exceeds simple document conversion. That is a governance failure, not just a configuration detail.

Q: Should organisations isolate vulnerable parsing tools from production workloads?

A: Yes, because isolation limits the blast radius of a file-write or remote code execution flaw. Put parsing tools in tightly scoped runtimes, deny access to secrets and host control paths, and keep them out of the execution chain for production automation. If compromise happens, containment should stop at the parser boundary.


Technical breakdown

How path traversal becomes arbitrary file write

Path traversal occurs when user-controlled input is concatenated into a filesystem path without proper normalization or containment checks. In this case, an attachment name can include relative segments such as ../ and cause a file to be written outside the intended temporary directory. Once an attacker can place content at an arbitrary path, the problem stops being a parsing bug and becomes a filesystem control failure. The exact effect depends on the runtime and permissions, but the pattern is consistent: the attacker controls where the bytes land, not just what the bytes contain.

Practical implication: treat every file-write path in ingestion services as attacker-controlled until proven otherwise, and restrict the process to a tightly confined directory.

Why arbitrary file write often becomes remote code execution

Arbitrary file write is dangerous because many execution environments load code, configuration, or startup instructions from disk. If an attacker can overwrite SSH authorized_keys, init scripts, cron jobs, application templates, or language-specific web execution files, they can often convert a write primitive into code execution or persistent access. The vulnerability does not need a separate exploit chain in the simplest cases. The file write itself is the access bridge, which is why write-once bugs in privileged workloads routinely produce system-level impact.

Practical implication: isolate document-processing workloads from startup paths, shell access, and secrets locations so a write bug cannot become execution.

Why dependency chains amplify ETL risk

The article also highlights the supply-chain effect of popular wrappers and downstream libraries. When a widely used parsing library is embedded beneath orchestration layers, the blast radius extends beyond direct users to every application that calls it indirectly. That means the vulnerable identity is not just the named package but the entire service context that invokes it. For identity governance, this is a reminder that software dependencies can create invisible execution privileges across the stack, even when teams believe they are only using a low-risk helper library.

Practical implication: map indirect dependencies that run with sensitive workload privileges and treat them as part of the governed identity surface.


Threat narrative

Attacker objective: The attacker wants durable code execution and control of the workload host so they can access adjacent data, secrets, and connected systems.

  1. Entry occurs when a crafted attachment name is processed by the unstructured library during document ingestion, allowing path traversal out of the temporary directory. Credential access follows when the attacker writes to a sensitive location such as SSH authorized_keys, startup scripts, or a web-executable path. Escalation happens when the written file is executed or reused by the runtime, turning filesystem control into persistent system access. Impact is complete takeover of the machine running the library, with possible lateral movement into connected data and AI services.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

AI ingestion pipelines create an identity problem, not just an application bug. The vulnerable component runs as a non-human identity with filesystem and network privileges, so a file-write flaw immediately becomes a governance issue for the workload that hosts it. IAM teams should stop treating parsers as neutral utilities and start classifying them as privileged runtime identities with reach into secrets, storage, and downstream APIs.

Trusting attachment names as safe paths is a broken assumption. That design assumes the input name is only descriptive, but here the name becomes an instruction to the filesystem. The implication is not merely that validation is missing, but that ingestion controls were built on a premise that untrusted content will stay contained; once that premise fails, the workload boundary is already compromised.

Runtime identity blast radius is the real failure mode here. The article shows how a single parsing service can inherit enough privilege to overwrite keys, jobs, or executable files, then propagate compromise through wrappers and downstream pipelines. That is a classic NHI governance problem because the service account, container permissions, and filesystem access together define the attack surface. Practitioners should treat indirect execution paths as part of the identity threat model.

Supply-chain dependency hides who actually holds the privilege. The package may be consumed through wrappers such as orchestration layers and AI tooling, but the effective control plane is the runtime account that executes the vulnerable code. That makes software composition a governance issue for NHI owners, not just a procurement issue for developers. The practical conclusion is that visibility into indirect execution dependencies is now part of workload identity governance.

Arbitrary write in a shared AI pipeline is a precursor condition for broader compromise. In AI-enabled environments, ingest services often sit near model inputs, embeddings, connectors, and secrets. Once a service can write to arbitrary locations, the surrounding trust model for AI data flows is no longer valid. Teams should interpret this as evidence that AI pipeline hardening and NHI privilege scoping are now the same control problem.

From our research:

  • 87% of Fortune 1000 companies rely on ETL products in this class, according to the Ultimate Guide to NHIs.
  • 79% of organisations have experienced secrets leaks, with 77% of these incidents resulting in tangible damage.
  • For the lifecycle side of this problem, see the NHI Lifecycle Management Guide for offboarding, rotation, and access review controls that keep workload identities contained.

What this signals

Filesystem trust is becoming part of NHI governance. When document parsers and ETL services can turn filenames into write paths, the security team is no longer only managing data movement. It is managing whether a workload identity can reach execution-sensitive locations at all. That makes privilege scoping, container hardening, and path confinement foundational controls rather than implementation details.

The broader signal is that AI pipelines inherit the weakest assumptions of the libraries beneath them. As more business processes route through document ingestion and transformation layers, the control question shifts from "can the file be parsed" to "what can the parser touch if it is abused". Teams should prepare for a wave of review work focused on service accounts, mounted volumes, and hidden dependency chains.

Identity blast radius: a single ingestion runtime can carry enough privilege to become a foothold for code execution, secrets exposure, and lateral movement. That is why workload identity reviews should now include indirect library dependencies, not just the services that operations teams explicitly deploy. The practical next step is to map which parsers sit closest to production credentials and AI connectors.


For practitioners

  • Constrain ingestion runtimes to a narrow filesystem boundary Run document-processing services with a dedicated service account, a read-only root filesystem where possible, and explicit write access only to a controlled temp directory. Verify that attachment handling cannot escape the allowed path even when filenames contain traversal characters.
  • Remove execution-sensitive locations from parser reach Block ingestion workloads from writing to startup scripts, SSH key paths, cron directories, and web-root locations. Separate the parser container or VM from any directory that could translate a file write into code execution or persistence.
  • Inventory indirect wrappers around the vulnerable library Trace every application, connector, and AI workflow that invokes the parsing library directly or through libraries such as orchestration frameworks. Prioritise the paths that run with cloud credentials, secrets access, or production data connectivity.
  • Treat document attachments as hostile inputs in AI pipelines Apply content validation, filename sanitisation, and archive extraction controls before any file touches disk. Test the pipeline with traversal payloads and malicious attachment names to confirm that path normalization is enforced at runtime.

Key takeaways

  • A path traversal flaw in an AI ETL library can turn document ingestion into arbitrary file write and potential remote code execution.
  • The scale of exposure is broad because the vulnerable library sits inside widely deployed AI and enterprise data pipelines.
  • Containment, path restriction, and workload identity scoping are the controls that most directly limit this failure mode.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-03Covers secret and workload exposure when a service can write into sensitive paths.
NIST CSF 2.0PR.AC-4Least privilege is central when ingestion runtimes can reach secrets or execution paths.
NIST Zero Trust (SP 800-207)AC-3Zero Trust requires explicit denial of implicit trust in library inputs and runtime paths.

Treat document filenames and attachments as untrusted and enforce path containment at every write.


Key terms

  • Arbitrary File Write: A vulnerability that lets an attacker write content to a file path they should not control. In identity-governed environments, this matters because file write often becomes persistence or code execution when the runtime has access to startup scripts, credentials, or other execution-sensitive paths.
  • Path Traversal: A bug where crafted path segments such as ../ allow input to escape an intended directory boundary. In practice, it turns a normal file operation into a boundary break, which is especially dangerous when the affected service runs with non-human identity privileges and touches production data or secrets.
  • Workload Identity: The non-human identity used by an application, service, or pipeline to authenticate and act inside a system. It includes the permissions, network reach, and filesystem access granted to the runtime, and it becomes the real blast radius when a library or container is compromised.

Deepen your knowledge

Document ingestion privilege scoping is a practical topic in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your AI and data pipelines rely on parser services, this is a strong fit for your governance programme.

This post draws on content published by Cyera: Destructured, critical vulnerability in Unstructured.io (CVE-2025-64712). Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-02-12.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org