PYSEC-2017-78

Vulnerability from pysec - Published: 2017-11-10 09:29 - Updated: 2021-08-25 04:29
VLAI?
Details

An exploitable vulnerability exists in the YAML parsing functionality in config.py in Confire 0.2.0. Due to the user-specific configuration being loaded from "~/.confire.yaml" using the yaml.load function, a YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.

Impacted products
Name purl
confire pkg:pypi/confire

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "confire",
        "purl": "pkg:pypi/confire"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8cc86a5ec2327e070f1d576d61bbaadf861597ea"
            }
          ],
          "repo": "https://github.com/bbengfort/confire",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0.1.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.1.0",
        "0.1.1",
        "0.2.0"
      ]
    }
  ],
  "aliases": [
    "CVE-2017-16763",
    "GHSA-m85c-9mf8-m2m6"
  ],
  "details": "An exploitable vulnerability exists in the YAML parsing functionality in config.py in Confire 0.2.0. Due to the user-specific configuration being loaded from \"~/.confire.yaml\" using the yaml.load function, a YAML parser can execute arbitrary Python commands resulting in command execution. An attacker can insert Python into loaded YAML to trigger this vulnerability.",
  "id": "PYSEC-2017-78",
  "modified": "2021-08-25T04:29:57.582065Z",
  "published": "2017-11-10T09:29:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/bbengfort/confire/issues/24"
    },
    {
      "type": "ARTICLE",
      "url": "https://joel-malwarebenchmark.github.io/blog/2017/11/12/cve-2017-16763-configure-loaded-through-confire/"
    },
    {
      "type": "FIX",
      "url": "https://github.com/bbengfort/confire/commit/8cc86a5ec2327e070f1d576d61bbaadf861597ea"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-m85c-9mf8-m2m6"
    }
  ]
}


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 observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…