Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2023-39523

MEDIUM 6.8EPSS 91%

ScanCode.io command injection in docker image fetch process

Also known as GHSA-2ggp-cmvm-f62f, PYSEC-2026-1904

Mitigation

  • Upgrade scancodeio to 32.5.1 or later.

Who should check

  • Projects that depend on PyPI package scancodeio (< 32.5.1)
  • Anyone running nexB scancode.io < 32.5.1

Vulnerability facts

Affected
scancodeio < 32.5.1
Fixed in
32.5.1
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.8 (v3.1, CNA)CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Adjacent network
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: High
EPSS
3.82% chance of exploitation in 30 days (percentile 91, 2026-11-26)
CWE
CWE-77
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI scancodeio< 32.5.132.5.1osv
nexB scancode.io< 32.5.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2023-39523. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-39523.md
Affected: scancodeio < 32.5.1
Fixed in: 32.5.1

Steps:
1. Search this machine and project for scancodeio (PyPI), nexB scancode.io: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2023-39523 being exploited?

There is no confirmed exploitation: CVE-2023-39523 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 3.82% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2023-39523?

Medium: CVSS 6.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2023-39523?

scancodeio < 32.5.1.

Is there a fix for CVE-2023-39523?

Yes. Fixed in 32.5.1. Upgrade scancodeio to 32.5.1 or later.

How do I check if I'm affected by CVE-2023-39523?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors