Public Date:
816956: CVE-2012-2143 BSD crypt(): DES encrypted password weakness

The MITRE CVE dictionary describes this issue as:

The crypt_des (aka DES-based crypt) function in FreeBSD before 9.0-RELEASE-p2, as used in PHP, PostgreSQL, and other products, does not process the complete cleartext password if this password contains a 0x80 character, which makes it easier for context-dependent attackers to obtain access via an authentication attempt with an initial substring of the intended password, as demonstrated by a Unicode password.

Find out more about CVE-2012-2143 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue did not affect the version of php as shipped with Red Hat Enterprise Linux 5 as it did not include FreeSec's libcrypt cryptographic algorithms implementation yet. This issue was addressed in php53 package for Red Hat Enterprise Linux 5 via RHSA-2012:1047 and in php package for Red Hat Enterprise Linux 6 via RHSA-2012:1046.

CVSS v2 metrics

Base Score 4
Base Metrics AV:N/AC:H/Au:N/C:P/I:P/A:N
Access Vector Network
Access Complexity High
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact None

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux 5 (postgresql) RHSA-2012:1036 2012-06-25
Red Hat Enterprise Linux 5 (postgresql84) RHSA-2012:1037 2012-06-25
Red Hat Enterprise Linux 6 (php) RHSA-2012:1046 2012-06-27
Red Hat Enterprise Linux 5 (php53) RHSA-2012:1047 2012-06-27
Red Hat Enterprise Linux 6 (postgresql) RHSA-2012:1037 2012-06-25

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 5 php Not affected
Unless explicitly stated as not affected, all previous versions of packages in any minor update stream of a product listed here should be assumed vulnerable, although may not have been subject to full analysis.


Upstream acknowledges Rubin Xu and Joseph Bonneau as the original reporters of this issue.
Last Modified

CVE description copyright © 2017, The MITRE Corporation