{"id":"CVE-2019-15903","details":"In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too early; a consecutive call to XML_GetCurrentLineNumber (or XML_GetCurrentColumnNumber) then resulted in a heap-based buffer over-read.","modified":"2026-05-30T15:02:54.074854Z","published":"2019-09-04T06:15:10.877Z","related":["SUSE-SU-2019:14246-1","SUSE-SU-2019:2429-1","SUSE-SU-2019:2440-1","SUSE-SU-2019:2871-1","SUSE-SU-2019:2872-1","SUSE-SU-2019:2912-1","SUSE-SU-2020:0114-1","SUSE-SU-2020:0302-1","SUSE-SU-2025:20207-1","SUSE-SU-2025:20311-1","openSUSE-SU-2019:2204-1","openSUSE-SU-2019:2205-1","openSUSE-SU-2019:2420-1","openSUSE-SU-2019:2424-1","openSUSE-SU-2019:2425-1","openSUSE-SU-2019:2447-1","openSUSE-SU-2019:2451-1","openSUSE-SU-2019:2452-1","openSUSE-SU-2019:2459-1","openSUSE-SU-2019:2464-1","openSUSE-SU-2020:0010-1","openSUSE-SU-2020:0086-1","openSUSE-SU-2024:10600-1","openSUSE-SU-2024:10601-1","openSUSE-SU-2024:10681-1","openSUSE-SU-2024:10748-1","openSUSE-SU-2024:11284-1","openSUSE-SU-2024:12948-1","openSUSE-SU-2024:14572-1"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"2.7.0"},{"fixed":"2.7.17"},{"introduced":"3.5.0"},{"fixed":"3.5.8"},{"introduced":"3.6.0"},{"fixed":"3.6.10"},{"introduced":"3.7.0"},{"fixed":"3.7.5"}],"cpes":["cpe:2.3:a:python:python:*:*:*:*:*:*:*:*"],"source":"CPE_RANGE","vendor_product":"python:python"}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/A4TZKPJFTURRLXIGLB34WVKQ5HGY6JJA/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BDUTI5TVQWIGGQXPEVI4T2ENHFSBMIBP/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S26LGXXQ7YF2BP3RGOWELBFKM6BHF6UG/"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00080.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-09/msg00081.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00000.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00002.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00003.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00013.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00016.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00017.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00018.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2019-11/msg00019.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00008.html"},{"type":"ADVISORY","url":"http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00040.html"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/154503/Slackware-Security-Advisory-expat-Updates.html"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/154927/Slackware-Security-Advisory-python-Updates.html"},{"type":"ADVISORY","url":"http://packetstormsecurity.com/files/154947/Slackware-Security-Advisory-mozilla-firefox-Updates.html"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2019/Dec/23"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2019/Dec/26"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2019/Dec/27"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2019/Dec/30"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3210"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3237"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:3756"},{"type":"ADVISORY","url":"https://github.com/libexpat/libexpat/issues/342"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00006.html"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2019/11/msg00017.html"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Dec/17"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Dec/21"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Dec/23"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Nov/1"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Nov/24"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Oct/29"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Sep/30"},{"type":"ADVISORY","url":"https://seclists.org/bugtraq/2019/Sep/37"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201911-08"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190926-0004/"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210785"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210788"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210789"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210790"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210793"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210794"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT210795"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4132-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4132-2/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4165-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4202-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/4335-1/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4530"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4549"},{"type":"ADVISORY","url":"https://www.debian.org/security/2019/dsa-4571"},{"type":"ADVISORY","url":"https://www.oracle.com/security-alerts/cpuapr2020.html"},{"type":"ADVISORY","url":"https://www.oracle.com/security-alerts/cpuoct2020.html"},{"type":"ADVISORY","url":"https://www.tenable.com/security/tns-2021-11"},{"type":"REPORT","url":"https://github.com/libexpat/libexpat/issues/317"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/318"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libexpat/libexpat","events":[{"introduced":"0"},{"fixed":"91b17cfeb8edf60ca23e33fe59ac231d0f2efb48"},{"fixed":"c20b758c332d9a13afbbb276d30db1d183a85d43"}],"database_specific":{"extracted_events":[{"introduced":"0"},{"fixed":"2.2.8"}],"cpe":"cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*","source":["CPE_RANGE","REFERENCES"]}}],"versions":["R_2_2_7","R_2_2_6","R_2_2_5","R_2_2_4","R_2_2_3","R_2_2_2","R_2_2_1","R_2_2_0","R_2_1_1","R_2_1_0","R_2_0_1","R_2_0_0","R_1_95_8","R_1_95_7","R_1_95_6","R_1_95_5","R_1_95_4","R_1_95_3","R_1_95_2","R_1_95_0","libexpat-alpha-1","start","sourceforge_init","jclark-orig","V20000512","V19991013","V19990728","V19990709","V19990626","V1_1","V19990425","V1990307","V19990109","V19981231","V19981122","V1_0","beta4","beta3","beta2","REC1_0"],"database_specific":{"vanir_signatures":[{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"length":27888,"function_hash":"125271961576543742310629350504968019617"},"deprecated":false,"id":"CVE-2019-15903-0d752d8d","signature_type":"Function","target":{"file":"expat/lib/xmlparse.c","function":"doProlog"},"signature_version":"v1"},{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"length":1541,"function_hash":"258898664727023212628731136448884091064"},"deprecated":false,"id":"CVE-2019-15903-3992c034","signature_type":"Function","target":{"file":"expat/lib/xmlparse.c","function":"processInternalEntity"},"signature_version":"v1"},{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"length":347,"function_hash":"320542276707726540903784573260106917696"},"deprecated":false,"id":"CVE-2019-15903-4fa8a18a","signature_type":"Function","target":{"file":"expat/lib/xmlparse.c","function":"prologProcessor"},"signature_version":"v1"},{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"length":1691,"function_hash":"87559746390753119708030472024368882252"},"deprecated":false,"id":"CVE-2019-15903-50a68847","signature_type":"Function","target":{"file":"expat/lib/xmlparse.c","function":"internalEntityProcessor"},"signature_version":"v1"},{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"line_hashes":["132983735470197785746052135782572205033","146204224061470080606983094059913412689","7599560151177139529648421590374092798","43488536384691544214046994497908120940","316924857856242392275636406882952016268","313502711495946994497639020874340401069","195484947523758424504813833072420643936","66393858657853185419579310156918223010","255221502895981869157887834697152878351","106795823336306937525621181615350467828","226320368211189727652238023669300150723","120536527396395186340591214598221850705","157897276731025067219377731738911663661","56387941961793144568065674959231386429","122849457964806115309741096903856490512","175297395996681036848075065183921967929","299387118000825267278833341847060218101","276502891951823894309157759029430923936","56631634594391992920425749299177991860","128211256018775436878936886506812361210","136991866931827280169215334671955339519","267326537430448345157071811058789050241","281089508152999328292147815149430177071","266760975306673981287073430543841070947","136991866931827280169215334671955339519","267326537430448345157071811058789050241","281089508152999328292147815149430177071","145115243084578848234012712515518269345","130000406535845302189293374835665079658","249245281332386594223044783888918985169","150401336559048452177710326613018819487","41422063577574542654899415359947089205"],"threshold":0.9},"deprecated":false,"id":"CVE-2019-15903-52ad81f3","signature_type":"Line","target":{"file":"expat/lib/xmlparse.c"},"signature_version":"v1"},{"source":"https://github.com/libexpat/libexpat/commit/c20b758c332d9a13afbbb276d30db1d183a85d43","digest":{"length":878,"function_hash":"217326096847551269990637517059988824832"},"deprecated":false,"id":"CVE-2019-15903-9c136d97","signature_type":"Function","target":{"file":"expat/lib/xmlparse.c","function":"externalParEntProcessor"},"signature_version":"v1"}],"vanir_signatures_modified":"2026-05-30T15:02:54Z","source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-15903.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}