Vulnerabilities in pkg:pypi/json2xml

PACKAGE
Advisory Identifier: GHSA-8rj5-2857-877j
Advisory Summary

CVE-2022-25024 is a HIGH (CVSS 7.5) json2xml uncaught exception vulnerability vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting Json2xml libraries in the PyPI ecosystem. The issue involves json2xml uncaught exception vulnerability. Remediation is available by upgrading affected packages to version 3.14.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:pypi/json2xml

1 Known Advisory Record(s)

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

Advisory ID CVE / NVD Severity Summary
GHSA-8rj5-2857-877j CVE-2022-25024 HIGH json2xml Uncaught Exception vulnerability

CVE-2022-25024 at a Glance

CVE Identifier CVE-2022-25024
GHSA Identifier GHSA-8rj5-2857-877j
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
Affected Product Json2xml
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

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

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

How to Fix CVE-2022-25024

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

json2xml fixed: 3.14.0
pip install json2xml>=3.14.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 json2xml

How to Check if You Are Affected

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

pip show json2xml

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

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

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. In Json2xml, 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

The json2xml package for Python allows an error in typecode decoding enabling a remote attack that can lead to an exception, causing a denial of service.

CVE-2022-25024 Affected Json2xml Versions

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

References

Frequently Asked Questions

What is CVE-2022-25024?
CVE-2022-25024 is a security vulnerability in Json2xml involving json2xml Uncaught Exception vulnerability under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which Json2xml versions are affected?
Affected versions include releases prior to 3.14.0 across affected packages: json2xml.
What version fixes CVE-2022-25024?
Upgrading to 3.14.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is json2xml affected?
Yes, json2xml is affected in releases prior to 3.14.0. Upgrade your dependency to 3.14.0 or later.
What is the CVSS score of CVE-2022-25024?
CVE-2022-25024 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2022-25024?
CVE-2022-25024 is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check PyPI dependencies for CVE-2022-25024?
Run the dependency tree command: 'pip show json2xml'. 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-8rj5-2857-877j",
  "modified" : "2024-09-27T15:46:25Z",
  "published" : "2023-08-23T13:19:55Z",
  "aliases" : [ "CVE-2022-25024" ],
  "summary" : "json2xml Uncaught Exception vulnerability",
  "details" : "The json2xml package for Python allows an error in typecode decoding enabling a remote attack that can lead to an exception, causing a denial of service.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "json2xml"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "3.14.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-25024"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vinitkumar/json2xml/issues/106"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vinitkumar/json2xml/pull/107"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vinitkumar/json2xml/pull/107/files"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vinitkumar/json2xml/commit/a9cd75b61329801b47a8fba7473bce6c85a38b9b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/json2xml/PYSEC-2023-149.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vinitkumar/json2xml"
  }, {
    "type" : "WEB",
    "url" : "https://packaging.python.org/en/latest/guides/analyzing-pypi-package-downloads"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248", "CWE-754" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-23T13:19:55Z",
    "nvd_published_at" : "2023-08-22T19:16:22Z"
  }
}