opensearch-build icon indicating copy to clipboard operation
opensearch-build copied to clipboard

CVE-2022-41854 (Medium) detected in snakeyaml-1.29.jar

Open mend-for-github-com[bot] opened this issue 3 years ago • 4 comments

CVE-2022-41854 - Medium 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:

  • :x: snakeyaml-1.29.jar (Vulnerable Library)

Found in base branch: main

Vulnerability Details

Those using Snakeyaml to parse untrusted YAML files 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 stack overflow. This effect may support a denial of service attack.

Publish Date: 2022-11-11

URL: CVE-2022-41854

CVSS 3 Score Details (5.8)

Base Score Metrics:

  • Exploitability Metrics:
    • Attack Vector: Network
    • Attack Complexity: High
    • Privileges Required: Low
    • User Interaction: Required
    • Scope: Changed
  • Impact Metrics:
    • Confidentiality Impact: None
    • Integrity Impact: None
    • Availability Impact: High
For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://bitbucket.org/snakeyaml/snakeyaml/issues/531/

Release Date: 2022-11-11

Fix Resolution: 1.32


  • [ ] Check this box to open an automated fix PR

We have already updated the snakeyaml version to 1.33(latest) which has only a single vulnerability CVE-2022-1471. Not sure if the the existing CVE-2022-41854 is reliable.

Divyaasm avatar Feb 09 '23 00:02 Divyaasm

Fixed in this PR https://github.com/opensearch-project/opensearch-build/pull/3268

rishabh6788 avatar Mar 06 '23 18:03 rishabh6788

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

@rishabh6788 fixed in 2022? Catch All Triage - 1, 2, 3

krisfreedain avatar Jan 27 '25 17:01 krisfreedain

:heavy_check_mark: This issue was automatically closed by Mend because the vulnerable library in the specific branch(es) was either marked as ignored or it is no longer part of the Mend inventory.