{"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-16T00:02:47.153029882Z","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://bugzilla.samba.org/show_bug.cgi?id=15203"},{"type":"ADVISORY","url":"https://github.com/heimdal/heimdal/security/advisories/GHSA-64mq-fvfj-5x3c"},{"type":"ADVISORY","url":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583"},{"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://security.netapp.com/advisory/ntap-20230223-0001/"},{"type":"ADVISORY","url":"https://web.mit.edu/kerberos/advisories/"},{"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":"REPORT","url":"https://bugzilla.samba.org/show_bug.cgi?id=15203"},{"type":"FIX","url":"https://bugzilla.samba.org/show_bug.cgi?id=15203"},{"type":"FIX","url":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583"},{"type":"EVIDENCE","url":"https://bugzilla.samba.org/show_bug.cgi?id=15203"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/krb5/krb5","events":[{"introduced":"0"},{"fixed":"ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583"},{"introduced":"83758c28e976230ce11df1db51ccee7166b89110"},{"fixed":"638554a15de7165b004c815124aa6145f98d0598"}]}],"database_specific":{"vanir_signatures":[{"id":"CVE-2022-42898-190ec2e6","deprecated":false,"target":{"function":"main","file":"src/lib/krb5/krb/t_pac.c"},"signature_type":"Function","source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","digest":{"function_hash":"313212553996591129015720005043578260600","length":8101},"signature_version":"v1"},{"id":"CVE-2022-42898-1a970be7","deprecated":false,"target":{"file":"src/lib/krb5/krb/pac.c"},"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["47415333018243679864646462913306600925","113522990652075189899911575550870172940","332636347402384035849490568060121070816","24974974711904770793287531419649756654","34036481326062071104848288339706052122","335906234459261617987938532306053980177","154732096699152609497200721234291993685","185833400480707633037073703290605393751","114563188656008062785041387091874740449","258667828208263873189321892773311252565","259921342012297268374246674019195512093"]},"source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_version":"v1"},{"id":"CVE-2022-42898-705fc6fd","deprecated":false,"target":{"file":"src/lib/krb5/krb/t_pac.c"},"signature_type":"Line","digest":{"threshold":0.9,"line_hashes":["203158983188195784883759796692003894593","117811727424344157626574231154516038039","275952240584579959483060309342236230792","87998220430651193888088689122468582815","198618692815112439499828060074676714596","86990030903086973170313960916416642456"]},"source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_version":"v1"},{"id":"CVE-2022-42898-d3714872","deprecated":false,"target":{"function":"krb5_pac_parse","file":"src/lib/krb5/krb/pac.c"},"signature_type":"Function","digest":{"function_hash":"141063196662638433845114500023813850879","length":1490},"source":"https://github.com/krb5/krb5/commit/ea92d2f0fcceb54a70910fa32e9a0d7a5afc3583","signature_version":"v1"}],"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-42898.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}