Vulnerabilities in pkg:pypi/pyamf

PACKAGE
Advisory Identifier: GHSA-m7m4-4vm8-55wg
Advisory Summary

CVE-2015-8549 is a HIGH (CVSS 7.1) pyamf vulnerable to xml external vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Pyamf libraries in the PyPI ecosystem. The issue involves pyamf vulnerable to xml external entity (xxe). Remediation is available by upgrading affected packages to version 0.8.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/pyamf

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:pypi/pyamf. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-m7m4-4vm8-55wg CVE-2015-8549 HIGH PyAMF vulnerable to XML external entity (XXE)

CVE-2015-8549 at a Glance

CVE Identifier CVE-2015-8549
GHSA Identifier GHSA-m7m4-4vm8-55wg
Severity HIGH
CVSS v3.1 Base Score 7.1
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Pyamf
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H).

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2015-8549

To remediate this vulnerability, upgrade all affected Pyamf dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pyamf fixed: 0.8.0
pip install pyamf>=0.8.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show pyamf

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2015-8549, inspect your installed packages using pip:

pip show pyamf

Analyze the terminal output to locate any version of Pyamf in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.0), your application is affected.

Note: The pip show pyamf command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Pyamf, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

PyAMF provides Action Message Format (AMF) support for Python that is compatible with the Adobe Flash Player. It includes integration with Python web frameworks like Django, Pylons, Twisted, SQLAlchemy, web2py and more. XML external entity (XXE) vulnerability in PyAMF before 0.8.0 allows remote attackers to cause a denial of service or read arbitrary files via a crafted Action Message Format (AMF) payload.

CVE-2015-8549 Affected Pyamf Versions

1 component(s)
Fixed Versions:
0.8.0
Product / Package Ecosystem Affected Versions Fixed Version
pyamf
PyPI
< 0.8.0
0.8.0

References

Frequently Asked Questions

What is CVE-2015-8549?
CVE-2015-8549 is a security vulnerability in Pyamf involving PyAMF vulnerable to XML external entity (XXE) under CWE-611: Improper Restriction of XML External Entity Reference.
Which Pyamf versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: pyamf.
What version fixes CVE-2015-8549?
Upgrading to 0.8.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pyamf affected?
Yes, pyamf is affected in releases prior to 0.8.0. Upgrade your dependency to 0.8.0 or later.
What is the CVSS score of CVE-2015-8549?
CVE-2015-8549 has a CVSS v3.1 base score of 7.1 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H.
What CWE is associated with CVE-2015-8549?
CVE-2015-8549 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check PyPI dependencies for CVE-2015-8549?
Run the dependency tree command: 'pip show pyamf'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m7m4-4vm8-55wg",
  "modified" : "2024-10-21T20:11:40Z",
  "published" : "2022-05-24T17:06:13Z",
  "aliases" : [ "CVE-2015-8549" ],
  "summary" : "PyAMF vulnerable to XML external entity (XXE)",
  "details" : "PyAMF provides Action Message Format (AMF) support for Python that is compatible with the Adobe Flash Player. It includes integration with Python web frameworks like Django, Pylons, Twisted, SQLAlchemy, web2py and more. XML external entity (XXE) vulnerability in PyAMF before 0.8.0 allows remote attackers to cause a denial of service or read arbitrary files via a crafted Action Message Format (AMF) payload.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "pyamf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.8.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-8549"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hydralabs/pyamf/pull/58"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-m7m4-4vm8-55wg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/hydralabs/pyamf"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/hydralabs/pyamf/releases/tag/v0.8.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyamf/PYSEC-2020-339.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/pyamf"
  }, {
    "type" : "WEB",
    "url" : "http://www.ocert.org/advisories/ocert-2015-011.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-31T21:54:25Z",
    "nvd_published_at" : "2020-01-15T15:15:00Z"
  }
}