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 morefixed: 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 morefixed: 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 morefixed: 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 morefixed: 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 morefixed: 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 morefixed: vendor fix RHSA-2012:1036
-
Red Hat Enterprise Linux 5 phpnot 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
-
- CWE-310 Cryptographic Issues
- Technology feeds
References
-
git.postgresql.org
/gitweb/?p=postgresql.git&a=commit&h=932ded2ed51e8333852e370c7a6dad75d9f236f9
vendor-advisory
-
git.php.net
/?p=php-src.git%3Ba=commit%3Bh=aab49e934de1fff046e659cbec46e3d053b41c34
broken-link, patch
-
lists.opensuse.org
/opensuse-security-announce/2012-07/msg00003.html
vendor-advisory, mailing-list, third-party-advisory
-
security.freebsd.org
/advisories/FreeBSD-SA-12:02.crypt.asc
vendor-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/082292.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/082258.html
vendor-advisory, mailing-list, third-party-advisory
-
debian.org
/security/2012/dsa-2491
vendor-advisory, third-party-advisory
-
lists.apple.com
/archives/security-announce/2012/Sep/msg00004.html
vendor-advisory, mailing-list, third-party-advisory
-
rhn.redhat.com
/errata/RHSA-2012-1037.html
vendor-advisory, third-party-advisory
-
lists.fedoraproject.org
/pipermail/package-announce/2012-June/082294.html
vendor-advisory, mailing-list, third-party-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2012:092
vendor-advisory, broken-link
-
lists.opensuse.org
/opensuse-updates/2012-09/msg00102.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2012-10/msg00013.html
vendor-advisory, mailing-list, third-party-advisory
-
lists.opensuse.org
/opensuse-updates/2012-10/msg00024.html
vendor-advisory, mailing-list, third-party-advisory
-
postgresql.org
/docs/9.1/static/release-9-1-4.html
vendor-advisory
-
secunia.com
/advisories/50718
third-party-advisory, broken-link, vendor-advisory
-
postgresql.org
/support/security/
vendor-advisory
-
postgresql.org
/docs/8.3/static/release-8-3-19.html
vendor-advisory
-
postgresql.org
/docs/8.4/static/release-8-4-12.html
vendor-advisory
-
postgresql.org
/docs/9.0/static/release-9-0-8.html
vendor-advisory
-
secunia.com
/advisories/49304
third-party-advisory, broken-link, vendor-advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=816956
issue-tracking, third-party-advisory
-
securitytracker.com
/id?1026995
vdb-entry, third-party-advisory
-
support.apple.com
/kb/HT5501
third-party-advisory
-
kb.juniper.net
/InfoCenter/index?page=content&id=JSA10705
third-party-advisory
Sources
- CVE List CVE-2012-2143
- NVD CVE-2012-2143
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.