swagger-api / swagger-api/swagger-codegen
CVE-2022-40153 (High) detected in woodstox-core-6.2.3.jar
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
CVE-2022-40153 - High Severity Vulnerability
Vulnerable Library - woodstox-core-6.2.3.jar
Woodstox is a high-performance XML processor that implements Stax (JSR-173), SAX2 and Stax2 APIs
Library home page: https://github.com/FasterXML/woodstox
Path to dependency file: /samples/client/petstore/java/resttemplate-withXml/build.gradle
Path to vulnerable library: /home/wss-scanner/.gradle/caches/modules-2/files-2.1/com.fasterxml.woodstox/woodstox-core/6.2.3/f70ebf235f1df4c6999b6e0d4fb7c53436fef11a/woodstox-core-6.2.3.jar
Dependency Hierarchy:
- jackson-dataformat-xml-2.11.4.jar (Root Library)
- ❌ woodstox-core-6.2.3.jar (Vulnerable Library)
Found in HEAD commit: 4b7a8d7d7384aa6a27d6309c35ade0916edae7ed
Found in base branches: 3.0.0, master
Vulnerability Details
Those using Xstream to seralize XML data may be vulnerable to Denial of Service attacks (DOS). If the parser is running on user supplied input, an attacker may supply content that causes the parser to crash by stackoverflow. This effect may support a denial of service attack.
Publish Date: 2022-09-16
URL: CVE-2022-40153
CVSS 3 Score Details (7.5)
Base Score Metrics:
- Exploitability Metrics:
- Attack Vector: Network
- Attack Complexity: Low
- Privileges Required: None
- User Interaction: None
- Scope: Unchanged
- Impact Metrics:
- Confidentiality Impact: None
- Integrity Impact: None
- Availability Impact: High
Suggested Fix
Type: Upgrade version
Release Date: 2022-09-16
Fix Resolution (com.fasterxml.woodstox:woodstox-core): 6.4.0
Direct dependency fix Resolution (com.fasterxml.jackson.dataformat:jackson-dataformat-xml): 2.12.5
- Check this box to open an automated fix PR
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with samples/client/petstore/java/resttemplate-withXml/build.gradle and inspect how jackson-dataformat-xml brings in woodstox-core 6.2.3. Apply the suggested fixed dependency resolution, then verify the Gradle dependency tree no longer contains the vulnerable version and the sample still builds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, security
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100