CVE-2012-1502

PyPam < 0.5.0 - Double Free in PyPAM_conv

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2012-1502. PoCs published by Markus Vervier.

AI-analyzed exploit summary The exploit demonstrates a double-free vulnerability in PyPAM (Python bindings for PAM) by supplying a password containing a NULL-byte, leading to undefined behavior and potential remote code execution. The PoC script triggers the issue by calling PAM authentication functions with a malformed password.

Description

Double free vulnerability in the PyPAM_conv in PAMmodule.c in PyPam 0.5.0 and earlier allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a NULL byte in a password string.

Exploits (1)

exploitdb WORKING POC
by Markus Vervier · textdoslinux
https://www.exploit-db.com/exploits/18579

The exploit demonstrates a double-free vulnerability in PyPAM (Python bindings for PAM) by supplying a password containing a NULL-byte, leading to undefined behavior and potential remote code execution. The PoC script triggers the issue by calling PAM authentication functions with a malformed password.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Theoretical
Target: PyPAM <= 0.4.2, Red Hat PyPAM <= 0.5.0-12, Debian python-pam <= 0.4.2-12.2, Ubuntu python-pam <= 0.4.2-12.2, SUSE python-pam <= 0.5.0-79.1.2, Gentoo pypam <= 0.5.0
No auth needed
Prerequisites: Access to a system with vulnerable PyPAM version · Ability to supply a password with NULL-byte to the PAM module
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (10)

Core 10
Core References
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2012-04/msg00027.html
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/48312
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/48746
Various Sources vendor-advisory x_refsource_ubuntu
http://ubuntu.com/usn/usn-1395-1
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://www.osvdb.org/79892
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201507-09
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/73857
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2012/dsa-2430
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/48332

Scores

EPSS 0.1429
EPSS Percentile 96.1%

Details

CWE
CWE-399
Status published
Products (1)
pypam/pypam < 0.5.0
Published Jun 16, 2012
Tracked Since Feb 18, 2026