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

PyYAML-3.13.tar.gz: 3 vulnerabilities (highest severity is: 9.8) reachable #2

Open
dev-mend-for-github-com bot opened this issue Oct 27, 2024 · 0 comments
Labels
Mend: dependency security vulnerability Security vulnerability detected by Mend

Comments

@dev-mend-for-github-com
Copy link

dev-mend-for-github-com bot commented Oct 27, 2024

Vulnerable Library - PyYAML-3.13.tar.gz

YAML parser and emitter for Python

Library home page: https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Path to dependency file: /requirements.txt

Path to vulnerable library: /tmp/ws-ua_20241205192444_NEOWPL/python_IHKSVC/202412051924441/env/lib/python3.7/site-packages/PyYAML-3.13.dist-info

Found in HEAD commit: 5e380d5913a9bd669480cbd6f5a5b0a48e8c14c5

Vulnerabilities

CVE Severity CVSS Dependency Type Fixed in (PyYAML version) Remediation Possible** Reachability
CVE-2020-1747 Critical 9.8 PyYAML-3.13.tar.gz Direct pyyaml - 5.3.1

Reachable

CVE-2020-14343 Critical 9.8 PyYAML-3.13.tar.gz Direct PyYAML - 5.4

Reachable

CVE-2017-18342 Critical 9.8 PyYAML-3.13.tar.gz Direct 5.1

Reachable

**In some cases, Remediation PR cannot be created automatically for a vulnerability despite the availability of remediation

Details

CVE-2020-1747

Vulnerable Library - PyYAML-3.13.tar.gz

YAML parser and emitter for Python

Library home page: https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Path to dependency file: /requirements.txt

Path to vulnerable library: /tmp/ws-ua_20241205192444_NEOWPL/python_IHKSVC/202412051924441/env/lib/python3.7/site-packages/PyYAML-3.13.dist-info

Dependency Hierarchy:

  • PyYAML-3.13.tar.gz (Vulnerable Library)

Found in HEAD commit: 5e380d5913a9bd669480cbd6f5a5b0a48e8c14c5

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

dvpwa/run.py (Application)
  -> PyYAML-3.13/yaml/__init__.py (Extension)
   -> ❌ PyYAML-3.13/yaml/error.py (Vulnerable Component)

Vulnerability Details

A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.

Publish Date: 2020-03-24

URL: CVE-2020-1747

CVSS 3 Score Details (9.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: GHSA-6757-jp84-gxfx

Release Date: 2020-03-24

Fix Resolution: pyyaml - 5.3.1

In order to enable automatic remediation, please create workflow rules

CVE-2020-14343

Vulnerable Library - PyYAML-3.13.tar.gz

YAML parser and emitter for Python

Library home page: https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Path to dependency file: /requirements.txt

Path to vulnerable library: /tmp/ws-ua_20241205192444_NEOWPL/python_IHKSVC/202412051924441/env/lib/python3.7/site-packages/PyYAML-3.13.dist-info

Dependency Hierarchy:

  • PyYAML-3.13.tar.gz (Vulnerable Library)

Found in HEAD commit: 5e380d5913a9bd669480cbd6f5a5b0a48e8c14c5

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

dvpwa/run.py (Application)
  -> PyYAML-3.13/yaml/__init__.py (Extension)
   -> ❌ PyYAML-3.13/yaml/nodes.py (Vulnerable Component)

Vulnerability Details

A vulnerability was discovered in the PyYAML library in versions before 5.4, where it is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.

Publish Date: 2021-02-09

URL: CVE-2020-14343

CVSS 3 Score Details (9.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-14343

Release Date: 2021-02-09

Fix Resolution: PyYAML - 5.4

In order to enable automatic remediation, please create workflow rules

CVE-2017-18342

Vulnerable Library - PyYAML-3.13.tar.gz

YAML parser and emitter for Python

Library home page: https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz

Path to dependency file: /requirements.txt

Path to vulnerable library: /tmp/ws-ua_20241205192444_NEOWPL/python_IHKSVC/202412051924441/env/lib/python3.7/site-packages/PyYAML-3.13.dist-info

Dependency Hierarchy:

  • PyYAML-3.13.tar.gz (Vulnerable Library)

Found in HEAD commit: 5e380d5913a9bd669480cbd6f5a5b0a48e8c14c5

Found in base branch: master

Reachability Analysis

This vulnerability is potentially reachable

dvpwa/run.py (Application)
  -> PyYAML-3.13/yaml/__init__.py (Extension)
   -> PyYAML-3.13/yaml/cyaml.py (Extension)
    -> ❌ PyYAML-3.13/yaml/constructor.py (Vulnerable Component)

Vulnerability Details

In PyYAML before 5.1, the yaml.load() API could execute arbitrary code if used with untrusted data. The load() function has been deprecated in version 5.1 and the 'UnsafeLoader' has been introduced for backward compatibility with the function.

Publish Date: 2018-06-27

URL: CVE-2017-18342

CVSS 3 Score Details (9.8)

Base Score Metrics:

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

For more information on CVSS3 Scores, click here.

Suggested Fix

Type: Upgrade version

Origin: https://nvd.nist.gov/vuln/detail/CVE-2017-18342

Release Date: 2018-06-27

Fix Resolution: 5.1

In order to enable automatic remediation, please create workflow rules


In order to enable automatic remediation for this issue, please create workflow rules

@dev-mend-for-github-com dev-mend-for-github-com bot added the Mend: dependency security vulnerability Security vulnerability detected by Mend label Oct 27, 2024
@dev-mend-for-github-com dev-mend-for-github-com bot changed the title PyYAML-3.13.tar.gz: 3 vulnerabilities (highest severity is: 9.8) PyYAML-3.13.tar.gz: 3 vulnerabilities (highest severity is: 9.8) reachable Oct 27, 2024
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 Mend
Projects
None yet
Development

No branches or pull requests

0 participants