Skip to content

[9.2] (backport #18848) Adds verification of the file name#18909

Merged
andsel merged 1 commit into9.2from
mergify/bp/9.2/pr-18848
Mar 27, 2026
Merged

[9.2] (backport #18848) Adds verification of the file name#18909
andsel merged 1 commit into9.2from
mergify/bp/9.2/pr-18848

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Mar 27, 2026

Release notes

[rn:skip]

What does this PR do?

Adds a file name verification


This is an automatic backport of pull request #18848 done by Mergify.

Verify the destination path to check some rules that avoid deliberate path traversal during extraction.
- avoid absolute path
- avoid symbolic links (only for tar.gz file)
- avoid paths with parent navigation, for example: `logstash/../../../something/in/target/host`

Covered all these branches with unit tests.

(cherry picked from commit c4d7362)
@mergify mergify bot added the backport label Mar 27, 2026
@mergify mergify bot assigned andsel Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)
  • run exhaustive tests : Run the exhaustive tests Buildkite pipeline.

@elasticmachine
Copy link
Copy Markdown

💚 Build Succeeded

cc @andsel

@andsel andsel merged commit 6f9ea19 into 9.2 Mar 27, 2026
14 checks passed
@andsel andsel deleted the mergify/bp/9.2/pr-18848 branch March 27, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants