After analysis, the issue stems from a lack of checking if a symlink was outside of the archive. Since this check was not made, symlinks could be followed outside of the archive and lead to modification of the filesystem outside of the archive which could result in affecting existing files or creation of new files.