Skip to content

[2.5] Invalidate .install fields containing destination filepath trying to escape their scope#6898

Merged
kit-ty-kate merged 3 commits intoocaml:2.5from
kit-ty-kate:2.5-fix-dotinstall-escape
Apr 15, 2026
Merged

[2.5] Invalidate .install fields containing destination filepath trying to escape their scope#6898
kit-ty-kate merged 3 commits intoocaml:2.5from
kit-ty-kate:2.5-fix-dotinstall-escape

Conversation

@kit-ty-kate
Copy link
Copy Markdown
Member

Backport of #6897 on the 2.5 branch

@avsm
Copy link
Copy Markdown
Member

avsm commented Apr 15, 2026

Thanks Kate! Just wanted to note credit for reporting this is @andrew (Andrew Nesbitt)

…escape their scope

Absolute filepaths and paths containing '..' were already forbidden by
the opam manual.

Per the <pkgname>.install section:
> Absolute paths, or paths referencing the parent directory (..), are not allowed.
@kit-ty-kate kit-ty-kate force-pushed the 2.5-fix-dotinstall-escape branch from 9de6c01 to da30943 Compare April 15, 2026 16:49
@kit-ty-kate
Copy link
Copy Markdown
Member Author

Thanks Kate! Just wanted to note credit for reporting this is @andrew (Andrew Nesbitt)

yes don't worry this will be in the advisory, the release note and the blog and discuss posts

@kit-ty-kate
Copy link
Copy Markdown
Member Author

Not waiting for the Windows/msvc/5.4.0 CI run which is taking longer than usual (nearing two hours), merging.

@kit-ty-kate kit-ty-kate merged commit c8fcf65 into ocaml:2.5 Apr 15, 2026
44 checks passed
@kit-ty-kate kit-ty-kate deleted the 2.5-fix-dotinstall-escape branch April 15, 2026 18:46
@kit-ty-kate kit-ty-kate mentioned this pull request Apr 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants