Asked 3 years ago
9 Aug 2021
Views 726
Ceasar

Ceasar posted

Is exec safe in Python ?

Is exec safe in Python ?
dilip

dilip
answered Aug 9 '21 00:00

exec() is not safe to use in Python because it runs every code that it passed, so by through the exec() function hackers can access Python variables and sensitive data, any hacker can read and write files at host system so it is very dangerous to use exec() function.
Post Answer