-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Poetry 1.1.8 does not include the security fix for mismatching package hashes #4409
Comments
The pull request containing the fix was made against If the fix were to also be included in 1.1.x versions, it would need to be backported by doing a pull request against |
I did as you suggested, creating this PR to backport the fix. Unfortunately this PR isn't sufficient to correct the bug, as this other PR needs to be backported to I tried to do so, but with the given change |
More precisely, if I backport the poetry-core PR, Poetry fails with the following (see python-poetry/poetry-core#193):
I think that there is an underlying bug where an object that should be a |
It is fixed in 1.1.9, I just checked that |
Granted, now I get this error: AttributeError 'Link' object has no attribute 'name' at ~/.pyenv/versions/3.7.9/lib/python3.7/site-packages/poetry/installation/executor.py:620 in _download_link AttributeError 'Link' object has no attribute 'name' WHY exactly auth-client, and another internal to my company package are failing the hash check is a different and scary question. This is on a fresh clean install with no lock file. The hash being calculated here is sha256, but the one in the lock file is md5?
|
I had the same problem with our internal pypiserver. |
Not an option for our artifactory server :-( |
I've upgraded our poetry version to resolve a [dependency installation issue](https://app.circleci.com/pipelines/github/chdsbd/kodiak/2438/workflows/b7c161ad-c228-46a3-b64c-8a395ac3ebe3/jobs/21508): python-poetry/poetry#4409 (comment) I also ended up upgrading some packages to resolve a broken lock file, which cased pylint to error. I've centralized our pylint config so now we just have one for bot/ and web_api/
1.1.7 and 1.1.8 will run afoul of python-poetry/poetry#4409 and the needed fix isn't in until 1.1.9.
1.1.7 and 1.1.8 will run afoul of python-poetry/poetry#4409 and the needed fix isn't in until 1.1.9.
1.1.7 and 1.1.8 will run afoul of python-poetry/poetry#4409 and the needed fix isn't in until 1.1.9.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hello, it appears to me that the latest Poetry release (1.1.8) does not contain this important security fix that makes Poetry actually check the hashes of downloaded files against the hashes in
poetry.lock
.I tried to alter the hashes in my
poetry.lock
and reinstall one package on Poetry 1.1.8, and it did not complain.Also, it's evident that this commit is not present in the
chooser.py
file in therelease-1.1.8
branch, but it is present in themaster
version of the file.It looks like some weird Git merging issue.
Can we make sure this security fix gets included ASAP in the next release? Thank you 🙏🏼
The text was updated successfully, but these errors were encountered: