GitHub Advisoryadvisory · PyPI
GHSA-f5gc-p5m3-v347 XXE in petl
HIGH
Official page ↗
- Aliases
- CVE-2020-29128
- Ecosystem
- PyPI
- Packages
- petl
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-611
- Reviewed
- 2020-12-02
Affected packages
• PyPI petl: < 1.6.8 → fixed in 1.6.8
Description
Impact
Information Disclosure
Summary
petl is a Python library that provides functions for extraction, transformation, and loading (ETL) of data.
petl before 1.68, in some configurations, allows resolution of entities in XML input.
An attacker who is able to submit XML input to an application using petl can disclose arbitrary files on the file system in the context of the user under which the application is running.
Affected Applications
Applications that:
• accept attacker-supplied XML input that is processed using petl = 1.68
Workarounds
• Assure there is no user/external access to the application using petl
• Assure your application is not using the function fromxml()
References
• https://github.com/nvn1729/advisories/blob/master/cve-2020-29128.md
• https://github.com/petl-developers/petl/pull/527
• https://github.com/petl-developers/petl/releases/tag/v1.6.8
• https://petl.readthedocs.io/en/stable/changes.html
• https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing
For more information
If you have any questions or comments about this advisory:
• Add a comment in the Github issue
Thaks to Naveen Sunkavally.
Related
Alias · CVE (1)
- CVE-2020-29128 petl before 1.68, in some configurations, allows resolution of entities in an XML document. vulnerability
Weakness · CWE (1)
- CWE-611 Improper Restriction of XML External Entity Reference weakness
References
- https://github.com/petl-developers/petl/security/advisories/GHSA-f5gc-p5m3-v347 web
- https://github.com/petl-developers/petl/issues/526 web
- https://github.com/petl-developers/petl/pull/527 web
- https://github.com/petl-developers/petl/commit/07420ef8463cc387aea84e2d6241cf556574e2a5 web
- https://github.com/nvn1729/advisories/blob/master/cve-2020-29128.md web
- https://github.com/petl-developers/petl package
- https://github.com/petl-developers/petl/compare/v1.6.7...v1.6.8 web
- https://github.com/petl-developers/petl/releases/tag/v1.6.8 web
- https://github.com/pypa/advisory-database/tree/main/vulns/petl/PYSEC-2020-75.yaml web
- https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing web
- https://petl.readthedocs.io/en/stable/changes.html web