GossiTheDog ,
@GossiTheDog@cyberplace.social avatar

I think CVE-2024-29510 (Ghostscript vuln) may apply to Mastodon, as Mastodon sends images to ImageMagick, which can call Ghostscript. But I might be wrong.

galaxis ,
@galaxis@mastodon.infra.de avatar

@GossiTheDog Hrm. While the imagemagick-6.q16 package (on Debian) recommends ghostscript (and it is installed on my Mastodon instance), there's no hard dependency. I don't think Mastodon deals with any file formats that require ghostscript processing? Certainly not pdf or ps...

Should be safe to uninstall when it's considered a possible attack vector...

h3artbl33d ,
@h3artbl33d@exquisite.social avatar

@galaxis

If it is any consideration, Exquisite has been running without Ghostscript (on OpenBSD) since late 2022.

galaxis ,
@galaxis@mastodon.infra.de avatar

@h3artbl33d Yeah, in the worst case, reprocessing some media would fail, so I took the opportunity to nuke it from this install.

h3artbl33d ,
@h3artbl33d@exquisite.social avatar

@galaxis

Do you happen to know what kind of media? I can imagine PDFs and perhaps SVG?

erlenmayr ,
@erlenmayr@chaos.social avatar

@GossiTheDog A lot of features are disabled by default in ImageMagick. When I wanted to convert PDF pages to JPG, I had to whitelist it in “/etc/ImageMagick-6/policy.xml”. At least in Debian/Ubuntu.

h3artbl33d ,
@h3artbl33d@exquisite.social avatar

@erlenmayr @GossiTheDog

Hmmm, interesting!

h3artbl33d ,
@h3artbl33d@exquisite.social avatar

@GossiTheDog

Hmmm that got me wondering whether ImageMagick is packaged on Ubuntu with Ghostscript as a hard dependency. Wanted to check this - but seems that packages.ubuntu.com is down ATM.

h3artbl33d ,
@h3artbl33d@exquisite.social avatar

@GossiTheDog

It is back - and it seems that Ghostscript is not a hard dependency for ImageMagick - but a recommended one.

If it were possible to exploit the Ghostscript vuln through ImageMagick through Mastodon, only a subset of the instances would be vulnerable for this 'chain'.

However, I can't speak for other forks, besides vanilla and glitch - could be that the LaTeX/MathML fork (like Mathstodon) does use Ghostscript :flan_shrug:

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • test
  • worldmews
  • mews
  • All magazines