SecurityTracker.com
    Home    |    View Topics    |    Search    |    Contact Us    |   

SecurityTracker
Archives


 


Category:   Application (Generic)  >   Perl-Digest-MD5 Vendors:   Aas, Gisle
Perl-Digest-MD5 Utility May Result in Incorrect MD5 Checksums When Processing UTF-8 Encoded Characters
SecurityTracker Alert ID:  1004279
SecurityTracker URL:  http://securitytracker.com/id/1004279
CVE Reference:   GENERIC-MAP-NOMATCH   (Links to External Site)
Date:  May 11 2002
Impact:   Modification of system information, Modification of user information
Fix Available:  Yes  Vendor Confirmed:  Yes  
Version(s): prior to 2.17
Description:   A potential security issue was reported in the perl-Digest-MD5 utility. A bug may cause the utility to compute incorrect MD5 checksums when processing UTF-8 encoded characters.

Red Hat reported that there is a bug in UTF-8 interaction between perl-Digest-MD5 and Perl that results in UTF-8 strings having improper MD5 digests.

To determine if a machine is vulnerable, Red Hat suggests that you can run the following command at a shell prompt:

perl -le 'use Digest::MD5 qw/md5_hex/; $s = "test\x{101}"; chop $s; print (md5_hex($s) eq md5_hex("test") ? "ok" : "not ok")'

If the output is any message other than "ok" then an upgrade is recommended, according to the report.

For Red Hat users, Red Hat indicates that all 7.3 systems are vulnerable and that earlier versions should be not vulnerable.

Impact:   An incorrect MD5 checksum could be computed.
Solution:   This flaw has been corrected in version 2.17. The latest version at the time of this entry (2.20) is available at:

http://www.cpan.org/authors/id/GAAS/Digest-MD5-2.20.tar.gz

For Red Hat Linux 7.3 users, Red Hat has released a fixed package:

SRPMS:
ftp://updates.redhat.com/7.3/en/os/SRPMS/perl-Digest-MD5-2.20-1.src.rpm

i386:
ftp://updates.redhat.com/7.3/en/os/i386/perl-Digest-MD5-2.20-1.i386.rpm

The verification checksums are:

MD5 sum Package Name
--------------------------------------------------------------------------
19f256d961bdd48a3986b113d48aa07e 7.3/en/os/SRPMS/perl-Digest-MD5-2.20-1.src.rpm
eadfe2a31835a906d895752f61fb533e 7.3/en/os/i386/perl-Digest-MD5-2.20-1.i386.rpm

Vendor URL:  search.cpan.org/search?dist=Digest-MD5 (Links to External Site)
Cause:   State error
Underlying OS:  Linux (Any), Linux (Red Hat Linux), UNIX (Any)

Message History:   This archive entry has one or more follow-up message(s) listed below.
(Mandrake Issues Fix) Perl-Digest-MD5 Utility May Result in Incorrect MD5 Checksums When Processing UTF-8 Encoded Characters
Mandrake has released a fix.



 Source Message Contents

Subject:  [RHSA-2002:081-06] perl-Digest-MD5 UTF8 bug results in incorrect MD5 sums


---------------------------------------------------------------------
                   Red Hat, Inc. Red Hat Security Advisory

Synopsis:          perl-Digest-MD5 UTF8 bug results in incorrect MD5 sums
Advisory ID:       RHSA-2002:081-06
Issue date:        2002-05-06
Updated on:        2002-05-10
Product:           Red Hat Linux
Keywords:          
Cross references:  
Obsoletes:         
---------------------------------------------------------------------

1. Topic:

Updated perl-Digest-MD5 packages are available which work around a bug in
the utf8 interaction between perl-Digest-MD5 and Perl.

2. Relevant releases/architectures:

Red Hat Linux 7.3 - i386

3. Problem description:

A bug in utf8 interaction between perl-Digest-MD5 and Perl results in utf8
strings having improper MD5 digests.  This update works around the problem
and provides correct checksums for all input.

To determine if a machine is vulnerable, run the following command at a
shell prompt:

perl -le 'use Digest::MD5 qw/md5_hex/; $s = "test\x{101}"; chop $s; print
(md5_hex($s) eq md5_hex("test") ? "ok" : "not ok")'

If the output is any message other than "ok" then an upgrade is
recommended.  All 7.3 systems are vulnerable; no earlier versions should
have this issue.

4. Solution:

Before applying this update, make sure all previously released errata
relevant to your system have been applied.

To update all RPMs for your particular architecture, run:

rpm -Fvh [filenames]

where [filenames] is a list of the RPMs you wish to upgrade.  Only those
RPMs which are currently installed will be updated.  Those RPMs which are
not installed but included in the list will not be updated.  Note that you
can also use wildcards (*.rpm) if your current directory *only* contains the
desired RPMs.

Please note that this update is also available via Red Hat Network.  Many
people find this an easier way to apply updates.  To use Red Hat Network,
launch the Red Hat Update Agent with the following command:

up2date

This will start an interactive process that will result in the appropriate
RPMs being upgraded on your system.

5. Bug IDs fixed (http://bugzilla.redhat.com/bugzilla for more info):



6. RPMs required:

Red Hat Linux 7.3:

SRPMS:
ftp://updates.redhat.com/7.3/en/os/SRPMS/perl-Digest-MD5-2.20-1.src.rpm

i386:
ftp://updates.redhat.com/7.3/en/os/i386/perl-Digest-MD5-2.20-1.i386.rpm



7. Verification:

MD5 sum                          Package Name
--------------------------------------------------------------------------
19f256d961bdd48a3986b113d48aa07e 7.3/en/os/SRPMS/perl-Digest-MD5-2.20-1.src.rpm
eadfe2a31835a906d895752f61fb533e 7.3/en/os/i386/perl-Digest-MD5-2.20-1.i386.rpm
 

These packages are GPG signed by Red Hat, Inc. for security.  Our key
is available at:
    http://www.redhat.com/about/contact/pgpkey.html

You can verify each package with the following command:
    rpm --checksig  <filename>

If you only wish to verify that each package has not been corrupted or
tampered with, examine only the md5sum with the following command:
    rpm --checksig --nogpg <filename>

8. References:




Copyright(c) 2000, 2001, 2002 Red Hat, Inc.



_______________________________________________
Redhat-watch-list mailing list
To unsubscribe, visit: https://listman.redhat.com/mailman/listinfo/redhat-watch-list


 
 


Go to the Top of This SecurityTracker Archive Page





Home   |    View Topics   |    Search   |    Contact Us

This web site uses cookies for web analytics. Learn More

Copyright 2021, SecurityGlobal.net LLC