CVE-2020-36454

8.1 HIGH

📋 TL;DR

This vulnerability in the parc Rust crate allows data races and memory corruption by enabling unsafe concurrent access across threads. It affects any Rust application using parc versions through 2020-11-14 that shares LockWeak<T> objects between threads where T isn't thread-safe.

💻 Affected Systems

Products:
  • parc Rust crate
Versions: All versions through 2020-11-14
Operating Systems: All platforms running Rust applications
Default Config Vulnerable: ⚠️ Yes
Notes: Only vulnerable when LockWeak<T> is sent between threads where T doesn't implement Send/Sync.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Memory corruption leading to arbitrary code execution, denial of service, or data integrity compromise.

🟠

Likely Case

Data races causing undefined behavior, crashes, or incorrect program output.

🟢

If Mitigated

Limited impact if applications don't share LockWeak<T> across threads or use proper synchronization.

🌐 Internet-Facing: MEDIUM - Exploitation requires specific conditions but could lead to RCE in vulnerable services.
🏢 Internal Only: MEDIUM - Similar risk profile but limited to internal network access.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires specific application patterns and understanding of Rust's concurrency model.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version 0.1.1 or later

Vendor Advisory: https://rustsec.org/advisories/RUSTSEC-2020-0134.html

Restart Required: Yes

Instructions:

1. Update Cargo.toml to specify parc >= 0.1.1
2. Run 'cargo update --package parc'
3. Rebuild and redeploy application
4. Test thoroughly for compatibility issues

🔧 Temporary Workarounds

Avoid cross-thread LockWeak sharing

all

Ensure LockWeak<T> objects are not sent between threads unless T implements Send

Use alternative synchronization

all

Replace parc with thread-safe alternatives like Arc<Mutex<T>> or Arc<RwLock<T>>

🧯 If You Can't Patch

  • Audit code for cross-thread LockWeak<T> usage and add manual synchronization
  • Implement runtime checks to prevent unsafe thread transfers

🔍 How to Verify

Check if Vulnerable:

Check Cargo.lock for parc version <= 0.1.0 or check dependency tree with 'cargo tree | grep parc'

Check Version:

grep -A2 -B2 'parc' Cargo.lock | grep version

Verify Fix Applied:

Confirm parc version >= 0.1.1 in Cargo.lock and run 'cargo audit' to verify no RUSTSEC-2020-0134 warnings

📡 Detection & Monitoring

Log Indicators:

  • Segmentation faults
  • Unexpected thread panics
  • Memory access violation errors

Network Indicators:

  • Service crashes under concurrent load
  • Unusual memory usage patterns

SIEM Query:

process.name:rust-app AND (event.type:crash OR event.type:panic)

🔗 References

📤 Share & Export