Package: gthumb
Version: 3:3.11.2-0.1
Tags: patch, security

Dear Maintainer,
the gthumb package has mailcap entries with quoted %-escapes. That is 
considered unsafe. Proper escaping should be left to the programs using the 
entry.

This Lintian tag is triggered:
https://lintian.debian.org/tags/quoted-placeholder-in-mailcap-entry.html

See also grave bug #930908, which was recently closed because "a Lintian test 
already exists":
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=930908

I'm using the "security" tag because the affected rules in combination with 
certain mail user agents (or document openers) are the cause of a shell command 
injection vulnerability.

If you need more information let me know.

Thanks,
MNZ
diff --git a/debian/gthumb.mime b/debian/gthumb.mime
index ed753a7..0edd570 100644
--- a/debian/gthumb.mime
+++ b/debian/gthumb.mime
@@ -1,3 +1,3 @@
-image/jpeg; gthumb '%s'; test=test -n "$DISPLAY"
-image/gif; gthumb '%s'; test=test -n "$DISPLAY"
-image/png; gthumb '%s'; test=test -n "$DISPLAY"
+image/jpeg; gthumb %s; test=test -n "$DISPLAY"
+image/gif; gthumb %s; test=test -n "$DISPLAY"
+image/png; gthumb %s; test=test -n "$DISPLAY"

Reply via email to