CVE-2019-3575: Sqla yaml fixtures Sqla-yaml-fixtures Is Vulnerable To Code Vulnerability

HIGH
Advisory Identifier: GHSA-2x54-j4m3-r6wx
CVSS 7.8
CWE-94
Published
Advisory Summary

CVE-2019-3575 is a HIGH (CVSS 7.8) sqla-yaml-fixtures is vulnerable to code vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Sqla yaml fixtures libraries in the PyPI ecosystem. The issue involves sqla-yaml-fixtures is vulnerable to code injection. Remediation is available in the latest vendor maintenance releases.

CVE-2019-3575 at a Glance

CVE Identifier CVE-2019-3575
GHSA Identifier GHSA-2x54-j4m3-r6wx
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-94: Improper Control of Generation of Code ('Code Injection')
Affected Product Sqla yaml fixtures
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

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

How to Fix CVE-2019-3575

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

sqla-yaml-fixtures fixed: Latest secure release
pip install sqla-yaml-fixtures>=Latest secure release
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 sqla-yaml-fixtures

How to Check if You Are Affected

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

pip show sqla-yaml-fixtures

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

Note: The pip show sqla-yaml-fixtures command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Sqla yaml fixtures, 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

Sqla_yaml_fixtures versions up to 0.9.1 allows local users to execute arbitrary python code via the fixture_text argument in `sqla_yaml_fixtures.load`.

CVE-2019-3575 Affected Sqla yaml fixtures Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
sqla-yaml-fixtures
PyPI
≤ 0.9.1

References

Frequently Asked Questions

What is CVE-2019-3575?
CVE-2019-3575 is a security vulnerability in Sqla yaml fixtures involving sqla-yaml-fixtures is vulnerable to Code Injection under CWE-94: Improper Control of Generation of Code ('Code Injection').
Which Sqla yaml fixtures versions are affected?
Affected versions include releases prior to current release patches across affected packages: sqla-yaml-fixtures.
What version fixes CVE-2019-3575?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is sqla-yaml-fixtures affected?
Yes, sqla-yaml-fixtures is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2019-3575?
CVE-2019-3575 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2019-3575?
CVE-2019-3575 is classified under CWE-94: Improper Control of Generation of Code ('Code Injection') (The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.).
How can I check PyPI dependencies for CVE-2019-3575?
Run the dependency tree command: 'pip show sqla-yaml-fixtures'. 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-2x54-j4m3-r6wx",
  "modified" : "2024-10-28T14:23:42Z",
  "published" : "2019-01-04T17:44:48Z",
  "aliases" : [ "CVE-2019-3575" ],
  "summary" : "sqla-yaml-fixtures is vulnerable to Code Injection",
  "details" : "Sqla_yaml_fixtures versions up to 0.9.1 allows local users to execute arbitrary python code via the fixture_text argument in `sqla_yaml_fixtures.load`.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "sqla-yaml-fixtures"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "0.9.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-3575"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/schettino72/sqla_yaml_fixtures/issues/20"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-2x54-j4m3-r6wx"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/sqla-yaml-fixtures/PYSEC-2019-122.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/schettino72/sqla_yaml_fixtures"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-94" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2020-06-16T20:53:16Z",
    "nvd_published_at" : null
  }
}