ZipTransformer in Spring Integration defaults to writing extracted files directly to the filesystem via ZipResultType.FILE, and the documented security boundary called workDirectory is not enforced against the file_name message header. This is the core vulnerability: the default behavior is the dangerous one, and the protective constraint the framework advertises can be bypassed by any upstream component that sets the file_name header on an incoming message.
If you're running Spring Integration 6.4.0 through 7.1.0, ZipTransformer will accept an absolute or parent-referencing path in the file_name header and write outside the intended workDirectory. The attack surface includes any integration flow where external message producers can influence headers — which is nearly all of them in enterprise environments where REST endpoints, message queues, file drops, or partner integrations feed into Spring Integration pipelines.
The remediation requires two things: first, switch the default to ZipResultType.BYTE_ARRAY if your flow can accommodate it, removing the filesystem write entirely. Second, if FILE mode is required, validate the file_name header against the workDirectory before any extraction occurs — reject any path containing parent references (..) or absolute paths. The workDirectory boundary should be treated as advisory, not enforced, until the component is patched.
The deeper architectural lesson: Spring Integration's component model treats message headers as trusted inputs by convention, but headers can be controlled by external producers in most integration topologies. This creates a trust asymmetry where headers are assumed to be safe because they are 'internal' while payloads are scrutinized as 'external.' ZipTransformer violates this assumption by deriving the output filename from a header. Audit other components in your integration flows that accept filenames, paths, or classloader references from message headers — they likely carry the same vulnerability class.