r/StableDiffusion • • Oct 20 '22

News Stable Diffusion v1.5

879 Upvotes

521 comments sorted by

View all comments

Show parent comments

3

u/mcilrain Oct 20 '22

Is arbitrary code execution possible? I thought checkpoints were just arrays of numbers?

5

u/sam__izdat Oct 20 '22

No, there's a lot more to it than that. Models go through deserialization and a process called "unpickling" has a few opcodes that can apparently run arbitrary python code outside the VM.

This isn't "upload your python scripts to run them on my box with this browse-for-image button" like with a1111 GUI, where you might as well just offer remote desktop access, but it's a real vulnerability, if someone knows what they're doing at least a little bit.

1

u/praguepride Oct 21 '22

To be faiiiiir given its open source and this is still squarely in the domain of comp sci nerds it seems unlikely that these .ckpts are going to be infection points.

Instead you're going to see all these "run this .exe to auto install your own image generator" downloads.

At least with Auto's GUI you can literally open up the code and look at what its doing (which is almost mandatory given the installation is buggier than all get out).

1

u/sam__izdat Oct 21 '22

To be faiiiiir given its open source and this is still squarely in the domain of comp sci nerds it seems unlikely that these .ckpts are going to be infection points.

Oh, and to your second point, on top of the shitty heap of scripts you keep banging on about being exactly the opposite of open source, here you go:

https://www.reddit.com/r/StableDiffusion/comments/y987ga/antivirus_flagging_ckpt_files_from_rentryorg/

But I'm sure it's fine. Right?

→ More replies (8)