mutt: mutt_decode_uuencoded() can read the past the of the input line
In mutt_decode_uuencoded(), the line length is read from the untrusted uuencoded part without validation. This could result in including private memory in replys, for example fragments of other messages, passphrases or keys.
Reproduce with the following mbox, note that these are literal 0x9f bytes. This should show some uninitialized garbage in the message.
From taviso Thu Mar 31 16:53:55 2022
Subject: mutt_decode_uuencoded test
begin 644 test
This bug is subject to a 90-day disclosure deadline. If a fix for this
issue is made available to users before the end of the 90-day deadline,
this bug report will become public 30 days after the fix was made
available. Otherwise, this bug report will become public at the deadline.
The scheduled deadline is YYYY-MM-DD.
Related CVE Numbers: CVE-2022-1328.
Found by: firstname.lastname@example.org