Skip to content
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

Allow pyyaml version >4 in setup.py #6441

Closed
qboot opened this issue Jan 7, 2019 · 5 comments
Closed

Allow pyyaml version >4 in setup.py #6441

qboot opened this issue Jan 7, 2019 · 5 comments

Comments

@qboot
Copy link

qboot commented Jan 7, 2019

hello!

I recently received this Github alert on a project because I'm using a pyyaml version <4.2b1:

CVE-2017-18342
high severity
Vulnerable versions: < 4.2b1
Patched version: 4.2b1
In PyYAML before 4.1, the yaml.load() API could execute arbitrary code. In other words, yaml.safe_load is not used.

After some research it seems that it's because docker-compose require PyYAML >= 3.10, < 4 in setup.py :

'PyYAML >= 3.10, < 4',

Is there any contraindication to not authorize version >4 ? Thanks.

@shin-
Copy link

shin- commented Jan 7, 2019

Hi @qboot

The vulnerable code is not currently used in our code base (Compose only ever calls safe_load). That said, we'll definitely look into upgrading the dependency to avoid issues cropping up in the future.

@hakan458
Copy link

hakan458 commented May 21, 2019

ERROR: docker-compose 1.24.0 has requirement PyYAML<4.3,>=3.10, but you'll have pyyaml 5.1 which is incompatible.

Any plans for this?

@mayankkgandhi
Copy link

ERROR: docker-compose 1.24.0 has requirement PyYAML<4.3,>=3.10, but you'll have pyyaml 5.1 which is incompatible.

Any plans for this?

I am having the same error for my docker image, did you find any solution yet?

@tannergilligan
Copy link

tannergilligan commented Jun 30, 2019

I'm also getting this error when using sagemaker, and it tries to run docker-compose:

pkg_resources.ContextualVersionConflict: (PyYAML 5.1 (c:\users\tanner\anaconda3\lib\site-packages), Requirement.parse('PyYAML<4.3,>=3.10'), {'docker-compose'})

Edit: I found this thread #6619

@rmwenzel
Copy link

rmwenzel commented Aug 31, 2019

I ran into the same issue trying to use sagemaker and keras. It can be resolved by using PyYAML==4.2b1 -- see swagger-atlas/atlas/issues/7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants