CVEfocus › CVE database › CVE-2023-3326

CVE-2023-3326Network authentication attack via pam_krb5

CVSS 9.8 CriticalEPSS 1.3% (higher than 70% of CVEs)Published 2023-06-22Updated 2024-12-05Assigner: freebsd

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.

CWE-303

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

5Fix pending
6Under investigation
10Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10libpam-krb5Fix pendingUBUNTU-CVE-2023-3326
Ubuntu 26.10sssdFix pendingUBUNTU-CVE-2023-3326
Ubuntu 26.04libpam-krb5Under investigationUBUNTU-CVE-2023-3326
Ubuntu 26.04sssdUnder investigationUBUNTU-CVE-2023-3326
Ubuntu 25.10libpam-krb5Will 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.10sssdWill 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.04libpam-krb5Under investigationUBUNTU-CVE-2023-3326
Ubuntu 24.04sssdUnder investigationUBUNTU-CVE-2023-3326
Ubuntu 22.04libpam-krb5Under investigationUBUNTU-CVE-2023-3326
Ubuntu 22.04sssdUnder investigationUBUNTU-CVE-2023-3326
Ubuntu 20.04libpam-krb5Will 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.04sssdFix pendingUBUNTU-CVE-2023-3326
Ubuntu 18.04libpam-krb5Will 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.04sssdFix pendingUBUNTU-CVE-2023-3326
Ubuntu 16.04libpam-krb5Will 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.04sssdWill 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.04libpam-krb5Fix pendingUBUNTU-CVE-2023-3326
Ubuntu 14.04sssdWill 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 14libpam-krb5Will 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 13libpam-krb5Will 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 12libpam-krb5Will 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.

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:

References

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.