🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #178

Bug#1150224: imagemagick: regression in bookworm security updates: SVG <image> with data: URI fails ("unable to open image")

#178
From: Bastien Roucaries
Date: Thu, 08 Oct 2026 22:40
149 lines
7312 bytes
--nextParteVVuEa6MSQCqyNtp4gdISQ
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Bastien Roucaries <rouca@debian.org>
Date: Fri, 09 Oct 2026 00:22:20 +0200
Message-ID: <FuQJ3NY4TqeS-sSFenSXIg@debian.org>
In-Reply-To:
 <CAA6tu3mu-GYV_Z50tYUdwvmji7mPCnbSgXGzQnyJ+xLF2LjjnQ@mail.gmail.com>
MIME-Version: 1.0

Le mercredi 7 octobre 2026, 15:03:19 heure d=E2=80=99=C3=A9t=C3=A9 d=E2=80=
=99Europe centrale Guillaume Bihet a =C3=A9crit :
> Hi,
>=20
> Thank you for your quick answer, I tried with no policy at all but I get
> the same error with deb12u13:
>=20
> $ sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xml.bak
>=20
> $ convert -list policy
> > Path: [built-in]
>    Policy: Undefined
>      rights: None
>=20
> $ convert min.svg out.png
> > convert-im6.q16: unable to open image
> `image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAQMAAAC3/F3+AAAABGdBTUE=
AALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABl=
BMVEX/AAD///9BHTQRAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+oKBwkDILP++tgAAAALSURBVAjXY=
2DABwAAHgABboVHMgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNi0xMC0wN1QwOTowMzozMiswMDow=
MJNBWGAAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjYtMTAtMDdUMDk6MDM6MzIrMDA6MDDiHODcAAA=
AAElFTkSuQmCC':
> No such file or directory @ error/blob.c/OpenBlob/2990.
> > convert-im6.q16: no images defined `out.png' @
> error/convert.c/ConvertImageCommand/3234.
>=20
> Doesn't seem to be policy-related...

Look like
https://github.com/imagemagick/ImageMagick/issues/8803

Could you try, if i post a patch and salsa and upload a private package ?

rouca

> Best regards,
>=20
> Guillaume
>=20
> Guillaume Bihet
> immat=C3=A9riel technical team
>=20
> Le mer. 7 oct. 2026 =C3=A0 14:00, Bastien Roucaries <rouca@debian.org> a =
=C3=A9crit :
>=20
> > Le mercredi 7 octobre 2026, 12:37:16 heure d=E2=80=99=C3=A9t=C3=A9 d=E2=
=80=99Europe centrale
> > Guillaume Bihet a =C3=A9crit :
> > > Package: imagemagick
> > > Version: 8:6.9.11.60+dfsg-1.6+deb12u13
> > > Severity: important
> > > Tags: regression
> > >
> > > Dear Maintainer,
> > >
> > > Converting an SVG that includes a PNG image through a data: URI fails=
 on
> > > deb12u13
> >
> > Does removing policy hardening work ?
> >
> > Could you change policy.xml to allow all coder.
> >
> > If so it is a feature not a bug, we blocker url due to potential securi=
ty
> > impact.
> > it is up to sysadmin to unblock, after risk analysis
> >
> > If not they are another suspect but could you please try the policy fix
> >
> >
> > rouca
> > >
> > > Steps to reproduce:
> > >
> > > The attached image min.svg is a minimal SVG containing a single <imag=
e>
> > > element whose href is a data: URI (a small PNG).
> > >
> > > Command line :
> > > $   convert min.svg out.png
> > >
> > > Observed with 8:6.9.11.60+dfsg-1.6+deb12u13:
> > >
> > > >  convert-im6.q16: unable to open image
> > >
> > `image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKAQMAAAC3/F3+AAAABGdBT=
UEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAA=
BlBMVEX/AAD///9BHTQRAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+oKBwkDHJyRhl8AAAALSURBVAj=
XY2DABwAAHgABboVHMgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyNi0xMC0wN1QwOTowMzoyOCswMD=
owMPubB7AAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjYtMTAtMDdUMDk6MDM6MjgrMDA6MDCKxr8MA=
AAAAElFTkSuQmCC':
> > > No such file or directory @ error/blob.c/OpenBlob/2990.
> > > > convert-im6.q16: no images defined `out.png' @
> > > error/convert.c/ConvertImageCommand/3234.
> > >
> > > Expected: out.png is written. The same command works with deb12u4 and
> > > deb12u6 but fails with deb12u11 and deb12u13, so the regression was
> > likely
> > > introduced between deb12u6 and deb12u11
> > >
> > > System information:
> > >   Debian 12 (bookworm), amd64
> > >   Kernel: Linux 6.1.0-34-amd64 Debian 6.1.135-1
> > >   libc6: 2.36-9+deb12u14
> > >   rsvg-convert is not installed
> > >
> > >
> > > *Guillaume Bihet*
> > > immateriel technical team
> > >
> >
> >
>=20


--nextParteVVuEa6MSQCqyNtp4gdISQ
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEXQGHuUCiRbrXsPVqADoaLapBCF8FAmrIF5wACgkQADoaLapB
CF8krg/6Aw2v+OzwwT8X02wHroALY2RTviGEu5ZMaiRrYVSPRUphYYvJo5zUTXEg
/nPdHEV2C/AKFJBEYdK3+p1rz6/VWaBGLlBtkiQuNhRoVqmPL82GjTmeI+VJuJ+Y
CNdsY99y/hnDc8tMt/TX57NLF4ICt0hi6D9GWdZAi6rtb0/7grfrkHLY4eJjlWLW
nCzwtD8V65kbQmU3/aWb/QF0ODf85u//KqXmWdDpL88Wh1XDziYu9Hu0yO8TwAB7
iAw9wx5qlGCyd3p5qQ1ajVBX1F/Y1vMlFGg3q+OwbEwgpyfh5nw/Y6sRUFsuQOCu
71nDqcl26nRFNXxKQ9wq0Y4+YWWReY0/RTDvo13nY8gC+ggPmEObdA7ypJkH2Kmx
4CiyPxySWhDFzHhkUxG8SMSxNA+SJBUPcNxco8bw1nCfhMk6mRcLYCbVEeymrvui
l1sXrMjcI4rfJpJZfL2LMFLs7frfShu5RvhP7G/yIADHDYVk4xhgMiKy8xRDFrSa
cTAa+ppImXsuqgh2VbWgRxu8f8fcNxXPPJgpGVfmjfAsMmqdt2uYap/ZAmLrSzzv
ZMAMQiGBVYfwOz4GBpvuIEoYYp+2GiooJZg+J6ECibQkvIpro1k26lDr7KqYRAqU
oMQsEqfZjQ4JI/ZI/kePu0k59+qor9ifAN5q10ACOXtxsTDqAFs=
=/hJ2
-----END PGP SIGNATURE-----

--nextParteVVuEa6MSQCqyNtp4gdISQ--
Technical Details
Message-ID: <NM4Wl-4ltJ-3@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
References: <NLyD7-44Gd-11@gated-at.bofh.it> <NM4Wl-4ltJ-5@gated-at.bofh.it> <NLyD7-44Gd-11@gated-at.bofh.it> <NM4Wl-4ltJ-5@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod
From: Bastien Roucaries <rouca@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1150224: imagemagick: regression in bookworm security updates: SVG <image> with data: URI fails ("unable to open image")
Date: Fri, 09 Oct 2026 00:40:01 +0200
Message-ID: <NM4Wl-4ltJ-3@gated-at.bofh.it>
References: <NLyD7-44Gd-11@gated-at.bofh.it> <NM4Wl-4ltJ-5@gated-at.bofh.it> <NLyD7-44Gd-11@gated-at.bofh.it> <NM4Wl-4ltJ-5@gated-at.bofh.it>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct  8 22:32:13 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.7
Reply-To: Bastien Roucaries <rouca@debian.org>, 1150224@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: pkg-gmagick-im-team@lists.alioth.debian.org
X-Debian-Pr-Message: followup 1150224
X-Debian-Pr-Package: imagemagick
X-Debian-Pr-Source: imagemagick
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextParteVVuEa6MSQCqyNtp4gdISQ";
 micalg="pgp-sha512"; protocol="application/pgp-signature"
X-Debian-User: rouca
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1995774
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 149
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Cc: 1150224@bugs.debian.org,
 Technique immatériel <technique@immateriel.fr>
X-Original-Date: Fri, 09 Oct 2026 00:22:50 +0200
X-Original-Message-ID: <FuQJ3NY4TqeS-sSFenSXIg@debian.org>
X-Original-References: <CAA6tu3=pi1+Qz-b2ouq7+UvQuB5tTbwux=qoWBKgWSK40wM5MQ@mail.gmail.com> <CAA6tu3mu-GYV_Z50tYUdwvmji7mPCnbSgXGzQnyJ+xLF2LjjnQ@mail.gmail.com> <CAA6tu3=pi1+Qz-b2ouq7+UvQuB5tTbwux=qoWBKgWSK40wM5MQ@mail.gmail.com> <CAA6tu3mu-GYV_Z50tYUdwvmji7mPCnbSgXGzQnyJ+xLF2LjjnQ@mail.gmail.com>