GHSA-f5gc-p5m3-v347
Vulnerability from github
Published
2020-12-02 18:28
Modified
2024-10-09 20:55
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/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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "petl"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.6.8"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2020-29128"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-611"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-12-02T02:29:45Z",
    "nvd_published_at": null,
    "severity": "HIGH"
  },
  "details": "### Impact\nInformation Disclosure\n\n### Summary\n\n[petl](https://github.com/petl-developers/petl) is a Python library that provides functions for extraction, transformation, and loading (ETL) of data.\n\npetl before 1.68, in some configurations, allows resolution of entities in XML input.\n\nAn 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.\n\n### Affected Applications\n\nApplications that:\n\n- accept attacker-supplied XML input that is processed using petl \u003c 1.68\n- return the response generated by petl back to the attacker\n- configure lxml as the underlying XML processing library used by petl\n- have read privileges in filesystem files with sensitive information\n\n### Mitigation\nUpdate to petl \u003e= 1.68\n\n### Workarounds\n\n- Assure there is no user/external access to the application using [petl](https://github.com/petl-developers/petl)\n- Assure your application is not using the function [fromxml()](https://petl.readthedocs.io/en/stable/io.html#petl.io.xml.fromxml)\n\n### References\n- https://github.com/nvn1729/advisories/blob/master/cve-2020-29128.md\n- https://github.com/petl-developers/petl/pull/527\n- https://github.com/petl-developers/petl/releases/tag/v1.6.8\n- https://petl.readthedocs.io/en/stable/changes.html\n- https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Add a comment in the Github [issue](https://github.com/petl-developers/petl/pull/527)\n\nThaks to Naveen Sunkavally.",
  "id": "GHSA-f5gc-p5m3-v347",
  "modified": "2024-10-09T20:55:04Z",
  "published": "2020-12-02T18:28:30Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/security/advisories/GHSA-f5gc-p5m3-v347"
    },
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/issues/526"
    },
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/pull/527"
    },
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/commit/07420ef8463cc387aea84e2d6241cf556574e2a5"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nvn1729/advisories/blob/master/cve-2020-29128.md"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/petl-developers/petl"
    },
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/compare/v1.6.7...v1.6.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/petl-developers/petl/releases/tag/v1.6.8"
    },
    {
      "type": "WEB",
      "url": "https://github.com/pypa/advisory-database/tree/main/vulns/petl/PYSEC-2020-75.yaml"
    },
    {
      "type": "WEB",
      "url": "https://owasp.org/www-community/vulnerabilities/XML_External_Entity_(XXE)_Processing"
    },
    {
      "type": "WEB",
      "url": "https://petl.readthedocs.io/en/stable/changes.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "XXE in petl"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…