CVE-2020-10595
pam_krb5: incorrect input handling results in single byte buffer overflow which may lead to heap corruption
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Ubuntu (medium).
Description
pam-krb5 before 4.9 has a buffer overflow that might cause remote code execution in situations involving supplemental prompting by a Kerberos library. It may overflow a buffer provided by the underlying Kerberos library by a single '\0' byte if an attacker responds to a prompt with an answer of a carefully chosen length. The effect may range from heap corruption to stack corruption depending on the structure of the underlying Kerberos library, with unknown effects but possibly including code execution. This code path is not used for normal authentication, but only when the Kerberos library does supplemental prompting, such as with PKINIT or when using the non-standard no_prompt PAM configuration option.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 10 | libpam-krb5 | 4.8-2+deb10u1 |
| debian 11 | libpam-krb5 | 4.9-1 |
| debian 12 | libpam-krb5 | 4.9-1 |
| debian 13 | libpam-krb5 | 4.9-1 |
| debian 14 | libpam-krb5 | 4.9-1 |
| debian 8 | libpam-krb5 | 4.6-3+deb8u1 |
| debian 9 | libpam-krb5 | 4.7-4+deb9u1 |
| echo | libpam-krb5 | 4.9-1 |
| ubuntu 14.04-ESM | libpam-krb5 | 4.6-2ubuntu0.1~esm1 |
| ubuntu 16.04 | libpam-krb5 | 4.7-2ubuntu0.1 |
| ubuntu 16.04-ESM | libpam-krb5 | 4.7-2ubuntu0.1 |
| ubuntu 18.04 | libpam-krb5 | 4.8-1ubuntu0.1 |
Show all 14 entries from 14 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 10 | libpam-krb5 | 4.8-2+deb10u1 |
| debian 11 | libpam-krb5 | 4.9-1 |
| debian 12 | libpam-krb5 | 4.9-1 |
| debian 13 | libpam-krb5 | 4.9-1 |
| debian 14 | libpam-krb5 | 4.9-1 |
| debian 8 | libpam-krb5 | 4.6-3+deb8u1 |
| debian 9 | libpam-krb5 | 4.7-4+deb9u1 |
| echo | libpam-krb5 | 4.9-1 |
| ubuntu 14.04-ESM | libpam-krb5 | 4.6-2ubuntu0.1~esm1 |
| ubuntu 16.04 | libpam-krb5 | 4.7-2ubuntu0.1 |
| ubuntu 16.04-ESM | libpam-krb5 | 4.7-2ubuntu0.1 |
| ubuntu 18.04 | libpam-krb5 | 4.8-1ubuntu0.1 |
| ubuntu 18.04-ESM | libpam-krb5 | 4.8-1ubuntu0.1 |
| ubuntu 19.10 | libpam-krb5 | 4.8-2ubuntu0.1 |
References
- http://www.openwall.com/lists/oss-security/2020/03/31/1
- https://access.redhat.com/security/cve/CVE-2020-10595
- https://github.com/rra/pam-krb5/commit/e7879e27a37119fad4faf133a9f70bdcdc75d760
- https://lists.debian.org/debian-lts-announce/2020/04/msg00000.html
- https://nvd.nist.gov/vuln/detail/CVE-2020-10595
- https://ubuntu.com/security/notices/USN-4314-1
- https://usn.ubuntu.com/4314-1/
- https://www.cve.org/CVERecord?id=CVE-2020-10595