Skip to content

RUSTSEC-2024-0437: Update protobuf dependency #2769

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

Closed
wer1st opened this issue Mar 7, 2025 · 6 comments · Fixed by #2920
Closed

RUSTSEC-2024-0437: Update protobuf dependency #2769

wer1st opened this issue Mar 7, 2025 · 6 comments · Fixed by #2920

Comments

@wer1st
Copy link

wer1st commented Mar 7, 2025

Now cargo audit has found vulnerability in protobuf.
Please update your protobuf dependency on actual v3.

$ cargo audit
    Fetching advisory database from `https://github.com/RustSec/advisory-db.git`
      Loaded 741 security advisories (from /home/.cargo/advisory-db)
    Updating crates.io index
    Scanning Cargo.lock for vulnerabilities (528 crate dependencies)
Crate:     protobuf
Version:   2.28.0
Title:     Crash due to uncontrolled recursion in protobuf crate
Date:      2024-12-12
ID:        RUSTSEC-2024-0437
URL:       https://rustsec.org/advisories/RUSTSEC-2024-0437
Solution:  No fixed upgrade is available!
Dependency tree:
protobuf 2.28.0
├── prometheus 0.13.4
│   ├── opentelemetry-prometheus 0.28.0
│   │   └── app 0.1.0
│   └── app 0.1.0
└── opentelemetry-prometheus 0.28.0

error: 1 vulnerability found!
@andrewmcgivery
Copy link

Per @abernix in tikv/rust-prometheus#538

Upgrading to 3 is not going to fix it. 3 is also vulnerable to the same thing. Per the text in the advisory, there is no patched version of protobuf.

This needs to be patched in protobuf or need to move to an alternative crate like prost.

@gruebel
Copy link
Member

gruebel commented Mar 10, 2025

I took a brief look into opentelemetry-prometheus and the protobuf version has to be bumped in the prometheus crate first, because there are a couple of breaking changes.

@cijothomas
Copy link
Member

Maybe #2451 needs more discussion. We have not been investing energy into prometheus exporter for a while anyway.

@wer1st
Copy link
Author

wer1st commented Mar 19, 2025

protobuf version has to be bumped in the prometheus crate first

It is in master now.
by PR: tikv/rust-prometheus#541

@gruebel
Copy link
Member

gruebel commented Mar 19, 2025

as of #2831 the opentelemetry-prometheus crate will be discontinued and lastly removed, therefore there won't be any fix for it or should we still put in the effort of upgrading it @cijothomas ?

@cijothomas
Copy link
Member

My opinion is not to continue investing in dedicated Prometheus exporter now. We are still struggling to hit 1.0, so want to keep focus by reducing anything non-critical.

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