cbcvebase.
CVE-2022-42898
published 2022-12-25

CVE-2022-42898: PAC parsing in MIT Kerberos 5 (aka krb5) before 1.19.4 and 1.20.x before 1.20.1 has integer overflows that may lead to remote code execution (in KDC, kadmind…

PriorityP357high8.8CVSS 3.1
AVNACLPRLUINSUCHIHAH
EPSS
6.42%
92.9th percentile
PAC parsing in MIT Kerberos 5 (aka krb5) before 1.19.4 and 1.20.x before 1.20.1 has integer overflows that may lead to remote code execution (in KDC, kadmind, or a GSS or Kerberos application server) on 32-bit platforms (which have a resultant heap-based buffer overflow), and cause a denial of service on other platforms. This occurs in krb5_pac_parse in lib/krb5/krb/pac.c. Heimdal before 7.7.1 has "a similar bug."

Affected

51 ranges· showing 25
VendorProductVersion rangeFixed in
debianheimdal< heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)
debiankrb5< heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)
debiansamba< heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)heimdal 7.8.git20221115.a6cf945+dfsg-1 (bookworm)
heimdal_projectheimdal< 7.7.17.7.1
heimdal_projectheimdal>= 0 < 7.7.0+dfsg-2+deb11u27.7.0+dfsg-2+deb11u2
heimdal_projectheimdal>= 0 < 7.8.git20221115.a6cf945+dfsg-17.8.git20221115.a6cf945+dfsg-1
heimdal_projectheimdal>= 0 < 7.8.git20221115.a6cf945+dfsg-17.8.git20221115.a6cf945+dfsg-1
heimdal_projectheimdal>= 0 < 7.8.git20221115.a6cf945+dfsg-17.8.git20221115.a6cf945+dfsg-1
heimdal_projectheimdal>= 0 < 7.5.0+dfsg-1ubuntu0.37.5.0+dfsg-1ubuntu0.3
heimdal_projectheimdal>= 0 < 7.7.0+dfsg-1ubuntu1.37.7.0+dfsg-1ubuntu1.3
heimdal_projectheimdal>= 0 < 1.6~git20131207+dfsg-1ubuntu1.2+esm31.6~git20131207+dfsg-1ubuntu1.2+esm3
heimdal_projectheimdal>= 0 < 1.7~git20150920+dfsg-4ubuntu1.16.04.1+esm31.7~git20150920+dfsg-4ubuntu1.16.04.1+esm3
mitkerberos_5
mitkerberos_5>= 1.8 < 1.19.41.19.4
mitkrb5>= 0 < 1.18.3-6+deb11u31.18.3-6+deb11u3
mitkrb5>= 0 < 1.20.1-11.20.1-1
mitkrb5>= 0 < 1.20.1-11.20.1-1
mitkrb5>= 0 < 1.20.1-11.20.1-1
mitkrb5>= 0 < 1.16-2ubuntu0.31.16-2ubuntu0.3
mitkrb5>= 0 < 1.17-6ubuntu4.21.17-6ubuntu4.2
mitkrb5>= 0 < 1.19.2-2ubuntu0.11.19.2-2ubuntu0.1
mitkrb5>= 0 < 1.12+dfsg-2ubuntu5.4+esm31.12+dfsg-2ubuntu5.4+esm3
mitkrb5>= 0 < 1.13.2+dfsg-5ubuntu2.2+esm31.13.2+dfsg-5ubuntu2.2+esm3
msrcazl3_samba_4.18.3-1_on_azure_linux_3.0
msrcazure_linux_3.0_arm

Detection & IOCsextracted from sources · hover to see the quote

pathlib/krb5/krb/pac.c
processkrb5_pac_parse
  • Monitor for integer overflow conditions during PAC (Privilege Attribute Certificate) parsing in KDC, kadmind, or GSS/Kerberos application servers, particularly on 32-bit platforms where a heap-based buffer overflow may result.
  • Focus detection on the krb5_pac_parse function in lib/krb5/krb/pac.c — malformed or oversized PAC buffers triggering integer overflow in this function are the attack vector.
  • Heimdal KDC deployments prior to 7.7.1 are also vulnerable to a similar PAC parsing bug; monitor Heimdal KDC processes for anomalous PAC-related crashes or heap corruption.
  • Watch for unexpected crashes or restarts of kadmind, KDC, or SPNEGO-enabled application servers, which may indicate exploitation attempts via malformed PAC data.
  • On FreeBSD systems, check for Heimdal-related process anomalies; the advisory covers multiple CVEs including CVE-2022-42898 (PAC parse integer overflows) alongside CVE-2022-44640 (invalid free in ASN.1 codec) which may be chained.
  • ·Exploitation leading to remote code execution is limited to 32-bit platforms due to the resultant heap-based buffer overflow; 64-bit platforms are only subject to denial of service.
  • ·Only systems using Kerberos are affected; non-Kerberos deployments are not at risk.
  • ·On FreeBSD specifically, CVE-2022-44640 (a related severe vulnerability) cannot be exploited for RCE, though CVE-2022-42898 remains applicable.

CVSS provenance

nvdv3.18.8HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
osv8.8HIGH
vendor_debian8.8HIGH
vendor_msrc8.8HIGH
vendor_oracle8.8HIGH
vendor_redhat8.8HIGH
vendor_ubuntu7.5HIGH
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.