Spring Integration Zip Transformer Default Work Directory Can Be Redirected via Symlink
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| SpringSpring Integration |
≥ 7.1.0, < 7.1.2.1→ 7.1.2.1 ≥ 7.0.0, < 7.0.7.1→ 7.0.7.1 ≥ 6.5.0, < 6.5.12→ 6.5.12 ≥ 6.4.0, < 6.4.14→ 6.4.14 ≥ 7.1.0, < 7.1.3→ 7.1.3 ≥ 7.0.0, < 7.0.8→ 7.0.8 |
7.1.2.1 7.0.7.1 6.5.12 6.4.14 7.1.3 7.0.8 |
Original description The description as published by the source.
The symbolic link guard in AbstractZipTransformer.onInit() protects an explicitly configured workDirectory , but not the default one.
The default work directory, ${java.io.tmpdir}/ziptransformer , is canonicalized when the transformer is constructed, so any symbolic link at that location is already resolved to its target by the time the guard runs, and the check passes.
Because the default path is fixed and well known, an unprivileged local user who can create ${java.io.tmpdir}/ziptransformer as a symbolic link before the application starts can redirect the transformer's temporary file writes to a directory of their choosing, with files written as the application's user.
No configuration is required on the application side; using the default work directory is enough.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- patch github.com
- web spring.io
- web nvd.nist.gov
- web github.com