Package: carmetal
Version: 3.5.2+dfsg-1.2
Tags: patch, security

Dear Maintainer,
the carmetal 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 -ru a/debian/carmetal.mime b/debian/carmetal.mime
--- a/debian/carmetal.mime	2011-03-07 12:47:14.000000000 +0100
+++ b/debian/carmetal.mime	2021-04-23 11:01:48.791570425 +0200
@@ -1,2 +1,2 @@
-application/x-carmetal; carmetal '%s' ; edit=carmetal '%s' ; test=test "$DISPLAY" != "" ; description="CaRMetal figure" ; priority=2
+application/x-carmetal; carmetal %s ; edit=carmetal %s ; test=test "$DISPLAY" != "" ; description="CaRMetal figure" ; priority=2

Reply via email to