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 kafka

Dependencies

(11 total, 2 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 byteorder^1.4.31.5.0up to date
 crc^3.0.03.4.0up to date
 flate2^1.0.231.1.9up to date
 fnv^1.0.71.0.7up to date
 openssl ⚠️^0.10.400.10.76maybe insecure
 openssl-sys^0.9.730.9.112up to date
 ref_slice^1.2.11.2.1up to date
 snap^1.0.51.1.1up to date
 thiserror^1.0.312.0.18out of date
 tracing^0.1.340.1.44up to date
 twox-hash^1.6.32.1.2out of date

Dev dependencies

(6 total, 1 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 anyhow^1.0.551.0.102up to date
 getopts^0.2.210.2.24up to date
 lazy_static^1.4.01.5.0up to date
 rand^0.8.50.10.0out of date
 time ⚠️^0.3.70.3.47maybe insecure
 tracing-subscriber ⚠️^0.30.3.23maybe insecure

Security Vulnerabilities

openssl: Use-After-Free in `Md::fetch` and `Cipher::fetch`

RUSTSEC-2025-0022

When a Some(...) value was passed to the properties argument of either of these functions, a use-after-free would result.

In practice this would nearly always result in OpenSSL treating the properties as an empty string (due to CString::drop's behavior).

The maintainers thank quitbug for reporting this vulnerability to us.

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.

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.