News for hackers. Stuff that matters.
Re:Malicious Rust crate Arrayref runs a build-time payload by cpuguy83 on Thursday August 20, 2026 @11:51AM (#49376341)
The problem isn't the language here, it's cargo executing build.rs from dependencies which necessarily allows arbitrary code execution.
Re:Malicious Rust crate Arrayref runs a build-time payload by jaen on Thursday August 20, 2026 @04:42PM (#49380004)
(as I and others have mentioned in the thread): The attacker can just move the malicious code from build.rs to lib.rs (ie. build-time -> test/execution-time).

Then the problem is the language, as the grandparent observes.

Re:Malicious Rust crate Arrayref runs a build-time payload by cpuguy83 on Thursday August 20, 2026 @06:45PM (#49381279)
Sure, but I don't expect build to execute arbitrary code. That's a big difference.

It's like if `git clone` ran random stuff from the cloned repo.

Re:Malicious Rust crate Arrayref runs a build-time payload by dwattttt on Thursday August 20, 2026 @04:54PM (#49380151)
Running what you've built when you've added a malicious dependency also causes arbitrary code execution.