Skip to content
Fencer Intel
medium 4.3

CVE-2012-2143 json

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 pro…

published 2012-07-05 14 y ago modified 2026-06-16 4 mo ago also EUVD-2012-2140

cvss
4.3
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
5.7%
EPSS 5.7% chance of exploitation in 30 days, percentile 93%
public exploits
0
none known

Summary

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.

Patch / fix

  • postgresql postgresql 8.3.19, 8.4.12, 9.0.8, 9.1.4
  • php php 5.3.14, 5.4.4
  • php53 RHEL 5 5.3.3-13.el5_8
  • php53-gd RHEL 5 5.3.3-13.el5_8
  • php53-cli RHEL 5 5.3.3-13.el5_8
  • php53-dba RHEL 5 5.3.3-13.el5_8
  • php53-pdo RHEL 5 5.3.3-13.el5_8
  • php53-xml RHEL 5 5.3.3-13.el5_8
  • php53-imap RHEL 5 5.3.3-13.el5_8
  • php53-intl RHEL 5 5.3.3-13.el5_8

red hat advisories RHSA-2012:1047RHSA-2012:1046RHSA-2012:1037RHSA-2012:1036

  • postgresql94 openSUSE Tumbleweed 9.4.10-1.1
  • postgresql93 openSUSE Tumbleweed 9.3.15-1.1
  • postgresql95 openSUSE Tumbleweed 9.5.4-1.2

opensuse advisories openSUSE-SU-2024:10030-1openSUSE-SU-2024:10256-1openSUSE-SU-2024:10273-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2012-2143 updated cvss 4.0

crypt(): DES encrypted password weakness

  • Red Hat Enterprise Linux (v. 5 server) php53 5.3.3-13.el5_8, php53-gd 5.3.3-13.el5_8, php53-cli 5.3.3-13.el5_8, php53-dba 5.3.3-13.el5_8, php53-pdo 5.3.3-13.el5_8, php53-xml 5.3.3-13.el5_8, +32 more Red Hat Enterprise Linux Desktop (v. 5 client) postgresql 8.1.23-5.el5_8, postgresql84 8.4.12-1.el5_8, postgresql-tcl 8.1.23-5.el5_8, postgresql-libs 8.1.23-5.el5_8, postgresql84-tcl 8.4.12-1.el5_8, postgresql-python 8.1.23-5.el5_8, +4 more
    fixed: vendor fix RHSA-2012:1036
  • Red Hat Enterprise Linux Desktop (v. 6) postgresql 8.4.12-1.el6_2, postgresql-libs 8.4.12-1.el6_2 Red Hat Enterprise Linux Desktop Optional (v. 6) php 5.3.3-14.el6_3, php-gd 5.3.3-14.el6_3, php-cli 5.3.3-14.el6_3, php-dba 5.3.3-14.el6_3, php-pdo 5.3.3-14.el6_3, php-xml 5.3.3-14.el6_3, +26 more Red Hat Enterprise Linux HPC Node (v. 6) php 5.3.3-14.el6_3, php-cli 5.3.3-14.el6_3, php-common 5.3.3-14.el6_3, postgresql 8.4.12-1.el6_2, postgresql-libs 8.4.12-1.el6_2 Red Hat Enterprise Linux HPC Node Optional (v. 6) php 5.3.3-14.el6_3, php-gd 5.3.3-14.el6_3, php-dba 5.3.3-14.el6_3, php-pdo 5.3.3-14.el6_3, php-xml 5.3.3-14.el6_3, php-zts 5.3.3-14.el6_3, +24 more Red Hat Enterprise Linux Server (v. 6) php 5.3.3-14.el6_3, php-gd 5.3.3-14.el6_3, php-cli 5.3.3-14.el6_3, php-pdo 5.3.3-14.el6_3, php-xml 5.3.3-14.el6_3, php-ldap 5.3.3-14.el6_3, +14 more
    fixed: vendor fix RHSA-2012:1037
  • Red Hat Enterprise Linux Server Optional (v. 6) php 5.3.3-14.el6_3, php-dba 5.3.3-14.el6_3, php-zts 5.3.3-14.el6_3, php-imap 5.3.3-14.el6_3, php-intl 5.3.3-14.el6_3, php-snmp 5.3.3-14.el6_3, +8 more
    fixed: vendor fix RHSA-2012:1046
  • Red Hat Enterprise Linux Workstation (v. 6) php 5.3.3-14.el6_3, php-gd 5.3.3-14.el6_3, php-cli 5.3.3-14.el6_3, php-pdo 5.3.3-14.el6_3, php-xml 5.3.3-14.el6_3, php-ldap 5.3.3-14.el6_3, +14 more
    fixed: vendor fix RHSA-2012:1037
  • Red Hat Enterprise Linux Workstation Optional (v. 6) php 5.3.3-14.el6_3, php-dba 5.3.3-14.el6_3, php-zts 5.3.3-14.el6_3, php-imap 5.3.3-14.el6_3, php-intl 5.3.3-14.el6_3, php-snmp 5.3.3-14.el6_3, +8 more
    fixed: vendor fix RHSA-2012:1046
  • Red Hat RHEL Desktop Workstation (v. 5 client) php53 5.3.3-13.el5_8, php53-gd 5.3.3-13.el5_8, php53-cli 5.3.3-13.el5_8, php53-dba 5.3.3-13.el5_8, php53-pdo 5.3.3-13.el5_8, php53-xml 5.3.3-13.el5_8, +24 more
    fixed: vendor fix RHSA-2012:1036
  • Red Hat Enterprise Linux 5 php
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

5.67% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

Weakness
Technology feeds

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.