Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CVE-2022-1471 (High) detected in snakeyaml-1.29.jar #3023

Open
1 task
mend-for-github-com bot opened this issue Dec 21, 2022 · 4 comments
Open
1 task

CVE-2022-1471 (High) detected in snakeyaml-1.29.jar #3023

mend-for-github-com bot opened this issue Dec 21, 2022 · 4 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource

Comments

@mend-for-github-com
Copy link
Contributor

mend-for-github-com bot commented Dec 21, 2022

CVE-2022-1471 - High Severity Vulnerability

Vulnerable Library - snakeyaml-1.29.jar

YAML 1.1 parser and emitter for Java

Library home page: http://www.snakeyaml.org

Path to dependency file: /build.gradle

Path to vulnerable library: /tmp/containerbase/cache/.gradle/caches/modules-2/files-2.1/org.yaml/snakeyaml/1.29/6d0cdafb2010f1297e574656551d7145240f6e25/snakeyaml-1.29.jar

Dependency Hierarchy:

  • snakeyaml-1.29.jar (Vulnerable Library)

Found in base branch: main

Vulnerability Details

SnakeYaml's Constructor() class does not restrict types which can be instantiated during deserialization. Deserializing yaml content provided by an attacker can lead to remote code execution. We recommend using SnakeYaml's SafeConsturctor when parsing untrusted content to restrict deserialization. We recommend upgrading to version 2.0 and beyond.

Publish Date: 2022-12-01

URL: CVE-2022-1471

CVSS 3 Score Details (8.3)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: Low
    • Privileges Required: Low
    • User Interaction: None
    • Scope: Unchanged
  • Impact Metrics:
    • Confidentiality Impact: High
    • Integrity Impact: High
    • Availability Impact: Low

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://bitbucket.org/snakeyaml/snakeyaml/issues/561/cve-2022-1471-vulnerability-in#comment-64634374

Release Date: 2022-12-01

Fix Resolution: 2.0


  • Check this box to open an automated fix PR
@mend-for-github-com mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by WhiteSource label Dec 21, 2022
@mend-for-github-com mend-for-github-com bot changed the title CVE-2022-1471 (High) detected in snakeyaml-1.33.jar CVE-2022-1471 (High) detected in snakeyaml-1.33.jar, snakeyaml-1.29.jar Jan 3, 2023
@zelinh
Copy link
Member

zelinh commented Feb 3, 2023

Looks like 1.33 is the latest release version. Need fix from dependency end.
https://mvnrepository.com/artifact/org.yaml/snakeyaml

@owaiskazi19
Copy link
Member

Hey @zelinh! Core has fixed the CVE by upgrading to the latest version of snakeyaml i.e. 2.0. You can do the same for the repo to fix the CVE. Thanks

Copy link
Contributor Author

ℹ️ This issue was automatically re-opened by Mend because the vulnerable library in the specific branch(es) has been detected in the Mend inventory.

@mend-for-github-com mend-for-github-com bot changed the title CVE-2022-1471 (High) detected in snakeyaml-1.33.jar, snakeyaml-1.29.jar CVE-2022-1471 (High) detected in snakeyaml-1.29.jar Jan 14, 2025
@mend-for-github-com mend-for-github-com bot reopened this Jan 14, 2025
@github-actions github-actions bot added the untriaged Issues that have not yet been triaged label Jan 14, 2025
@krisfreedain
Copy link
Member

Catch All Triage - 1, 2, 3

@krisfreedain krisfreedain removed the untriaged Issues that have not yet been triaged label Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mend: dependency security vulnerability Security vulnerability detected by WhiteSource
Projects
Status: 🆕 New
Development

No branches or pull requests

4 participants