{"id":"CVE-2022-42898","details":"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.\"","modified":"2026-04-16T04:31:50.502619048Z","published":"2022-12-25T06:15:09.427Z","related":["ALSA-2022:8637","ALSA-2022:8638","GHSA-64mq-fvfj-5x3c","SUSE-SU-2022:4153-1","SUSE-SU-2022:4154-1","SUSE-SU-2022:4155-1","SUSE-SU-2022:4167-1","SUSE-SU-2022:4335-1","SUSE-SU-2022:4395-1","SUSE-SU-2023:0081-1","SUSE-SU-2023:0160-1","SUSE-SU-2023:0198-1","openSUSE-SU-2023:0019-1","openSUSE-SU-2023:0020-1","openSUSE-SU-2024:12524-1","openSUSE-SU-2024:12525-1","openSUSE-SU-2024:12580-1"],"references":[{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230223-0001/"},{"type":"ADVISORY","url":"https://web.mit.edu/kerberos/krb5-1.19/"},{"type":"ADVISORY","url":"https://web.mit.edu/kerberos/krb5-1.20/README-1.20.1.txt"},{"type":"ADVISORY","url":"https://www.samba.org/samba/security/CVE-2022-42898.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202309-06"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202310-06"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20230216-0008/"},{"type":"ADVISORY","url":"https://web.mit.edu/kerberos/advisories/"},{"type":"ADVISORY","url":"https://github.com/heimdal/heimdal/security/advisories/GHSA-64mq-fvfj-5x3c"},{"type":"FIX","url":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583"},{"type":"FIX","url":"https://bugzilla.samba.org/show_bug.cgi?id=15203"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/heimdal/heimdal","events":[{"introduced":"0"},{"fixed":"78077c39e355766221383ee48c8b9be0459a82a4"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"7.7.1"}]}},{"type":"GIT","repo":"https://github.com/krb5/krb5","events":[{"introduced":"83758c28e976230ce11df1db51ccee7166b89110"},{"fixed":"638554a15de7165b004c815124aa6145f98d0598"},{"introduced":"0"},{"last_affected":"fea39a0daeed8720b5c6fe095a81d8ca158351d2"},{"introduced":"0"},{"last_affected":"d815ebd961a4fcf12172a69fe51ded74d62fe5f3"},{"fixed":"ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583"}],"database_specific":{"versions":[{"introduced":"1.8"},{"fixed":"1.19.4"},{"introduced":"0"},{"last_affected":"1.20-NA"},{"introduced":"0"},{"last_affected":"1.20-beta1"}]}},{"type":"GIT","repo":"https://github.com/samba-team/samba","events":[{"introduced":"0"},{"fixed":"b86b889c5222374b918078840a362125ab32ed62"},{"introduced":"e95d85f784ae6b19f2cb42cc9039b60b146e5b69"},{"fixed":"fc0f1090f4ca6d240b4bcfc84890cfc26a44827f"},{"introduced":"fbec737d9d3d992b54f52defcba62a304efef8f7"},{"fixed":"212ebbf7f4f30a0555c87e7ed23139fc08415215"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"4.15.12"},{"introduced":"4.16.0"},{"fixed":"4.16.7"},{"introduced":"4.17.0"},{"fixed":"4.17.3"}]}}],"versions":["git2svn-syncpoint-master","heimdal-1.3.0pre1","heimdal-1.3.0pre10","heimdal-1.3.0pre11","heimdal-1.3.0pre3","heimdal-1.3.0pre4","heimdal-1.3.0pre5","heimdal-1.3.0pre6","heimdal-1.3.0pre7","heimdal-1.3.0pre8","heimdal-1.3.0pre9","heimdal-1.3.0rc1","heimdal-1.5pre1","heimdal-1.5pre2","heimdal-7.0.1","heimdal-7.0.2","heimdal-7.0.3","heimdal-7.1.0","heimdal-7.1rc1","heimdal-7.2.0","heimdal-7.3.0","heimdal-7.4.0","heimdal-7.5.0","heimdal-7.6.0","heimdal-7.7.0","krb5-1.19-beta1","krb5-1.19-beta2","krb5-1.19-final","krb5-1.19.1-final","krb5-1.19.2-final","krb5-1.19.3-final","krb5-1.20-beta1","krb5-1.20-final","ldb-1.1.0","ldb-1.1.10","ldb-1.1.11","ldb-1.1.12","ldb-1.1.13","ldb-1.1.14","ldb-1.1.15","ldb-1.1.16","ldb-1.1.17","ldb-1.1.18","ldb-1.1.19","ldb-1.1.2","ldb-1.1.20","ldb-1.1.21","ldb-1.1.22","ldb-1.1.23","ldb-1.1.25","ldb-1.1.26","ldb-1.1.27","ldb-1.1.28","ldb-1.1.29","ldb-1.1.3","ldb-1.1.30","ldb-1.1.31","ldb-1.1.4","ldb-1.1.5","ldb-1.1.6","ldb-1.1.8","ldb-1.1.9","ldb-1.2.0","ldb-1.2.1","ldb-1.2.2","ldb-1.3.0","ldb-1.3.1","ldb-1.3.2","ldb-1.4.0","ldb-1.4.1","ldb-1.5.0","ldb-1.5.1","ldb-1.5.2","ldb-1.6.1","ldb-1.6.2","ldb-1.6.3","ldb-2.0.5","ldb-2.1.0","ldb-2.1.1","ldb-2.2.0","ldb-2.4.0","ldb-2.4.1","ldb-2.4.2","ldb-2.4.3","ldb-2.5.1","ldb-2.5.2","samba-4.0.0alpha10","samba-4.0.0alpha17","samba-4.0.0alpha18","samba-4.0.0alpha19","samba-4.0.0alpha20","samba-4.0.0alpha21","samba-4.0.0alpha6","samba-4.0.0alpha7","samba-4.0.0alpha8","samba-4.0.0alpha9","samba-4.0.0beta1","samba-4.0.0beta2","samba-4.0.0beta3","samba-4.0.0beta4","samba-4.0.0beta5","samba-4.0.0beta6","samba-4.0.0beta7","samba-4.0.0beta8","samba-4.0.0rc1","samba-4.10.0rc1","samba-4.11.0rc1","samba-4.12.0rc1","samba-4.13.0rc1","samba-4.14.0rc1","samba-4.15.0","samba-4.15.0rc1","samba-4.15.0rc2","samba-4.15.0rc3","samba-4.15.0rc4","samba-4.15.0rc5","samba-4.15.0rc6","samba-4.15.0rc7","samba-4.15.1","samba-4.15.10","samba-4.15.11","samba-4.15.2","samba-4.15.3","samba-4.15.4","samba-4.15.6","samba-4.15.7","samba-4.15.8","samba-4.16.0","samba-4.16.1","samba-4.16.2","samba-4.16.3","samba-4.16.4","samba-4.16.5","samba-4.16.6","samba-4.17.0","samba-4.17.1","samba-4.17.2","samba-4.2.0rc1","samba-4.3.0rc1","samba-4.4.0rc1","samba-4.5.0rc1","samba-4.6.0rc1","samba-4.7.0rc1","samba-4.8.0rc1","samba-4.9.0rc1","switch-from-svn-to-git","talloc-1.3.1","talloc-2.0.0","talloc-2.0.7","talloc-2.0.8","talloc-2.1.0","talloc-2.1.1","talloc-2.1.10","talloc-2.1.11","talloc-2.1.12","talloc-2.1.13","talloc-2.1.14","talloc-2.1.15","talloc-2.1.16","talloc-2.1.2","talloc-2.1.3","talloc-2.1.4","talloc-2.1.5","talloc-2.1.6","talloc-2.1.7","talloc-2.1.8","talloc-2.1.9","talloc-2.2.0","talloc-2.3.0","talloc-2.3.1","talloc-2.3.2","talloc-2.3.3","tdb-1.1.5","tdb-1.2.0","tdb-1.2.1","tdb-1.2.10","tdb-1.2.11","tdb-1.2.12","tdb-1.2.13","tdb-1.3.0","tdb-1.3.1","tdb-1.3.10","tdb-1.3.11","tdb-1.3.12","tdb-1.3.13","tdb-1.3.14","tdb-1.3.15","tdb-1.3.16","tdb-1.3.17","tdb-1.3.18","tdb-1.3.2","tdb-1.3.3","tdb-1.3.4","tdb-1.3.5","tdb-1.3.6","tdb-1.3.7","tdb-1.3.8","tdb-1.3.9","tdb-1.4.0","tdb-1.4.1","tdb-1.4.2","tdb-1.4.3","tdb-1.4.4","tevent-0.10.0","tevent-0.10.1","tevent-0.10.2","tevent-0.11.0","tevent-0.9.11","tevent-0.9.12","tevent-0.9.13","tevent-0.9.14","tevent-0.9.15","tevent-0.9.16","tevent-0.9.17","tevent-0.9.18","tevent-0.9.19","tevent-0.9.20","tevent-0.9.21","tevent-0.9.22","tevent-0.9.23","tevent-0.9.24","tevent-0.9.25","tevent-0.9.26","tevent-0.9.27","tevent-0.9.28","tevent-0.9.29","tevent-0.9.30","tevent-0.9.31","tevent-0.9.32","tevent-0.9.33","tevent-0.9.34","tevent-0.9.35","tevent-0.9.36","tevent-0.9.37","tevent-0.9.38","tevent-0.9.39","tevent-0.9.8","upstream-1.4.0+git20101228.dfsg.1","upstream-1.4.0+git20110220.dfsg.1"],"database_specific":{"vanir_signatures_modified":"2026-04-12T03:22:17Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42898.json","vanir_signatures":[{"digest":{"function_hash":"313212553996591129015720005043578260600","length":8101},"target":{"file":"src/lib/krb5/krb/t_pac.c","function":"main"},"signature_version":"v1","source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","deprecated":false,"signature_type":"Function","id":"CVE-2022-42898-190ec2e6"},{"source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["47415333018243679864646462913306600925","113522990652075189899911575550870172940","332636347402384035849490568060121070816","24974974711904770793287531419649756654","34036481326062071104848288339706052122","335906234459261617987938532306053980177","154732096699152609497200721234291993685","185833400480707633037073703290605393751","114563188656008062785041387091874740449","258667828208263873189321892773311252565","259921342012297268374246674019195512093"]},"id":"CVE-2022-42898-1a970be7","deprecated":false,"signature_type":"Line","target":{"file":"src/lib/krb5/krb/pac.c"}},{"source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["203158983188195784883759796692003894593","117811727424344157626574231154516038039","275952240584579959483060309342236230792","87998220430651193888088689122468582815","198618692815112439499828060074676714596","86990030903086973170313960916416642456"]},"id":"CVE-2022-42898-705fc6fd","signature_type":"Line","deprecated":false,"target":{"file":"src/lib/krb5/krb/t_pac.c"}},{"source":"https://github.com/heimdal/heimdal/commit/78077c39e355766221383ee48c8b9be0459a82a4","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["185684756605390238103334007784352789624","7131579695216385856922531758292910060","96067565823201056646313325968740529266","307324062224806380958204996069287421659"]},"id":"CVE-2022-42898-7e74d481","deprecated":false,"signature_type":"Line","target":{"file":"include/bits.c"}},{"digest":{"function_hash":"141063196662638433845114500023813850879","length":1490},"target":{"file":"src/lib/krb5/krb/pac.c","function":"krb5_pac_parse"},"signature_version":"v1","source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_type":"Function","deprecated":false,"id":"CVE-2022-42898-d3714872"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}