{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-39523","id":"CVE-2023-39523","title":"ScanCode.io command injection in docker image fetch process","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.\n\nIn the function `scanpipe/pipes/fetch.py:fetch_docker_image` the parameter `docker_reference` is user con","descriptionLong":"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.\n\nIn 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.\n\nVersion 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.","published":"2023-08-07T20:55:46.855Z","updated":"2026-10-28T02:30:30.189817992Z","reserved":"2023-08-03T16:27:36.262Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","rating":"medium","source":"OSV"},{"version":"3.1","score":6.8,"vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:H","rating":"medium","source":"GitHub"}],"rating":"medium","products":["nexB scancode.io"],"affectedProducts":[{"vendor":"nexB","product":"scancode.io","defaultStatus":null,"versions":[{"version":"< 32.5.1","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"scancodeio","purl":"pkg:pypi/scancodeio","ranges":["<32.5.1"],"fixed":["32.5.1"],"advisory":"GHSA-2ggp-cmvm-f62f"}],"cwes":["CWE-77"],"aliases":["GHSA-2ggp-cmvm-f62f","PYSEC-2026-1904"],"references":[{"url":"https://github.com/nexB/scancode.io/security/advisories/GHSA-2ggp-cmvm-f62f","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Patch","Vendor Advisory","advisory","web"]},{"url":"https://github.com/nexB/scancode.io/commit/07ec0de1964b14bf085a1c9a27ece2b61ab6105c","tags":["x_refsource_MISC","x_transferred","Patch","fix","web"]},{"url":"https://github.com/nexB/scancode.io/blob/main/scanpipe/pipes/fetch.py#L185","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/nexB/scancode.io/releases/tag/v32.5.1","tags":["x_refsource_MISC","x_transferred","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39523.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39523","tags":["advisory"]},{"url":"https://github.com/nexB/scancode.io","tags":["package"]},{"url":"https://pypi.org/project/scancodeio","tags":["package"]},{"url":"https://github.com/advisories/GHSA-2ggp-cmvm-f62f","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.02922,"epssPercentile":0.87371,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-39523","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39523","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-39523","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-2ggp-cmvm-f62f","ok":true,"note":"GHSA-2ggp-cmvm-f62f"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-39523","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}