amaybaum-local / dvpwa

Damn Vulnerable Python Web App
MIT License
0 stars 0 forks source link

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

Open mend-local-app[bot] opened 2 weeks ago

mend-local-app[bot] commented 2 weeks ago
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: /private/var/folders/y1/nn9dz5v14q51wqskf74gr9w40000gr/T/ws-ua_20241016164736_LVOWZK/python_GYLRII/202410161647361/env/lib/python3.9/site-packages/PyYAML-3.13.dist-info

Found in HEAD commit: 09bc0f8a17090dbee6aea6ae77fd0bc7a492f6a0

Vulnerabilities

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

Reachable

CVE-2017-18342 High 9.8 PyYAML-3.13.tar.gz Direct PyYAML - 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: /private/var/folders/y1/nn9dz5v14q51wqskf74gr9w40000gr/T/ws-ua_20241016164736_LVOWZK/python_GYLRII/202410161647361/env/lib/python3.9/site-packages/PyYAML-3.13.dist-info

Dependency Hierarchy: - :x: **PyYAML-3.13.tar.gz** (Vulnerable Library)

Found in HEAD commit: 09bc0f8a17090dbee6aea6ae77fd0bc7a492f6a0

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` dvpwa/../../../../../../../private/var/folders/y1/nn9dz5v14q51wqskf74gr9w40000gr/T/ws-scm/dvpwa/run.py (Application) -> PyYAML-3.13/yaml/__init__.py (Extension) -> ❌ PyYAML-3.13/yaml/events.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: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1747

Release Date: 2020-03-24

Fix Resolution: 5.3.1

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: /private/var/folders/y1/nn9dz5v14q51wqskf74gr9w40000gr/T/ws-ua_20241016164736_LVOWZK/python_GYLRII/202410161647361/env/lib/python3.9/site-packages/PyYAML-3.13.dist-info

Dependency Hierarchy: - :x: **PyYAML-3.13.tar.gz** (Vulnerable Library)

Found in HEAD commit: 09bc0f8a17090dbee6aea6ae77fd0bc7a492f6a0

Found in base branch: master

### Reachability Analysis This vulnerability is potentially reachable ``` dvpwa/../../../../../../../private/var/folders/y1/nn9dz5v14q51wqskf74gr9w40000gr/T/ws-scm/dvpwa/run.py (Application) -> ❌ PyYAML-3.13/yaml/__init__.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: PyYAML - 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

mend-local-app[bot] commented 1 week ago

: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.

mend-local-app[bot] commented 1 week ago

: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.