Skip to content

fix: harden uploaded file handling#10282

Closed
gr8man wants to merge 4 commits into
codeigniter4:developfrom
gr8man:fix/uploadedfile-path-traversal
Closed

fix: harden uploaded file handling#10282
gr8man wants to merge 4 commits into
codeigniter4:developfrom
gr8man:fix/uploadedfile-path-traversal

Conversation

@gr8man
Copy link
Copy Markdown

@gr8man gr8man commented Jun 6, 2026

No description provided.

@mergeable
Copy link
Copy Markdown

mergeable Bot commented Jun 6, 2026

Hi there, gr8man! 👋

Thank you for sending this PR!

We expect the following in all Pull Requests (PRs).

Important

We expect all code changes or bug-fixes to be accompanied by one or more tests added to our test suite to prove the code works.

If pull requests do not comply with the above, they will likely be closed. Since we are a team of volunteers, we don't have any more time to work
on the framework than you do. Please make it as painless for your contributions to be included as possible.

See https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/pull_request.md

Sincerely, the mergeable bot 🤖

@michalsn michalsn changed the title fix: sanitize client-provided filename in UploadedFile::move() to prevent path traversal fix: harden uploaded file handling Jun 7, 2026
@michalsn
Copy link
Copy Markdown
Member

michalsn commented Jun 7, 2026

Thanks for the report. This appears to be security-sensitive, so we are moving handling to our private security process. Please avoid adding further technical details here.

For future security-related reports, please follow our security policy:
https://github.com/codeigniter4/CodeIgniter4?tab=security-ov-file

@michalsn michalsn closed this Jun 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants