| ▲ | cryptbe 9 hours ago | ||||||||||||||||||||||
When I wget a tarball, unzip, and emacs a.txt inside, I don't expect that it'd execute arbitrary commands. I think people should be aware of this risk, especially when it looks like it's not getting fixed. Disclosure: I didn't find the bugs. I helped wrote the blog post. | |||||||||||||||||||||||
| ▲ | i_cannot_hack 8 hours ago | parent | next [-] | ||||||||||||||||||||||
But you would expect running "git status" or "git ls-files" in the unzipped directory to completely pwn your system? Probably not either. If you don't trust git, you can remove from your system or configure emacs not to use it. If you are worried about unsuspecting people with both git and emacs getting into trouble when downloading and interacting with untrusted malware from the internet, the correct solution is to add better safeguards in git before executing hooks. But you did not report this to the git project (where even minor research beyond Claude Code would reveal to you that this has already been discussed in the git community). I suspect that what happened here was that (1) you asked Claude to find RCEs in Emacs (2) Claude, always eager to please, told you that it indeed has found an RCE in Emacs and conjured up a convincing report with included PoC (3) since Claude told you it had found an RCE "in Emacs", you thought "success!", didn't think critically about it and simply submitted Claude's report to the Emacs project. Had you instead asked Claude to find RCEs in git itself and it told you about git hooks, you probably would not have turned around and submitted vulnerability reports to all tools and editors that ever call a git command. | |||||||||||||||||||||||
| |||||||||||||||||||||||
| ▲ | Ferret7446 4 hours ago | parent | prev | next [-] | ||||||||||||||||||||||
If you untar a file and get a git repository, you should absolutely expect malicious behavior. No one does that, you clone repos not tarball them, and cloning doesn't copy hooks for precisely this reason | |||||||||||||||||||||||
| ▲ | chotmat 8 hours ago | parent | prev [-] | ||||||||||||||||||||||
I don't think this is fair, as it will likely also affect any editor with Git integration (or not?) | |||||||||||||||||||||||
| |||||||||||||||||||||||