CVE-2023-3326Network authentication attack via pam_krb5
pam_krb5 authenticates a user by essentially running kinit with the password, getting a ticket-granting ticket (tgt) from the Kerberos KDC (Key Distribution Center) over the network, as a way to verify the password. However, if a keytab is not provisioned on the system, pam_krb5 has no way to validate the response from the KDC, and essentially trusts the tgt provided over the network as being valid. In a non-default FreeBSD installation that leverages pam_krb5 for authentication and does not have a keytab provisioned, an attacker that is able to control both the password and the KDC responses can return a valid tgt, allowing authentication to occur for any user on the system.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | libpam-krb5 | Fix pending | UBUNTU-CVE-2023-3326 | |
| Ubuntu 26.10 | sssd | Fix pending | UBUNTU-CVE-2023-3326 | |
| Ubuntu 26.04 | libpam-krb5 | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 26.04 | sssd | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 25.10 | libpam-krb5 | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 25.10 | sssd | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 24.04 | libpam-krb5 | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 24.04 | sssd | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 22.04 | libpam-krb5 | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 22.04 | sssd | Under investigation | UBUNTU-CVE-2023-3326 | |
| Ubuntu 20.04 | libpam-krb5 | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 20.04 | sssd | Fix pending | UBUNTU-CVE-2023-3326 | |
| Ubuntu 18.04 | libpam-krb5 | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 18.04 | sssd | Fix pending | UBUNTU-CVE-2023-3326 | |
| Ubuntu 16.04 | libpam-krb5 | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 16.04 | sssd | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | UBUNTU-CVE-2023-3326 | |
| Ubuntu 14.04 | libpam-krb5 | Fix pending | UBUNTU-CVE-2023-3326 | |
| Ubuntu 14.04 | sssd | Will not fix per the comments on the oss-sec post, "pam_krb5 and sssd-krb5 are both affected by the same attack, but they have always been _documented_ to be affected".… | ||
| Debian 14 | libpam-krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-3326 | |
| Debian 13 | libpam-krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-3326 | |
| Debian 12 | libpam-krb5 | Will not fix Debian rates this unimportant for its packages (a minor issue, or one that doesn't affect Debian's build), so no security update is planned. | DEBIAN-CVE-2023-3326 |
What the vendor says
As published in the CVE record by freebsd, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- FreeBSD: affected: 13.2-RELEASE to before 13.2-RELEASE-p1, 13.1-RELEASE to before 13.1-RELEASE-p8, 12.4-RELEASE to before 12.4-RELEASE-p3; fixed in
13.2-RELEASE-p1,13.1-RELEASE-p8,12.4-RELEASE-p3
Workaround: If you are not using Kerberos at all, ensure /etc/krb5.conf is missing from your system. Additionally, ensure pam_krb5 is commented out of your PAM configuration located as documented in pam.conf(5), generally /etc/pam.d. Note, the default FreeBSD PAM configuration has pam_krb5 commented out. If you are using Kerberos, but not using pam_krb5, ensure pam_krb5 is commented out of your PAM configuration located as documented in pam.conf(5), generally /etc/pam.d. Note, the default FreeBSD PAM configuration has pam_krb5 commented out. If you are using pam_krb5, ensure you have a keytab on your system as provided by your Kerberos administrator.
Vendor advisories:
- https://security.FreeBSD.org/advisories/FreeBSD-SA-23:04.pam_krb5.asc (vendor-advisory)
- https://security.FreeBSD.org/advisories/FreeBSD-SA-23:09.pam_krb5.asc (vendor-advisory)
References
- https://security.FreeBSD.org/advisories/FreeBSD-SA-23:04.pam_krb5.asc
- https://security.netapp.com/advisory/ntap-20230714-0005/
- https://security.FreeBSD.org/advisories/FreeBSD-SA-23:09.pam_krb5.asc
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.