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 atm0s-sdn-standalone

Dependencies

(8 total, 1 outdated, 2 possibly insecure)

CrateRequiredLatestStatus
 signal-hook^0.3.170.4.1out of date
 tokio ⚠️^11.49.0maybe insecure
 poem^33.1.12up to date
 rust-embed^8.28.9.0up to date
 futures-util^0.30.3.31up to date
 tracing-subscriber ⚠️^0.30.3.22maybe insecure
 serde_json^1.01.0.149up to date
 local-ip-address^0.60.6.8up to date

Crate bin-fuzz

Dependencies

(1 total, all up-to-date)

CrateRequiredLatestStatus
 libfuzzer-sys^0.40.4.10up to date

Crate atm0s-sdn-utils

No external dependencies! 🙌

Crate atm0s-sdn-identity

Dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 multiaddr^0.180.18.2up to date
 rand^0.80.9.2out of date

Crate atm0s-sdn-router

Dev dependencies

(2 total, 2 outdated)

CrateRequiredLatestStatus
 criterion^0.5.10.8.1out of date
 rand^0.8.50.9.2out of date

Crate atm0s-sdn-network

Dependencies

(8 total, 1 outdated, 1 possibly insecure)

CrateRequiredLatestStatus
 bytes^1.51.11.0up to date
 bincode^1.33.0.0out of date
 sha1^0.100.10.6up to date
 num^0.40.4.3up to date
 sha2^0.100.10.9up to date
 x25519-dalek^2.02.0.1up to date
 aes-gcm ⚠️^0.100.10.3maybe insecure
 derivative^2.22.2.0up to date

Crate atm0s-sdn

Dev dependencies

(2 total, 1 outdated)

CrateRequiredLatestStatus
 signal-hook^0.30.4.1out of date
 local-ip-address^0.60.6.8up to date

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);

aes-gcm: Plaintext exposed in decrypt_in_place_detached even on tag verification failure

RUSTSEC-2023-0096

Summary

In the AES GCM implementation of decrypt_in_place_detached, the decrypted ciphertext (i.e. the correct plaintext) is exposed even if tag verification fails.

Impact

If a program using the aes-gcm crate's decrypt_in_place* APIs accesses the buffer after decryption failure, it will contain a decryption of an unauthenticated input. Depending on the specific nature of the program this may enable Chosen Ciphertext Attacks (CCAs) which can cause a catastrophic breakage of the cipher including full plaintext recovery.

Details

As seen in the implementation of decrypt_in_place_detached for AES GCM, if the tag verification fails, an error is returned. Because the decryption of the ciphertext is done in place, the plaintext contents are now exposed via buffer.

This should ideally not be the case - as noted in page 17 of NIST's publication Recommendation for Block Cipher Modes of Operation: Galois/Counter Mode (GCM) and GMAC:

In Step 8, the result of Step 7 is compared with the authentication tag that was received as an input: if they are identical, then the plaintext is returned; otherwise,FAIL is returned.

This is seems correctly addressed in the AES GCM SIV implementation, where the decrypted buffer is encrypted again before the error is returned - this fix is straightforward to implement in AES GCM. To ensure that these types of cases are covered during testing, it would be valuable to add test cases like 23, 24 etc from project wycheproof to ensure that when a bad tag is used, there is an error on decryption and that the plaintext value is not exposed.

PoC

To reproduce this issue, I'm using test case 23 from project wycheproof.

    let key = GenericArray::from_slice(&hex!("000102030405060708090a0b0c0d0e0f"));
    let nonce = GenericArray::from_slice(&hex!("505152535455565758595a5b"));
    let tag = GenericArray::from_slice(&hex!("d9847dbc326a06e988c77ad3863e6083")); // bad tag
    let mut ct = hex!("eb156d081ed6b6b55f4612f021d87b39");
    let msg = hex!("202122232425262728292a2b2c2d2e2f");
    let aad = hex!("");
    let cipher = Aes128Gcm::new(&key);
    let _plaintext = cipher.decrypt_in_place_detached(&nonce, &aad, &mut ct, &tag);
    assert_eq!(ct, msg);

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.