PyPAM: Arbitrary code execution — GLSA 201507-09

A double free vulnerability in PyPAM could result in execution of arbitrary code or Denial of Service.

Affected packages

dev-python/pypam on all architectures
Affected versions < 0.5.0-r3
Unaffected versions >= 0.5.0-r3

Background

PyPAM is a PAM binding for Python.

Description

PyPAM does not handle passwords correctly if there is NULL byte in the string.

Impact

A remote attacker could possibly execute arbitrary code or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All PyPAM users should upgrade to the latest version:

 # emerge --sync
 # emerge --ask --oneshot --verbose ">=dev-python/pypam-0.5.0-r3"
 

References

Release date
July 09, 2015

Latest revision
July 09, 2015: 1

Severity
normal

Exploitable
remote

Bugzilla entries