{"id":"CVE-2016-10149","aliases":["DEBIAN-CVE-2016-10149","DSA-3759-1","EUVD-2017-0104","GHSA-c2vx-49jm-h3f6","PYSEC-2017-25","RHSA-2017:0936","RHSA-2017:0937","RHSA-2017:0938","SUSE-SU-2017:0569-1","UBUNTU-CVE-2016-10149","USN-3402-1"],"status":"published","title":"Pysaml2 does not sanitize XML responses","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","severity":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.05024,"percentile":0.92314,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-611"],"published":"2017-01-12T00:00:00Z","modified":"2026-10-24T10:46:31Z","fixes":[{"ecosystem":"PyPI","package":"pysaml2","fixed_in":["4.5.0"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"python-pysaml2","fixed_in":["3.0.0-5"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-pysaml2","fixed_in":["3.0.0-5"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-pysaml2","fixed_in":["3.0.0-5"],"sources":["osv"]},{"ecosystem":"Debian:8","package":"python-pysaml2","fixed_in":["2.0.0-1+deb8u1"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:8::el7","package":"python-defusedxml","fixed_in":["0:0.5.0-1.el7ost"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:8::el7","package":"python-pysaml2","fixed_in":["0:3.0.2-3.el7ost"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:9::el7","package":"python-defusedxml","fixed_in":["0:0.5.0-1.el7ost"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:9::el7","package":"python-pysaml2","fixed_in":["0:3.0.2-3.el7ost"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:10::el7","package":"python-defusedxml","fixed_in":["0:0.5.0-1.el7ost"],"sources":["osv"]},{"ecosystem":"Red Hat:openstack:10::el7","package":"python-pysaml2","fixed_in":["0:3.0.2-3.el7ost"],"sources":["osv"]},{"ecosystem":"Ubuntu:16.04:LTS","package":"python-pysaml2","fixed_in":["3.0.0-3ubuntu1.16.04.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.4.0"},{"fixed":"4.5.0"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-5"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-5"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-5"}]}]},{"source":"osv","ecosystem":"Debian:8","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.0-1+deb8u1"}]}],"versions":["2.0.0-1"]},{"source":"osv","ecosystem":"PyPI","package":"pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.0"}]}],"versions":["0.4.3","1.0.1","1.0.2","1.0.3","1.1.0","2.0.0","2.1.0","2.2.0","2.3.0","2.4.0","3.0.0","3.0.2","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.5rc1","4.1.0","4.2.0","4.3.0","4.4.0"]},{"source":"osv","ecosystem":"PyPI","package":"pysaml2","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"6e09a25d9b4b7aa7a506853210a9a14100b8bc9b"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.0"}]}],"versions":["0.4.3","1.0.1","1.0.2","1.0.3","1.1.0","2.0.0","2.1.0","2.2.0","2.3.0","2.4.0","3.0.0","3.0.2","4.0.0","4.0.1","4.0.2","4.0.3","4.0.4","4.0.5","4.0.5rc1","4.1.0","4.2.0","4.3.0","4.4.0"]},{"source":"osv","ecosystem":"Red Hat:openstack:8::el7","package":"python-defusedxml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.5.0-1.el7ost"}]}]},{"source":"osv","ecosystem":"Red Hat:openstack:8::el7","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.2-3.el7ost"}]}]},{"source":"osv","ecosystem":"Red Hat:openstack:9::el7","package":"python-defusedxml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.5.0-1.el7ost"}]}]},{"source":"osv","ecosystem":"Red Hat:openstack:9::el7","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.2-3.el7ost"}]}]},{"source":"osv","ecosystem":"Red Hat:openstack:10::el7","package":"python-defusedxml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.5.0-1.el7ost"}]}]},{"source":"osv","ecosystem":"Red Hat:openstack:10::el7","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:3.0.2-3.el7ost"}]}]},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 6","package":"python-defusedxml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.4.1-2.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:OpenStack Cloud 6","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0-3.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-3ubuntu1.16.04.1"}]}],"versions":["2.4.0-0ubuntu2","3.0.0-3ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"python-pysaml2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0-3ubuntu1.16.04.1"}]}],"versions":["2.4.0-0ubuntu2","3.0.0-3ubuntu1"]}],"products":[{"vendor":"debian","product":"debian_linux"},{"vendor":"pysaml2_project","product":"pysaml2"}],"references":[{"url":"https://github.com/rohe/pysaml2/issues/366","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://access.redhat.com/errata/RHSA-2017:0936","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2017/01/19/5","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Patch","Third Party Advisory","fix","web"]},{"url":"http://www.securityfocus.com/bid/97692","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"http://www.debian.org/security/2017/dsa-3759","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/rohe/pysaml2/commit/6e09a25d9b4b7aa7a506853210a9a14100b8bc9b","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850716","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web"]},{"url":"https://access.redhat.com/errata/RHSA-2017:0938","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://github.com/rohe/pysaml2/pull/379","tags":["x_refsource_CONFIRM","x_transferred","Issue Tracking","Patch","Third Party Advisory","fix","web","report"]},{"url":"https://access.redhat.com/errata/RHSA-2017:0937","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-10149","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-c2vx-49jm-h3f6","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pysaml2/PYSEC-2017-25.yaml","tags":["web"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2016-10149","tags":["advisory"]},{"url":"https://github.com/rohe/pysaml2","tags":["package"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1415710","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0936.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2016-10149","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2016-10149","tags":["advisory","report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0937.json","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_0938.json","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2017/suse-su-20170569-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1019074","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10127","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2016-10149","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2016-10149","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-3402-1","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2016-10149","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:00:00Z","modified":"2024-08-06T03:14:42.098Z","updated_at":"2026-11-02T14:33:31.117878Z"}],"euvd":[{"id":"EUVD-2017-0104","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:00:00Z","modified":"2024-08-06T03:14:42Z","updated_at":"2026-11-03T02:22:24.206227Z"}],"ghsa":[{"id":"GHSA-c2vx-49jm-h3f6","title":"Pysaml2 does not sanitize XML responses","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2018-07-16T16:50:12Z","modified":"2024-10-21T21:08:34Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","level":"high"},{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:38:12.325695Z"}],"nvd":[{"id":"CVE-2016-10149","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:59:00.227Z","modified":"2026-06-17T00:39:09.35Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T14:03:37.238712Z"}],"osv":[{"id":"CVE-2016-10149","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:59:00.227Z","modified":"2026-10-24T10:46:31.426562976Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:01.531338Z"},{"id":"DEBIAN-CVE-2016-10149","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:59:00.227Z","modified":"2026-09-22T07:02:51.883966571Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:27.323751Z"},{"id":"GHSA-c2vx-49jm-h3f6","title":"Pysaml2 does not sanitize XML responses","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2018-07-16T16:50:12Z","modified":"2024-10-21T21:24:09.260581Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-611"],"updated_at":"2026-11-02T15:46:44.571161Z"},{"id":"RHSA-2017:0936","title":"Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update","status":"published","published":"2024-09-13T12:29:07Z","modified":"2026-06-29T10:15:55Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:53:04.262457Z"},{"id":"RHSA-2017:0937","title":"Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update","status":"published","published":"2024-09-13T12:29:12Z","modified":"2026-06-29T10:15:56Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:53:04.262457Z"},{"id":"RHSA-2017:0938","title":"Red Hat Security Advisory: python-defusedxml and python-pysaml2 security update","status":"published","published":"2024-09-13T12:29:17Z","modified":"2026-06-29T10:15:56Z","cvss":[{"version":"3.0","score":5.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","level":"medium"}],"updated_at":"2026-11-02T15:53:04.262457Z"},{"id":"UBUNTU-CVE-2016-10149","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T00:00:00Z","modified":"2026-02-04T04:12:51.949254Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:54:11.492576Z"},{"id":"DSA-3759-1","title":"python-pysaml2 - security update","status":"published","published":"2017-01-12T00:00:00Z","modified":"2026-03-09T01:21:11.501328Z","updated_at":"2026-11-02T15:46:16.523846Z"},{"id":"PYSEC-2017-25","description":"XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML request or response.","status":"published","published":"2017-03-24T14:59:00Z","modified":"2023-11-08T03:58:09.620583Z","updated_at":"2026-11-02T15:52:51.645172Z"},{"id":"SUSE-SU-2017:0569-1","title":"Security update for python-pysaml2","description":"\nThis update for python-pysaml2 fixes the following issues:\n\n- CVE-2016-10127 and CVE-2016-10149: XXE (XML external entity) issues\n  were fixed in python-pysaml2, where external requests to other XML content\n  could be made by parsing XML files using this SAML2 library. (bsc#1019074)\n\n  To fix this bug, the new dependency python-defusedxml was added and is used for sanitizing XML content.\n\n","status":"published","published":"2017-02-27T12:58:27Z","modified":"2026-02-04T02:23:46.035212Z","updated_at":"2026-11-02T15:53:43.83457Z"},{"id":"USN-3402-1","title":"python-pysaml2 vulnerability","description":"It was discovered that PySAML2 incorrectly handled certain\nSAML XML requests and responses. A remote attacker could use\nthis issue to read arbitrary files.\n","status":"published","published":"2017-08-24T12:02:11Z","modified":"2026-02-10T04:41:11Z","updated_at":"2026-11-02T16:58:13.496563Z"}]}}
