file is a utility that identifies a file format by scanning binary data for patterns.
Conor Edberg discovered an error in the way file processes a specific regular expression.
A remote attacker could entice a user to open a specially crafted file, using excessive CPU ressources and possibly leading to a Denial of Service. Note that this vulnerability could be also triggered through an automatic file scanner like amavisd-new.
There is no known workaround at this time.
All file users should upgrade to the latest version:
# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-4.20-r1"