Skip to content

fix(config): prevent plugin library path traversal via relative paths#3850

Merged
poiana merged 3 commits into
masterfrom
fix/plugin-library-path-traversal
Apr 15, 2026
Merged

fix(config): prevent plugin library path traversal via relative paths#3850
poiana merged 3 commits into
masterfrom
fix/plugin-library-path-traversal

Conversation

@leogr

@leogr leogr commented Apr 8, 2026

Copy link
Copy Markdown
Member

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

/kind release

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area build

/area engine

/area tests

/area proposals

/area CI

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

/milestone 0.44.0

Does this PR introduce a user-facing change?:

NONE

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr force-pushed the fix/plugin-library-path-traversal branch from 2a815e8 to de93866 Compare April 10, 2026 12:52
ekoops
ekoops previously approved these changes Apr 13, 2026

@ekoops ekoops left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@irozzo-1A irozzo-1A left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a nit. I would also like to point out that this PR is only adding a lexical check, that is vulnerable to symlinks pointing to relative path for instance, without mentioning that absolute paths are unconstrained as documented.

Comment thread userspace/falco/configuration.h Outdated
Co-authored-by: irozzo-1A <iacopo@sysdig.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

@ekoops ekoops left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@irozzo-1A irozzo-1A left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@github-project-automation github-project-automation Bot moved this from Todo to In progress in Falco Roadmap Apr 15, 2026
@poiana

poiana commented Apr 15, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekoops, irozzo-1A, leogr

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit a3d7dbe into master Apr 15, 2026
32 checks passed
@github-project-automation github-project-automation Bot moved this from In progress to Done in Falco Roadmap Apr 15, 2026
@poiana poiana deleted the fix/plugin-library-path-traversal branch April 15, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants