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

RUSTSEC-2022-0040: Multiple soundness issues in owning_ref #2244

Open
github-actions bot opened this issue Aug 3, 2022 · 1 comment
Open

RUSTSEC-2022-0040: Multiple soundness issues in owning_ref #2244

github-actions bot opened this issue Aug 3, 2022 · 1 comment

Comments

@github-actions
Copy link

github-actions bot commented Aug 3, 2022

Multiple soundness issues in owning_ref

Details
Package owning_ref
Version 0.4.1
URL https://github.com/noamtashma/owning-ref-unsoundness
Date 2022-01-26
  • OwningRef::map_with_owner is unsound and may result in a use-after-free.
  • OwningRef::map is unsound and may result in a use-after-free.
  • OwningRefMut::as_owner and OwningRefMut::as_owner_mut are unsound and may result in a use-after-free.
  • The crate violates Rust's aliasing rules, which may cause miscompilations on recent compilers that emit the LLVM noalias attribute.

No patched versions are available at this time. While a pull request with some fixes is outstanding, the maintainer appears to be unresponsive.

See advisory page for additional details.

@tmpolaczyk
Copy link
Contributor

owning_ref is a dependency of async-jsonrpc-client, which is a legacy package that we use in some projects. The async-jsonrpc-client package has many outdated dependencies like futures 0.1, which forces us to add compatibility workarounds such as the Compat01As03 type. The best solution would be to find or create a modern jsonrpc client.

$ cargo tree --no-dedupe --workspace -i owning_ref
owning_ref v0.4.1
└── lock_api v0.1.5
    └── parking_lot v0.7.1
        └── async-jsonrpc-client v0.1.0 (https://github.com/witnet/async-jsonrpc-client?branch=fix-tcp-leak#600a2d69)
            ├── witnet-centralized-ethereum-bridge v0.1.0 (/witnet-rust/bridges/centralized-ethereum)
            ├── witnet-ethereum-bridge v0.1.0 (/witnet-rust/bridges/ethereum)
            ├── witnet_net v0.1.0 (/witnet-rust/net)
            │   ├── witnet-centralized-ethereum-bridge v0.1.0 (/witnet-rust/bridges/centralized-ethereum)
            │   └── witnet_wallet v0.3.2 (/witnet-rust/wallet)
            │       └── witnet v1.5.2 (/witnet-rust)
            └── witnet_wallet v0.3.2 (/witnet-rust/wallet)
                └── witnet v1.5.2 (/witnet-rust)

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

No branches or pull requests

1 participant