Yes and no...
No - if there is no error with the interpreter or the brine module, you cannot run arbitrary code using pickled text or something like that. if the marinated text is eval ed later, or you do things such as creating a new object with the type mentioned in this data.
Yes - depending on what you plan to do with the information in the object later, the user can do all kinds of things. From attempts to implement SQL, change credentials, crack hacked passwords, or anything that should be considered when checking user input. But you are probably checking all of this.
Edit:
The python documentation states the following: Warning The pickle module is not intended to be secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source. Warning The pickle module is not intended to be secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source.
However, this is not your case - you accept the entry, expose it through a regular check, and then shove it.
Not_a_Golfer Apr 23 2018-12-12T00: 00Z
source share