Skip to content

[SECURITY] Linux: extracting a symlink with ACLs modifies ACLs of target #1565

@mmatuska

Description

@mmatuska

When an archive entry contains a symbolic link that has defined ACLs on Linux, on extraction the ACLs of the link target are modified. This is because the function acl_set_file() is used without a prior check if the file is not a symbolic link.

FreeBSD and MacOS use acl_set_link_np() that does not follow symbolic links.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions