-
Notifications
You must be signed in to change notification settings - Fork 324
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
Security Issue with your package from pypi.org #630
Comments
@rakovskij-stanislav I'm interested to know how you found this issue? If it was an automated tool, what tool did you use? Regarding the versions that depend on phonenumbers3k, it's a larger list than what you've reported. I checked the git history and found that the boundaries are:
It appears that phonenumbers3k is not a missed dependency. Rather, the Python packaging infrastructure has changed in the last ten years. Back in 2013 it was possible to specify dependencies that were not available on PyPI by stashing them in a Commit 71da6ac introduced this syntax: Lines 40 to 50 in 71da6ac
Python's packaging ecosystem doesn't use the @kvesteri I don't currently have a strong opinion whether to yank releases 0.14.0 through 0.23.4. pip removed all |
@kurtmckee I found it using my automated system for analyzing python packages vulnerabilities as a part of my research. I rechecked your packages and can say - yes, several other versions are affected too. 'phone': [
# The phonenumbers library has a split for 2.x and 3.x support.
'phonenumbers3k==5.6b1' if PY3 else 'phonenumbers<5.6b1'
],
So yes, I can confirm that vulnerable versions are:
0.23.4, mentioned by you, does not exist on pypi. |
Also it would be great to register a CVE for this. CVEs would help security teams on customer side to properly execute vulnerability management process. |
In which case pip-audit would pick up the CVE and warn users of the vulnerable packages… |
Hi, @jenstroeger! The database for pip-audit is advisory-database repo. They say:
I will additionally add this vuln in PYSEC database if it will not be parsed by this tool correctly, hand-made reports improvement is in progress (pypa/advisory-database#74) |
Hello! Found a security issue in your package in pypi:
https://pypi.org/project/sqlalchemy-utils/
Affected versions of package:
There's an unmet dependency on module
phonenumbers3k
if you will try to install these versions ofsqlalchemy-utils
with extrasphone
:It happens because there is missed requirement in
setup.py
file:It's dangerous because the intruder can create malicious package
phonenumbers3k
on pypi and:It's dangerous because usage of
sqlalchemy-utils
, even outdated, is not something strange. Everyone likes hardcoded versions of packages, even in the era of protestware.The best solution is to delete exact versions of package from pypi. Better to break dependencies in some old pipelines than compromise them.
Rakovsky Stanislav (Positive Technologies)
The text was updated successfully, but these errors were encountered: