-
Notifications
You must be signed in to change notification settings - Fork 394
scanner-rs OOB read #2262
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
scanner-rs OOB read #2262
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not obvious how this crate is implicated. Have you filed an issue against it? Does the maintainer agree that there is an issue that warrants an advisory? Has a fix been released?
Actually I would like to create issue over there at first. However, that git repository does not allow me to create an issue. |
The code snippet is copied from the crate's lib.rs |
Edit: weird, 404 on desktop, works on mobile but I can't actually post an issue Looks like you might be able to open a PR? |
Submitting a PR (maybe adding an unmaintained notice to the README) seems like a decent way to notify the author. The repo has just 1 commit from 9 years ago so I wouldn't expect a lot of activity, but at least the author still seems quite active on GitHub. |
I created a PR pombredanne/scanner-rs#1 |
Sent an email to the maintainer to notify them of this advisory. Per discussion in #1092, will merge if there's been no response in 2 weeks. |
FYI: pombredanne/scanner-rs#1 (comment)
|
@djc please go ahead and merge. I merged @charlesxsh patch. I assume this code is correct. I would welcome a second pair of eyes on If problematic, I will revert and update as needed. |
@tarcieri re:
This happened as this was not the head repo. When you fork in GH, issues are not enabled by default. Only PRs. I fixed this. |
Note also that I do NOT own the record at https://crates.io/crates/scanner .... this is @CasualX so I cannot do much of anything to push updated releases. |
@pombredanne thanks for the quick response, sorry for bothering you -- should have checked the metadata more carefully. |
Oh hi, I was a bit concerned to see this but yeah this is very old code. This project has been folded into my pelite crate, you can find the relevant code here which should not be vulnerable (the API was entirely reworked). I don't mind if this scanner-rs crate is deleted in its entirety, anyone still using it should update to pelite proper. Thanks for the ping! |
@CasualX thanks! @charlesxsh can you rewrite this advisory as explained previously? |
@djc updated it |
Thanks! |
Great conclusion. 🙇 |
No description provided.