Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RUSTSEC-2024-0402: Borsh serialization of HashMap is non-canonical #3718

Closed
github-actions bot opened this issue Dec 7, 2024 · 0 comments · Fixed by #3716
Closed

RUSTSEC-2024-0402: Borsh serialization of HashMap is non-canonical #3718

github-actions bot opened this issue Dec 7, 2024 · 0 comments · Fixed by #3716
Assignees
Milestone

Comments

@github-actions
Copy link

github-actions bot commented Dec 7, 2024

Borsh serialization of HashMap is non-canonical

Details
Package hashbrown
Version 0.15.0
URL rust-lang/hashbrown#576
Date 2024-10-11
Patched versions >=0.15.1
Unaffected versions <0.15.0

The borsh serialization of the HashMap did not follow the borsh specification.
It potentially produced non-canonical encodings dependent on insertion order.
It also did not perform canonicty checks on decoding.

This can result in consensus splits and cause equivalent objects to be
considered distinct.

This was patched in 0.15.1.

See advisory page for additional details.

@djmitche djmitche linked a pull request Dec 7, 2024 that will close this issue
@djmitche djmitche self-assigned this Dec 7, 2024
@djmitche djmitche moved this from Backlog to In review in Taskwarrior Development Dec 7, 2024
@djmitche djmitche added this to the v3.3.0 milestone Dec 8, 2024
@github-project-automation github-project-automation bot moved this from In review to Done in Taskwarrior Development Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant