+++ This bug was initially created as a clone of Bug #585199 +++ Description of problem: `wn' utilty from wordnet-3.0 package passes user input (executable positional argument to fprintf(3) as format string without check for format escapes. Version-Release number of selected component (if applicable): wordnet-3.0-10.fc14 and lower version in all Fedoras. How reproducible: Compile and install wordnet package and invoke `wn' executable with invalid arguments resulting in application error message: $ wn -antsn 'Hello world' wn: invalid search option: Hello world Now try some formating escapes: $ wn -antsn '%s' Segmentation fault (core dumped) $ wn -antsn '%x %x %x %x' wn: invalid search option: 1 b 0 1789f60d $ wn -antsn '%n' *** %n in writable segment detected *** Aborted (core dumped) Additional info: WordNet-3.0/src/wn.c:346: static int error_message(char *msg) { → fprintf(stderr, msg); return(0); } --- Additional comment from ppisar on 2010-04-23 08:19:52 EDT --- Created an attachment (id=408589) Fix Print message as raw string.
Created attachment 408592 [details] Fix Print message as raw string.
wordnet-3.0-11.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/wordnet-3.0-11.fc13
wordnet-3.0-11.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/wordnet-3.0-11.fc12
wordnet-3.0-10.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/wordnet-3.0-10.fc11
Fixed in CVS for F14--F11. Koji does not acceppt build tasks for F10 any more. Thus F10 will be unpatched.
wordnet-3.0-11.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report.
wordnet-3.0-11.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report.
wordnet-3.0-10.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.