[GHSA-58pv-8j8x-9vj2] jaraco.context Has a Path Traversal Vulnerability #6691
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Updates
I have implemented two improvements in the PoC:
OSErrorto allow recovery and continued execution of all cases in the loop. This error can occur, for example, on a read-only filesystem and would otherwise prevent checking subsequent cases.../path segments from the working directory to the system root. This prevents false negatives: if the number of segments is hardcoded, a file could be placed in an unexpected location and the script would fail to detect that the system is vulnerable.Comments