This project might be open to known security vulnerabilities, which can be prevented by tightening the version range of affected dependencies. Find detailed information at the bottom.

Crate myelin-visualization-core

Dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 myelin-engine^0.14.00.14.2up to date
 serde^1.01.0.219up to date
 serde_json^1.01.0.140up to date
 bincode^1.02.0.1out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 maplit^1.01.0.2up to date
 mockiato^0.9.00.9.6up to date

Crate myelin-visualization-client

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 wasm-bindgen=0.2.550.2.100out of date
 myelin-engine^0.14.00.14.2up to date
 web-sys^0.3.00.3.77up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 maplit^1.01.0.2up to date
 nameof^1.01.2.2up to date
 mockiato^0.9.00.9.6up to date

Crate myelin-visualization-server

Dependencies

(8 total, 4 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 myelin-engine^0.14.00.14.2up to date
 log^0.40.4.27up to date
 simple_logger^1.05.0.0out of date
 clap^2.324.5.34out of date
 websocket ⚠️^0.240.27.1out of date
 nameof^1.01.2.2up to date
 uuid^0.81.16.0out of date
 wonderbox^0.50.5.0up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 maplit^1.01.0.2up to date
 mockiato^0.9.00.9.6up to date
 myelin-engine^0.14.00.14.2up to date

Crate myelin-worldgen

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 myelin-engine^0.14.00.14.2up to date
 nameof^1.01.2.2up to date
 rand^0.70.9.0out of date

Dev dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 myelin-engine^0.14.00.14.2up to date

Crate myelin-object-behavior

Dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 myelin-engine^0.14.00.14.2up to date
 itertools^0.80.14.0out of date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 nearly_eq^0.20.2.4up to date
 myelin-engine^0.140.14.2up to date

Crate myelin-object-data

Dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 serde^1.01.0.219up to date
 myelin-engine^0.14.00.14.2up to date

Crate myelin-random

Dependencies

(4 total, 3 outdated)

CrateRequiredLatestStatus
 rand^0.70.9.0out of date
 rand_hc^0.20.4.0out of date
 mockiato^0.9.00.9.6up to date
 paste^0.11.0.15out of date

Dev dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date

Crate myelin-neural-network

Dependencies

(2 total, all up-to-date)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 slab^0.40.4.9up to date

Dev dependencies

(3 total, all up-to-date)

CrateRequiredLatestStatus
 maplit^1.01.0.2up to date
 mockiato^0.9.00.9.6up to date
 nearly_eq^0.20.2.4up to date

Crate myelin-clone-box

No external dependencies! 🙌

Crate myelin-genetics

Dependencies

(4 total, 1 outdated)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 nameof^1.01.2.2up to date
 itertools^0.80.14.0out of date
 matches^0.10.1.10up to date

Dev dependencies

(3 total, 1 outdated)

CrateRequiredLatestStatus
 mockiato^0.9.00.9.6up to date
 pretty_assertions^0.61.4.1out of date
 maplit^1.01.0.2up to date

Crate myelin-associate-lists

No external dependencies! 🙌

Security Vulnerabilities

websocket: Unbounded memory allocation based on untrusted length

RUSTSEC-2022-0035

Impact

Untrusted websocket connections can cause an out-of-memory (OOM) process abort in a client or a server. The root cause of the issue is during dataframe parsing. Affected versions would allocate a buffer based on the declared dataframe size, which may come from an untrusted source. When Vec::with_capacity fails to allocate, the default Rust allocator will abort the current process, killing all threads. This affects only sync (non-Tokio) implementation. Async version also does not limit memory, but does not use with_capacity, so DoS can happen only when bytes for oversized dataframe or message actually got delivered by the attacker.

This is a security concern for you, if

  • your server application handles untrusted websocket connections
  • OR your client application connects to untrusted websocket servers

Patches

The crashes are fixed in version 0.26.5 by imposing default dataframe size limits. Affected users are advised to update to this version.

Note that default memory limits are rather large (100MB dataframes and 200 MB messages), so they can still cause DoS in some environments (i.e. 32-bit). New API has been added to fine tune those limits for specific applications.

Workarounds

  • Migrate your project to another, maintained Websocket library like Tungstenite.
  • Accept only trusted WebSocket traffic.
  • Filter the WebSocket traffic though some kind of proxy that ensures sanity limits on messages.
  • Handle process aborts gracefully and limit process memory using OS tools.

Credits

This issue was reported by Evan Richter at ForAllSecure and found with Mayhem and Cargo Fuzz.