This project contains known security vulnerabilities. Find detailed information at the bottom.

Crate axum

Dependencies

(27 total, 13 outdated, 1 insecure)

CrateRequiredLatestStatus
 async-trait^0.1.430.1.92up to date
 axum-core ⚠️^0.1.10.5.6insecure
 base64^0.130.23.1out of date
 bitflags^1.02.13.2out of date
 bytes^1.01.12.1up to date
 futures-util^0.30.3.34up to date
 headers^0.30.4.1out of date
 http^0.2.51.5.0out of date
 http-body^0.4.41.1.0out of date
 hyper^0.14.141.11.1out of date
 matchit^0.4.60.9.2out of date
 memchr^2.4.12.8.3up to date
 mime^0.3.160.3.17up to date
 multer^2.0.03.1.0out of date
 percent-encoding^2.12.3.2up to date
 pin-project-lite^0.2.70.2.17up to date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 serde_urlencoded^0.70.7.1up to date
 sha-1^0.100.10.1up to date
 sync_wrapper^0.1.11.0.2out of date
 tokio^11.53.1up to date
 tokio-tungstenite^0.160.30.0out of date
 tower^0.4.110.5.3out of date
 tower-http^0.2.00.7.1out of date
 tower-layer^0.30.3.3up to date
 tower-service^0.30.3.3up to date

Dev dependencies

(11 total, 4 outdated)

CrateRequiredLatestStatus
 anyhow^1.01.0.104up to date
 futures^0.30.3.34up to date
 reqwest^0.110.13.5out of date
 serde^1.01.0.229up to date
 serde_json^1.01.0.151up to date
 tokio^1.6.11.53.1up to date
 tokio-stream^0.10.1.19up to date
 tower^0.4.100.5.3out of date
 tower-http^0.2.00.7.1out of date
 tracing^0.10.1.44up to date
 uuid^0.81.26.1out of date

Security Vulnerabilities

axum-core: No default limit put on request bodies

RUSTSEC-2022-0055

<bytes::Bytes as axum_core::extract::FromRequest>::from_request would not, by default, set a limit for the size of the request body. That meant if a malicious peer would send a very large (or infinite) body your server might run out of memory and crash.

This also applies to these extractors which used Bytes::from_request internally:

  • axum::extract::Form
  • axum::extract::Json
  • String

The fix is also in axum-core 0.3.0.rc.2 but 0.3.0.rc.1 is vulnerable.

Because axum depends on axum-core it is vulnerable as well. The vulnerable versions of axum are <= 0.5.15 and 0.6.0.rc.1. axum >= 0.5.16 and >= 0.6.0.rc.2 does have the fix and are not vulnerable.

The patched versions will set a 2 MB limit by default.