Vulnerabilities in pkg:pypi/cvrf2csaf

PACKAGE
Advisory Identifier: GHSA-m8gq-83gh-v42v
Advisory Summary

CVE-2022-27193 is a MODERATE (CVSS 6.1) xml external entities vulnerability vulnerability (CWE-552: Files or Directories Accessible to External Parties) affecting Cvrf2csaf libraries in the PyPI ecosystem. The issue involves xml external entities vulnerability in cvrf-csaf-converter. Remediation is available by upgrading affected packages to version 1.0.0rc2.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/cvrf2csaf

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-m8gq-83gh-v42v CVE-2022-27193 MODERATE XML External Entities Vulnerability in CVRF-CSAF-Converter

CVE-2022-27193 at a Glance

CVE Identifier CVE-2022-27193
GHSA Identifier GHSA-m8gq-83gh-v42v
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-552: Files or Directories Accessible to External Parties
Affected Product Cvrf2csaf
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 6.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:L).

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 Low (A:L)

How to Fix CVE-2022-27193

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

cvrf2csaf fixed: 1.0.0rc2
pip install cvrf2csaf>=1.0.0rc2
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 cvrf2csaf

How to Check if You Are Affected

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

pip show cvrf2csaf

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-552: Files or Directories Accessible to External Parties, where the product makes files or directories accessible to unauthorized actors, even though they should not be. In Cvrf2csaf, 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

CVRF-CSAF-Converter before 1.0.0-rc2 resolves XML External Entities (XXE). This leads to the inclusion of arbitrary (local) file content into the generated output document. An attacker can exploit this to disclose information from the system running the converter.

CVE-2022-27193 Affected Cvrf2csaf Versions

1 component(s)
Fixed Versions:
1.0.0rc2
Product / Package Ecosystem Affected Versions Fixed Version
cvrf2csaf
PyPI
< 1.0.0rc2
1.0.0rc2

References

Frequently Asked Questions

What is CVE-2022-27193?
CVE-2022-27193 is a security vulnerability in Cvrf2csaf involving XML External Entities Vulnerability in CVRF-CSAF-Converter under CWE-552: Files or Directories Accessible to External Parties.
Which Cvrf2csaf versions are affected?
Affected versions include releases prior to 1.0.0rc2 across affected packages: cvrf2csaf.
What version fixes CVE-2022-27193?
Upgrading to 1.0.0rc2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is cvrf2csaf affected?
Yes, cvrf2csaf is affected in releases prior to 1.0.0rc2. Upgrade your dependency to 1.0.0rc2 or later.
What is the CVSS score of CVE-2022-27193?
CVE-2022-27193 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L.
What CWE is associated with CVE-2022-27193?
CVE-2022-27193 is classified under CWE-552: Files or Directories Accessible to External Parties (The product makes files or directories accessible to unauthorized actors, even though they should not be.).
How can I check PyPI dependencies for CVE-2022-27193?
Run the dependency tree command: 'pip show cvrf2csaf'. 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-m8gq-83gh-v42v",
  "modified" : "2022-03-18T23:52:30Z",
  "published" : "2022-03-16T00:00:49Z",
  "aliases" : [ "CVE-2022-27193" ],
  "summary" : "XML External Entities Vulnerability in CVRF-CSAF-Converter",
  "details" : "CVRF-CSAF-Converter before 1.0.0-rc2 resolves XML External Entities (XXE). This leads to the inclusion of arbitrary (local) file content into the generated output document. An attacker can exploit this to disclose information from the system running the converter.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "cvrf2csaf"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.0rc2"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.0.0rc1"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-27193"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/csaf-tools/CVRF-CSAF-Converter"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/csaf-tools/CVRF-CSAF-Converter/releases/tag/1.0.0-rc2"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-552", "CWE-611" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-03-18T23:52:30Z",
    "nvd_published_at" : "2022-03-15T05:15:00Z"
  }
}