Vulnerabilities in pkg:pypi/json2xml
PACKAGECVE-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.
pkg:pypi/json2xml
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
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).
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.
pip install json2xml>=3.14.0
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
CVE-2022-25024 Affected Json2xml Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
json2xml
|
PyPI |
< 3.14.0
|
3.14.0
|
References
Frequently Asked Questions
What is CVE-2022-25024?
Which Json2xml versions are affected?
What version fixes CVE-2022-25024?
Is json2xml affected?
What is the CVSS score of CVE-2022-25024?
What CWE is associated with CVE-2022-25024?
How can I check PyPI dependencies for CVE-2022-25024?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}