{"id":"CVE-2026-47172","state":"PUBLISHED","title":"Quest Bot: Untrusted pull request code can be built and deployed by privileged `workflow_run` deployment.","description":"Quest Bot is an opensource modern Discord Bot built for moderation, utilities and support. Prior to version 1.0.3, the repository has a privileged deploy workflow that runs after the unprivileged build workflow completes. The build workflow runs on pull requests, and the deploy workflow checks out the triggering workflow’s head_sha, builds that code into a Docker image, pushes it as latest, and triggers production deployment. If an attacker can open a pull request from a branch named main, the deploy workflow condition can treat the PR build as deployable and build the attacker-controlled commit in a privileged deployment context. This can result in malicious container deployment and production bot compromise. This issue has been patched in version 1.0.3.","publishedAt":"2026-06-11T18:28:53.321Z","updatedAt":"2026-06-11T19:38:00.196Z","severity":{"score":9.5,"label":"Critical","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["duck-organization quest-bot"],"affected":[{"vendor":"duck-organization","product":"quest-bot","versions":[{"version":"< 1.0.3","status":"affected"}]}],"references":["https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346","https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3"],"weaknesses":["CWE-829"],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/47xxx/CVE-2026-47172.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-47172","state":"PUBLISHED","datePublished":"2026-06-11T18:28:53.321Z","dateUpdated":"2026-06-11T19:38:00.196Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-18T21:25:34.497Z"},"containers":{"cna":{"title":"Quest Bot: Untrusted pull request code can be built and deployed by privileged `workflow_run` deployment.","descriptions":[{"lang":"en","value":"Quest Bot is an opensource modern Discord Bot built for moderation, utilities and support. Prior to version 1.0.3, the repository has a privileged deploy workflow that runs after the unprivileged build workflow completes. The build workflow runs on pull requests, and the deploy workflow checks out the triggering workflow’s head_sha, builds that code into a Docker image, pushes it as latest, and triggers production deployment. If an attacker can open a pull request from a branch named main, the deploy workflow condition can treat the PR build as deployable and build the attacker-controlled commit in a privileged deployment context. This can result in malicious container deployment and production bot compromise. This issue has been patched in version 1.0.3."}],"affected":[{"vendor":"duck-organization","product":"quest-bot","versions":[{"version":"< 1.0.3","status":"affected"}]}],"references":[{"url":"https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346","name":"https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3","name":"https://github.com/duck-organization/questbot/releases/tag/questbot-v1.0.3","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"HIGH","subIntegrityImpact":"HIGH","subAvailabilityImpact":"HIGH","baseScore":9.5,"baseSeverity":"CRITICAL","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-829","lang":"en","description":"CWE-829: Inclusion of Functionality from Untrusted Control Sphere","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-06-11T18:28:53.321Z"},"source":{"advisory":"GHSA-9qf3-c86c-j346","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/duck-organization/questbot/security/advisories/GHSA-9qf3-c86c-j346","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-06-11T19:37:57.133334Z","id":"CVE-2026-47172","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-06-11T19:38:00.196Z"}}]}}}