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

Crate opendal

Dependencies

(68 total, 30 outdated, 2 insecure)

CrateRequiredLatestStatus
 anyhow^1.0.301.0.104up to date
 async-backtrace^0.2.60.2.7up to date
 async-tls^0.13.00.13.0up to date
 async-trait^0.1.680.1.92up to date
 atomic_lib^0.39.00.40.0out of date
 await-tree^0.20.3.1out of date
 backon^1.21.6.0up to date
 base64^0.220.23.1out of date
 bb8^0.80.9.1out of date
 bytes^1.61.12.1up to date
 cacache^13.013.1.0up to date
 chrono^0.4.280.4.45up to date
 compio^0.12.00.19.2out of date
 crc32c^0.6.60.6.8up to date
 dashmap^66.2.1up to date
 dotenvy^0.150.15.7up to date
 etcd-client^0.140.21.0out of date
 fastrace^0.7.10.7.19up to date
 flume^0.110.12.0out of date
 foundationdb^0.9.00.11.0out of date
 futures^0.30.3.34up to date
 getrandom^0.20.4.3out of date
 governor^0.6.00.10.4out of date
 hdfs-native^0.100.14.7out of date
 hdrs^0.3.20.3.4up to date
 hmac^0.12.10.13.0out of date
 hrana-client-proto^0.2.10.2.1up to date
 http^1.11.5.0up to date
 log^0.40.4.34up to date
 md-5^0.100.11.0out of date
 metrics^0.240.24.6up to date
 mime_guess^2.0.52.0.5up to date
 mini-moka^0.100.10.3up to date
 moka^0.120.12.16up to date
 mongodb^33.9.1up to date
 monoio^0.2.40.2.4up to date
 once_cell^11.21.4up to date
 openssh^0.11.00.11.6up to date
 openssh-sftp-client^0.15.20.15.10up to date
 opentelemetry^0.260.33.1out of date
 ouroboros^0.18.40.18.5up to date
 percent-encoding^22.3.2up to date
 persy^1.4.61.8.1up to date
 probe^0.5.10.5.2up to date
 prometheus^0.130.14.0out of date
 prometheus-client^0.22.20.25.1out of date
 prost^0.130.14.4out of date
 quick-xml ⚠️^0.360.42.0insecure
 rand^0.80.10.3out of date
 redb^24.4.0out of date
 redis^0.271.7.1out of date
 reqsign^0.16.10.20.7out of date
 reqwest^0.12.20.13.5out of date
 rocksdb^0.21.00.25.0out of date
 rust-nebula^0.0.20.0.2up to date
 serde^11.0.229up to date
 serde_json^11.0.154up to date
 sha1^0.10.60.11.0out of date
 sha2^0.100.11.1out of date
 sled^0.34.70.34.7up to date
 snowflaked^11.0.4up to date
 sqlx^0.8.00.9.0out of date
 suppaftp ⚠️^6.0.312.2.0insecure
 surrealdb^23.3.4out of date
 tikv-client^0.3.00.4.0out of date
 tokio^1.271.53.3up to date
 tracing^0.10.1.44up to date
 uuid^11.28.0up to date

Dev dependencies

(15 total, 8 outdated)

CrateRequiredLatestStatus
 criterion^0.50.8.2out of date
 dotenvy^0.150.15.7up to date
 fastrace^0.70.7.19up to date
 fastrace-jaeger^0.70.7.18up to date
 libtest-mimic^0.80.8.2up to date
 opentelemetry^0.260.33.1out of date
 opentelemetry-otlp^0.260.33.1out of date
 opentelemetry_sdk^0.260.33.1out of date
 pretty_assertions^11.4.1up to date
 rand^0.80.10.3out of date
 sha2^0.100.11.1out of date
 size^0.40.5.0out of date
 tokio^1.271.53.3up to date
 tracing-opentelemetry^0.27.00.34.0out of date
 tracing-subscriber^0.30.3.23up to date

Security Vulnerabilities

quick-xml: Quadratic run time when checking a start tag for duplicate attribute names

RUSTSEC-2026-0194

BytesStart::attributes() returns an Attributes iterator which, by default (with_checks(true)), rejects a start tag that repeats an attribute name. For each attribute yielded, the iterator compared the new name against every name seen so far in the same tag using a linear scan, so a start tag with N distinct attribute names cost O(N²) byte comparisons. There was no bound on N other than the size of the buffered start tag.

Impact

Any code that parses untrusted XML and iterates a start tag's attributes with the default duplicate check enabled can be made to spend CPU time quadratic in the number of attributes on a single tag. Because the check is pure computation with no .await/I/O, an I/O-based timeout on the consumer (for example a read or request timeout) cannot interrupt it while it runs.

Measured cost of a single start tag, release build:

| Attributes on one tag | Time | |---|---| | 80,000 | ~6 s | | 800,000 | ~10 min |

The cost grows with the square of the attribute count, so a start tag of a few tens of megabytes can stall a parsing thread for hours. No memory is exhausted and the parser does not crash; the effect is CPU exhaustion on the thread doing the parsing: a single crafted start tag can pin a CPU core for minutes to hours, denying service to that worker. A deployment that places a wall-clock bound on parsing, or confines it to a non-critical thread, may consider the availability impact lower.

Affected code paths

  • BytesStart::attributes() / Attributes iterated with checks enabled (the default), and BytesStart::try_get_attribute.
  • NsReader, which resolves namespaces by iterating a tag's attributes and so reaches the same check internally.

Consumers that iterate attributes with .attributes().with_checks(false) and do not use NsReader are not affected.

This was reported as reachable by a remote, unauthenticated attacker in a real-world RPKI relying party (NLnet Labs Routinator) via a crafted RRDP snapshot.xml.

Remediation

Upgrade to quick-xml >= 0.41.0, where the duplicate check keeps the linear scan for start tags with a small number of attributes and switches to an O(1) hash pre-filter above a threshold, making the whole tag O(N). The reported AttrError::Duplicated positions are unchanged.

If upgrading is not possible and duplicate-name detection is not required, disable it with .attributes().with_checks(false) (this does not help NsReader consumers, which have no equivalent opt-out before 0.41.0).

quick-xml: Unbounded namespace-declaration allocation in `NsReader` enables memory-exhaustion denial of service

RUSTSEC-2026-0195

NsReader resolves namespaces by calling NamespaceResolver::push for every Start/Empty event before the event is returned to the caller. push iterated all xmlns / xmlns:* attributes on the start tag and, for each one, appended the prefix bytes to an internal buffer and pushed a NamespaceBinding (32 bytes on 64-bit) to an internal Vec, with no upper bound on the number of declarations.

Impact

A start tag with N namespace declarations drove roughly 3× the tag's byte size in NamespaceResolver heap, allocated inside quick-xml before the NsReader consumer ever received the event and could inspect or reject it. A consumer that bounds its input size therefore still cannot bound this allocation: an M-byte start tag yields on the order of 3 × M bytes of resolver heap the caller never sees.

On untrusted XML this lets a remote, unauthenticated attacker force large heap allocations with a single start tag. With several NsReaders running concurrently on independent inputs (a common server pattern), the allocations stack and can exhaust process memory, causing the operating system to kill the process (OOM). This was confirmed against a real-world RPKI relying party (NLnet Labs Routinator), where concurrent RRDP validation workers parsing a crafted snapshot.xml exceeded the memory limit and the process was OOM-killed.

Affected code paths

Consumers using NsReader (which always calls NamespaceResolver::push before yielding Start/Empty), or calling NamespaceResolver::push directly. A plain Reader that does not perform namespace resolution is not affected.

Remediation

Upgrade to quick-xml >= 0.41.0. NamespaceResolver::push now rejects a start tag that declares more than DEFAULT_MAX_DECLARATIONS_PER_ELEMENT (256) namespace bindings, returning the new NamespaceError::TooManyDeclarations instead of allocating without limit. The limit is configurable via NamespaceResolver::set_max_declarations_per_element (use usize::MAX to restore the previous unbounded behavior), and NsReader::resolver_mut() is provided to reach it.

There is no clean workaround for NsReader consumers before 0.41.0, as the allocation happens inside the reader with no configuration knob to cap it.

suppaftp: FTP command injection via CRLF in control channel arguments

RUSTSEC-2026-0271

Affected versions of suppaftp wrote command arguments (user name, password, paths, SITE arguments and custom commands) to the FTP control channel without validation. An argument containing a carriage return (\r) or a line feed (\n) terminated the intended command line and let a second, attacker-chosen command be sent to the server within the same authenticated session.

An application that passes untrusted input as credentials, paths or command strings to methods such as login, cwd, mkdir, rmdir, rm, rename, retr, put_file, site or custom_command can therefore be made to execute arbitrary FTP commands with the application's privileges, for example deleting files or redirecting a data connection with an injected PORT.

All three clients are affected: sync, tokio and smol, with or without TLS.

The flaw was corrected in version 10.0.2 (commit 194bdd1): every command line is validated before it is written to the wire and rejected with FtpError::ConnectionError (std::io::ErrorKind::InvalidInput) if it contains CR or LF anywhere but in the trailing terminator. As a consequence, custom_command no longer accepts several commands joined by CRLF in a single call.

Users who cannot upgrade should reject or strip \r and \n from any untrusted string before passing it to the client.