GHSA-f5gc-p5m3-v347

Suggest an improvement
Source
https://github.com/advisories/GHSA-f5gc-p5m3-v347
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/12/GHSA-f5gc-p5m3-v347/GHSA-f5gc-p5m3-v347.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-f5gc-p5m3-v347
Aliases
Published
2020-12-02T18:28:30Z
Modified
2024-10-09T21:08:33.430476Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 8.9 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P CVSS Calculator
Summary
XXE in petl
Details

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
  • return the response generated by petl back to the attacker
  • configure lxml as the underlying XML processing library used by petl
  • have read privileges in filesystem files with sensitive information

Mitigation

Update to 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/XMLExternalEntity(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.

References

Affected packages

PyPI / petl

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.8

Affected versions

0.*

0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
0.10
0.10.1
0.10.2
0.11
0.11.1
0.12
0.13
0.13.1
0.14
0.15
0.16
0.16.1
0.16.2
0.17
0.17.1
0.18
0.18.1
0.19
0.20
0.21
0.21.2
0.22
0.22.1
0.23
0.24
0.24.1
0.24.2
0.24.3
0.25
0.25.1
0.25.2
0.25.3
0.26

1.*

1.0.0-alpha1
1.0.0a2
1.0.0a3
1.0.0b1
1.0.0b2
1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7
1.0.8
1.0.9
1.0.10
1.0.11
1.1.0
1.1.1
1.2.0
1.3.0rc3
1.3.0
1.4.0
1.5.0
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.6.7