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

rmp-serde Unsound #1426

Closed
pinkforest opened this issue Sep 27, 2022 · 7 comments · Fixed by #1650
Closed

rmp-serde Unsound #1426

pinkforest opened this issue Sep 27, 2022 · 7 comments · Fixed by #1650
Assignees
Labels
Unsound Informational / Unsound

Comments

@pinkforest
Copy link
Contributor

pinkforest commented Sep 27, 2022

3Hren/msgpack-rust#305
https://gist.github.com/Lucretiel/5deaf285f06a85056aa76276abf9bd77

@Lucretiel would you mind contributing a PR on informational = "unsound" advisory on this ?

Do we know what release these Raw deprecations ended up into ?

@Lucretiel
Copy link

They were deprecated (but not yet removed) in 1.1.0

@Lucretiel
Copy link

Sure, I can start a report; is there a guide for how to write them?

@pinkforest
Copy link
Contributor Author

@kornelski just wondering re: release for rmp-serde w/ removed Raw ? We can also mention the deprecation. Thanks

@pinkforest
Copy link
Contributor Author

@Lucretiel That would be lovely !

You can send a pull request, create crates/rmp-serde/RUSTSEC-0000-0000.md

For an example for unsound:
https://github.com/rustsec/advisory-db/pull/1389/files

For the date use when you reported the issue originally - it's backdated

Cheers

@Lucretiel
Copy link

It appears that Raw itself wasn't deprecated, but from_utf8 was. There's still potential unsoundness in the serialize -> deserialize path. I haven't seen any justification for why type exists in the first place so it remains my position that it should be deprecated and removed entirely.

@pinkforest
Copy link
Contributor Author

Cool - yeah if we could please document all those different vectors despite them being deprecated so the user will have informed choice on which APIs to use. Cheers

@pinkforest pinkforest added the Unsound Informational / Unsound label Sep 27, 2022
@kornelski
Copy link
Contributor

Fixed in rmp-serde 1.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unsound Informational / Unsound
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants