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

Uncontrolled recursion leads to abort in deserialization #2506

Closed
2 tasks done
vireshk opened this issue May 28, 2021 · 3 comments
Closed
2 tasks done

Uncontrolled recursion leads to abort in deserialization #2506

vireshk opened this issue May 28, 2021 · 3 comments
Labels
C-bug Category: Updating dependencies

Comments

@vireshk
Copy link

vireshk commented May 28, 2021

Please complete the following tasks

  • I have searched the discussions
  • I have searched the existing issues

Rust Version

rustc 1.52.1 (9bc8c42bb 2021-05-09)

Clap Version

v2.33.3

Minimal reproducible code

fn main() {}

Steps to reproduce the bug with the above code

Have this dependency in Carto.toml

clap = { version = "2.33.3", features = ["yaml"] }

and do:

$ cargo audit -q

Actual Behaviour

$ cargo audit -q
Crate: yaml-rust
Version: 0.3.5
Title: Uncontrolled recursion leads to abort in deserialization
Date: 2018-09-17
ID: RUSTSEC-2018-0006
URL: https://rustsec.org/advisories/RUSTSEC-2018-0006
Solution: Upgrade to >=0.4.1
Dependency tree:
yaml-rust 0.3.5
└── clap 2.33.3
└── vhost-device-i2c 0.1.0

error: 1 vulnerability found!

Expected Behaviour

No errors

Additional Context

https://buildkite.com/rust-vmm/vhost-device-ci/builds/13#c50950ee-b2cb-4726-896a-fe2ac287ad79

Link to the issue.

Debug Output

No response

@vireshk vireshk added the C-bug Category: Updating dependencies label May 28, 2021
@pksunkara
Copy link
Member

Duplicate of #1569.

Hello, you marked that you searched other issues. Can you please explain how you did not find this one?

@vireshk
Copy link
Author

vireshk commented May 28, 2021

Hello, you marked that you searched other issues. Can you please explain how you did not find this one?

I was able to find it earlier and somehow it looked to me that it would be fixed by clap 2.33.3, maybe I misread then..

But even after following #1569 I am not able to understand how to fix this problem. Do I understand correctly that it is only fixed for clap 3 onwards and not for 2.33.* ?

Thanks.

@vireshk
Copy link
Author

vireshk commented May 28, 2021

But even after following #1569 I am not able to understand how to fix this problem. Do I understand correctly that it is only fixed for clap 3 onwards and not for 2.33.* ?

Ahh, I was able to get over it. Thanks.

clap = { version = "3.0.0-beta.2", features = ["yaml"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: Updating dependencies
Projects
None yet
Development

No branches or pull requests

2 participants