CVE-2023-39523
ScanCode.io Docker Command Injection Vulnerability
Description
ScanCode.io is a server to script and automate software composition analysis with ScanPipe pipelines. Prior to version 32.5.1, the software has a possible command injection vulnerability in the docker fetch process as it allows to append malicious commands in the `docker_reference` parameter. In the function `scanpipe/pipes/fetch.py:fetch_docker_image` the parameter `docker_reference` is user controllable. The `docker_reference` variable is then passed to the vulnerable function `get_docker_image_platform`. However, the `get_docker_image_plaform` function constructs a shell command with the passed `docker_reference`. The `pipes.run_command` then executes the shell command without any prior sanitization, making the function vulnerable to command injections. A malicious user who is able to create or add inputs to a project can inject commands. Although the command injections are blind and the user will not receive direct feedback without logs, it is still possible to cause damage to the server/container. The vulnerability appears for example if a malicious user adds a semicolon after the input of `docker://;`, it would allow appending malicious commands. Version 32.5.1 contains a patch for this issue. The `docker_reference` input should be sanitized to avoid command injections and, as a workaround, one may avoid creating commands with user controlled input directly.
INFO
Published Date :
Aug. 7, 2023, 9:15 p.m.
Last Modified :
Nov. 21, 2024, 8:15 a.m.
Source :
[email protected]
Remotely Exploitable :
Yes !
Impact Score :
5.9
Exploitability Score :
2.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2023-39523
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2023-39523
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2023-39523
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://github.com/nexB/scancode.io/blob/main/scanpipe/pipes/fetch.py#L185 Added Reference https://github.com/nexB/scancode.io/commit/07ec0de1964b14bf085a1c9a27ece2b61ab6105c Added Reference https://github.com/nexB/scancode.io/releases/tag/v32.5.1 Added Reference https://github.com/nexB/scancode.io/security/advisories/GHSA-2ggp-cmvm-f62f -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Aug. 11, 2023
Action Type Old Value New Value Added CVSS V3.1 NIST AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://github.com/nexB/scancode.io/blob/main/scanpipe/pipes/fetch.py#L185 No Types Assigned https://github.com/nexB/scancode.io/blob/main/scanpipe/pipes/fetch.py#L185 Product Changed Reference Type https://github.com/nexB/scancode.io/commit/07ec0de1964b14bf085a1c9a27ece2b61ab6105c No Types Assigned https://github.com/nexB/scancode.io/commit/07ec0de1964b14bf085a1c9a27ece2b61ab6105c Patch Changed Reference Type https://github.com/nexB/scancode.io/releases/tag/v32.5.1 No Types Assigned https://github.com/nexB/scancode.io/releases/tag/v32.5.1 Release Notes Changed Reference Type https://github.com/nexB/scancode.io/security/advisories/GHSA-2ggp-cmvm-f62f No Types Assigned https://github.com/nexB/scancode.io/security/advisories/GHSA-2ggp-cmvm-f62f Exploit, Patch, Vendor Advisory Added CWE NIST CWE-77 Added CPE Configuration OR *cpe:2.3:a:nexb:scancode.io:*:*:*:*:*:*:*:* versions up to (excluding) 32.5.1
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2023-39523
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2023-39523
weaknesses.
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
1.68 }} -11.45%
score
0.81113
percentile