-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Don't allow update_into to mutate immutable objects #8230
Conversation
* Don't allow update_into to mutate immutable objects (#8230) * add changelog for 39.0.1 * oops * bump versions * remove circle --------- Co-authored-by: Alex Gaynor <alex.gaynor@gmail.com>
Does this involve interface changes? |
It behaves exactly the same unless you were passing an immutable type (e.g. a byte string). So the interface has technically changed but in practice it has only changed for the vulnerable path. |
In this case, change the buf class type from it can't use the def update_into(self, data: bytes, buf: bytes) -> int: |
I'm not sure what the effect of this vulnerability is. |
Unfortunately the Python type hint system doesn’t have a way to represent “all objects that implement the buffer protocol but only the mutable types”, so |
What is the impact of this cve? I don't seem to feel the threat of this vulnerability. |
No description provided.