Skip to content

Prevent arbitrary code eval #236

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

Merged
merged 4 commits into from
Aug 27, 2024
Merged

Conversation

zm711
Copy link
Contributor

@zm711 zm711 commented Jul 31, 2024

Fixes #221.

@codingchipmunk feel free to look at this. It's a bit of a hammer, but this blocks arbitrary eval of any python built-ins.

@apdavison, I would say this type of security would be nice to have even before the next release.

@zm711
Copy link
Contributor Author

zm711 commented Jul 31, 2024

All tests have passed now. Ready for review :)

@apdavison apdavison merged commit 329433c into python-quantities:master Aug 27, 2024
43 checks passed
@zm711 zm711 deleted the fix-eval-issue branch August 27, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulnerability: Possible code injection in UnitRegistry
2 participants