Lucene search

K
githubGitHub Advisory DatabaseGHSA-F5GC-P5M3-V347
HistoryDec 02, 2020 - 6:28 p.m.

XXE in petl

2020-12-0218:28:30
CWE-611
GitHub Advisory Database
github.com
34

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

0.007 Low

EPSS

Percentile

80.2%

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

For more information

If you have any questions or comments about this advisory:

  • Add a comment in the Github issue

Thaks to Naveen Sunkavally.

Affected configurations

Vulners
Node
petl_projectpetlRange<1.6.8
CPENameOperatorVersion
petllt1.6.8

6.8 Medium

CVSS2

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

0.007 Low

EPSS

Percentile

80.2%

Related for GHSA-F5GC-P5M3-V347