mail(1) processes command escapes also if used non-interactively

Bug #1948712 reported by Christian Franke
258
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mailutils (Ubuntu)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:

$ printf 'test:\n~! echo ALERT\nbye!\n' | mail TO_SOME_ADDRESS

Observed: "ALERT" is printed to standard output.
Expected: String "~! echo ALERT" shall be send as second line of the mail.

Command escapes should only be processed if used interactively.

Related security issues:
https://security-tracker.debian.org/tracker/CVE-2021-32749
https://www.smartmontools.org/ticket/1535

Fixed in mailutils 3.13, see https://savannah.gnu.org/bugs/?60937

Regards,
Christian Franke
smartmontools.org

Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for taking the time to report this bug and helping to make Ubuntu better. Since the package referred to in this bug is in universe or multiverse, it is community maintained. If you are able, I suggest coordinating with upstream and posting a debdiff for this issue. When a debdiff is available, members of the security team will review it and publish the package. See the following link for more information: https://wiki.ubuntu.com/SecurityTeam/UpdateProcedures

tags: added: community-security
information type: Private Security → Public Security
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.