Skip to content

advisory: HSEC-2026-0006 - Cabal deletes project source files during configure (#317)#318

Merged
blackheaven merged 2 commits intohaskell:mainfrom
blackheaven:advisory/HSEC-2026-0006_cabal-remove
Apr 8, 2026
Merged

advisory: HSEC-2026-0006 - Cabal deletes project source files during configure (#317)#318
blackheaven merged 2 commits intohaskell:mainfrom
blackheaven:advisory/HSEC-2026-0006_cabal-remove

Conversation

@blackheaven
Copy link
Copy Markdown
Collaborator

Advisory

  • It's not duplicated
  • All fields are filled
  • It is validated by hsec-tools

@blackheaven blackheaven linked an issue Apr 8, 2026 that may be closed by this pull request
Comment on lines +34 to +37
While the current implementation does not follow symlinks, the deletion of source
files during a build operation is a security issue. This could potentially lead to
arbitrary file deletion if combined with symlink-following behavior in future
versions or specific system configurations.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Well, as demonstrated, we CAN delete headers outside of the project directory on windows without the need for symlinks.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Thanks :)

@blackheaven blackheaven requested a review from hasufell April 8, 2026 12:48
Copy link
Copy Markdown
Collaborator

@mihaimaruseac mihaimaruseac left a comment

Choose a reason for hiding this comment

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

Thank you!

@blackheaven blackheaven merged commit c10af8c into haskell:main Apr 8, 2026
3 checks passed
@blackheaven blackheaven deleted the advisory/HSEC-2026-0006_cabal-remove branch April 8, 2026 14:23
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.

Cabal deletes projects files in rare circumstances

3 participants