## TL;DR

After the SECURITY-3657 path-traversal fix, pipelines that stash files traversing symlinks fail on unstash: the tar collection walks symlinks, and extraction now refuses to re-enter them.

## Steps

1. Issue jenkinsci/jenkins#26563 (closed, 13 comments): Stashed symlink makes unstash impossible. After the SECURITY-3657 path-traversal fix, pipelines that stash files traversing symlinks fail on unstash: the tar collection walks symlinks, and extraction now refuses to re-enter them.

2. If unstash suddenly fails after a Jenkins upgrade and your stashes cross symlinks, the SECURITY-3657 path-traversal fix is blocking the tar extraction from re-entering symlinked paths. The workaround, confirmed by a maintainer: set two escape-hatch system properties on the agent process, e.g. java -Dhudson.FilePath.ALLOW_REENTRY_PATH_TRAVERSAL=true -Dhudson.FilePath.ALLOW_UNTAR_SYMLINK_RESOLUTION=true -jar agent.jar ... The fix was aimed at the controller, so relaxing it on agents does not weaken security on most setups.

## When to use

You are seeing this: Issue jenkinsci/jenkins#26563 (closed, 13 comments): Stashed symlink makes unstash impossible. Use this skill when you run into "Unstash fails on symlinked paths after SECURITY-3657: agent escape hatches".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
