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

Crate tranquility

Dependencies

(47 total, 27 outdated, 1 insecure, 5 possibly insecure)

CrateRequiredLatestStatus
 ammonia ⚠️^3.2.14.1.2out of date
 argh^0.1.90.1.19up to date
 askama^0.11.10.15.6out of date
 async-trait^0.1.580.1.89up to date
 axum^0.5.170.8.8out of date
 axum-macros^0.2.30.5.0out of date
 axum-server^0.4.20.8.0out of date
 base64^0.13.10.22.1out of date
 cfg-if^1.0.01.0.4up to date
 futures-util^0.3.250.3.32up to date
 headers^0.3.80.4.1out of date
 hex^0.4.30.4.3up to date
 http^0.2.81.4.0out of date
 itertools^0.10.50.14.0out of date
 mime^0.3.160.3.17up to date
 once_cell^1.16.01.21.4up to date
 ormx^0.10.00.11.0out of date
 paste^1.0.91.0.15up to date
 rand^0.8.50.10.0out of date
 rayon^1.5.31.11.0up to date
 regex^1.6.01.12.3up to date
 reqwest^0.11.120.13.2out of date
 rsa ⚠️^0.7.10.9.10insecure
 rust-argon2^1.0.03.0.0out of date
 serde^1.0.1471.0.228up to date
 serde_json^1.0.871.0.149up to date
 serde_qs^0.10.11.1.0out of date
 sha2^0.10.60.11.0out of date
 sqlx ⚠️^0.5.120.8.6out of date
 thiserror^1.0.372.0.18out of date
 time ⚠️^0.3.160.3.47maybe insecure
 tokio ⚠️^1.21.21.51.0maybe insecure
 toml^0.5.91.1.2+spec-1.1.0out of date
 tower^0.4.130.5.3out of date
 tower-http^0.3.40.6.8out of date
 tracing^0.1.370.1.44up to date
 tracing-subscriber ⚠️^0.3.160.3.23maybe insecure
 url^2.3.12.5.8up to date
 uuid^1.2.11.23.0up to date
 validator^0.16.00.20.0out of date
 lettre^0.10.10.11.20out of date
 opentelemetry^0.18.00.31.0out of date
 opentelemetry-jaeger^0.17.00.22.0out of date
 tracing-opentelemetry^0.18.00.32.1out of date
 pulldown-cmark^0.9.20.13.3out of date
 jemallocator^0.5.00.5.4up to date
 mimalloc^0.1.300.1.48up to date

Dev dependencies

(1 total, 1 outdated)

CrateRequiredLatestStatus
 jsonschema^0.16.10.45.0out of date

Crate tranquility-content-length-limit

Dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 axum^0.5.170.8.8out of date
 headers^0.3.80.4.1out of date

Crate tranquility-http-signatures

Dependencies

(7 total, 7 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 base64^0.13.10.22.1out of date
 http^0.2.81.4.0out of date
 pem^1.1.03.0.6out of date
 pkcs8^0.9.00.10.2out of date
 ring ⚠️^0.16.200.17.14out of date
 thiserror^1.0.372.0.18out of date
 reqwest^0.11.120.13.2out of date

Crate tranquility-ratelimit

Dependencies

(7 total, 3 outdated)

CrateRequiredLatestStatus
 axum^0.5.170.8.8out of date
 futures-util^0.3.250.3.32up to date
 governor^0.5.00.10.4out of date
 thiserror^1.0.372.0.18out of date
 tower-layer^0.3.20.3.3up to date
 tower-service^0.3.20.3.3up to date
 tracing^0.1.370.1.44up to date

Crate tranquility-types

Dependencies

(3 total, 1 possibly insecure)

CrateRequiredLatestStatus
 serde^1.0.1471.0.228up to date
 serde_json^1.0.871.0.149up to date
 time ⚠️^0.3.160.3.47maybe insecure

Security Vulnerabilities

tokio: reject_remote_clients Configuration corruption

RUSTSEC-2023-0001

On Windows, configuring a named pipe server with pipe_mode will force ServerOptions::reject_remote_clients as false.

This drops any intended explicit configuration for the reject_remote_clients that may have been set as true previously.

The default setting of reject_remote_clients is normally true meaning the default is also overridden as false.

Workarounds

Ensure that pipe_mode is set first after initializing a ServerOptions. For example:

let mut opts = ServerOptions::new();
opts.pipe_mode(PipeMode::Message);
opts.reject_remote_clients(true);

rsa: Marvin Attack: potential key recovery through timing sidechannels

RUSTSEC-2023-0071

Impact

Due to a non-constant-time implementation, information about the private key is leaked through timing information which is observable over the network. An attacker may be able to use that information to recover the key.

Patches

No patch is yet available, however work is underway to migrate to a fully constant-time implementation.

Workarounds

The only currently available workaround is to avoid using the rsa crate in settings where attackers are able to observe timing information, e.g. local use on a non-compromised computer is fine.

References

This vulnerability was discovered as part of the "Marvin Attack", which revealed several implementations of RSA including OpenSSL had not properly mitigated timing sidechannel attacks.

sqlx: Binary Protocol Misinterpretation caused by Truncating or Overflowing Casts

RUSTSEC-2024-0363

The following presentation at this year's DEF CON was brought to our attention on the SQLx Discord:

SQL Injection isn't Dead: Smuggling Queries at the Protocol Level
http://web.archive.org/web/20240812130923/https://media.defcon.org/DEF%20CON%2032/DEF%20CON%2032%20presentations/DEF%20CON%2032%20-%20Paul%20Gerste%20-%20SQL%20Injection%20Isn't%20Dead%20Smuggling%20Queries%20at%20the%20Protocol%20Level.pdf
(Archive link for posterity.)

Essentially, encoding a value larger than 4GiB can cause the length prefix in the protocol to overflow, causing the server to interpret the rest of the string as binary protocol commands or other data.

It appears SQLx does perform truncating casts in a way that could be problematic, for example: https://github.com/launchbadge/sqlx/blob/6f2905695b9606b5f51b40ce10af63ac9e696bb8/sqlx-postgres/src/arguments.rs#L163

This code has existed essentially since the beginning, so it is reasonable to assume that all published versions <= 0.8.0 are affected.

Mitigation

As always, you should make sure your application is validating untrustworthy user input. Reject any input over 4 GiB, or any input that could encode to a string longer than 4 GiB. Dynamically built queries are also potentially problematic if it pushes the message size over this 4 GiB bound.

Encode::size_hint() can be used for sanity checks, but do not assume that the size returned is accurate. For example, the Json<T> and Text<T> adapters have no reasonable way to predict or estimate the final encoded size, so they just return size_of::<T>() instead.

For web application backends, consider adding some middleware that limits the size of request bodies by default.

Resolution

sqlx 0.8.1 has been released with the fix: https://github.com/launchbadge/sqlx/blob/main/CHANGELOG.md#081---2024-08-23

Postgres users are advised to upgrade ASAP as a possible exploit has been demonstrated: https://github.com/launchbadge/sqlx/issues/3440#issuecomment-2307956901

MySQL and SQLite do not appear to be exploitable, but upgrading is recommended nonetheless.

ring: Some AES functions may panic when overflow checking is enabled.

RUSTSEC-2025-0009

ring::aead::quic::HeaderProtectionKey::new_mask() may panic when overflow checking is enabled. In the QUIC protocol, an attacker can induce this panic by sending a specially-crafted packet. Even unintentionally it is likely to occur in 1 out of every 2**32 packets sent and/or received.

On 64-bit targets operations using ring::aead::{AES_128_GCM, AES_256_GCM} may panic when overflow checking is enabled, when encrypting/decrypting approximately 68,719,476,700 bytes (about 64 gigabytes) of data in a single chunk. Protocols like TLS and SSH are not affected by this because those protocols break large amounts of data into small chunks. Similarly, most applications will not attempt to encrypt/decrypt 64GB of data in one chunk.

Overflow checking is not enabled in release mode by default, but RUSTFLAGS="-C overflow-checks" or overflow-checks = true in the Cargo.toml profile can override this. Overflow checking is usually enabled by default in debug mode.

tracing-subscriber: Logging user input may result in poisoning logs with ANSI escape sequences

RUSTSEC-2025-0055

Previous versions of tracing-subscriber were vulnerable to ANSI escape sequence injection attacks. Untrusted user input containing ANSI escape sequences could be injected into terminal output when logged, potentially allowing attackers to:

  • Manipulate terminal title bars
  • Clear screens or modify terminal display
  • Potentially mislead users through terminal manipulation

In isolation, impact is minimal, however security issues have been found in terminal emulators that enabled an attacker to use ANSI escape sequences via logs to exploit vulnerabilities in the terminal emulator.

This was patched in PR #3368 to escape ANSI control characters from user input.

ammonia: Incorrect handling of embedded SVG and MathML leads to mutation XSS after removal

RUSTSEC-2025-0071

Affected versions of this crate did not correctly strip namespace-incompatible tags in certain situations, causing it to incorrectly account for differences between HTML, SVG, and MathML.

This vulnerability only has an effect when the svg or math tag is allowed, because it relies on a tag being parsed as html during the cleaning process, but serialized in a way that causes in to be parsed as xml by the browser.

Additionally, the application using this library must allow a tag that is parsed as raw text in HTML. These elements are:

  • title
  • textarea
  • xmp
  • iframe
  • noembed
  • noframes
  • plaintext
  • noscript
  • style
  • script

Applications that do not explicitly allow any of these tags should not be affected, since none are allowed by default.

time: Denial of Service via Stack Exhaustion

RUSTSEC-2026-0009

Impact

When user-provided input is provided to any type that parses with the RFC 2822 format, a denial of service attack via stack exhaustion is possible. The attack relies on formally deprecated and rarely-used features that are part of the RFC 2822 format used in a malicious manner. Ordinary, non-malicious input will never encounter this scenario.

Patches

A limit to the depth of recursion was added in v0.3.47. From this version, an error will be returned rather than exhausting the stack.

Workarounds

Limiting the length of user input is the simplest way to avoid stack exhaustion, as the amount of the stack consumed would be at most a factor of the length of the input.