{"id":"CVE-2026-40316","aliases":["CVE-2026-40316"],"related":[],"kind":"vulnerability","state":"published","title":"OWASP BLT has RCE in Github Actions via untrusted Django model execution in workflow","summary":"OWASP BLT is a QA testing and vulnerability disclosure platform that encompasses websites, apps, git repositories, and more. Versions prior to 2.1.1 contain an RCE vulnerability in the .github/workflows/regenerate-migrations.yml workflow. The workflow uses the pull_request_target trigger to run with full GITHUB_TOKEN write permissions, copies attacker-controlled files from untrusted pull requests into the trusted runner workspace via git show, and then executes python manage.py makemigrations, which imports Django model modules including attacker-controlled website/models.py at runtime. Any module-level Python code in the attacker's models.py is executed during import, enabling arbitrary code execution in the privileged CI environment with access to GITHUB_TOKEN and repository secrets. The attack is triggerable by any external contributor who can open a pull request, provided a maintainer applies the regenerate-migrations label, potentially leading to secret exfiltration, repository compromise, and supply chain attacks. A patch for this issue is expected to be released in version 2.1.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"OWASP BLT is a QA testing and vulnerability disclosure platform that encompasses websites, apps, git repositories, and more. Versions prior to 2.1.1 contain an RCE vulnerability in the .github/workflows/regenerate-migrations.yml workflow. The workflow uses the pull_request_target trigger to run with full GITHUB_TOKEN write permissions, copies attacker-controlled files from untrusted pull requests into the trusted runner workspace via git show, and then executes python manage.py makemigrations, which imports Django model modules including attacker-controlled website/models.py at runtime. Any module-level Python code in the attacker's models.py is executed during import, enabling arbitrary code execution in the privileged CI environment with access to GITHUB_TOKEN and repository secrets. The attack is triggerable by any external contributor who can open a pull request, provided a maintainer applies the regenerate-migrations label, potentially leading to secret exfiltration, repository compromise, and supply chain attacks. A patch for this issue is expected to be released in version 2.1.1.","source":"cvelist"},{"lang":"es","text":"OWASP BLT es una plataforma de pruebas de QA y divulgación de vulnerabilidades que abarca sitios web, aplicaciones, repositorios git y más. Las versiones anteriores a la 2.1.1 contienen una vulnerabilidad RCE en el flujo de trabajo .github/workflows/regenerate-migrations.yml. El flujo de trabajo utiliza el disparador pull_request_target para ejecutarse con permisos de escritura completos de GITHUB_TOKEN, copia archivos controlados por el atacante de solicitudes de extracción no confiables al espacio de trabajo del ejecutor confiable a través de git show, y luego ejecuta python manage.py makemigrations, que importa módulos de modelo de Django incluyendo website/models.py controlado por el atacante en tiempo de ejecución. Cualquier código Python a nivel de módulo en el models.py del atacante se ejecuta durante la importación, lo que permite la ejecución de código arbitrario en el entorno CI privilegiado con acceso a GITHUB_TOKEN y a los secretos del repositorio. El ataque puede ser activado por cualquier colaborador externo que pueda abrir una solicitud de extracción, siempre que un mantenedor aplique la etiqueta regenerate-migrations, lo que podría llevar a la exfiltración de secretos, el compromiso del repositorio y ataques a la cadena de suministro. Se espera que un parche para este problema sea lanzado en la versión 2.1.1.","source":"nvd"}],"published":"2026-04-15T22:49:18.636Z","modified":"2026-10-26T22:10:00.163Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-94","CWE-95"],"affected":[{"ranges":[{"version":"<= 2.1","status":"affected"}],"vendor":"OWASP-BLT","product":"BLT","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.1"}],"vendor":"owasp","product":"owasp_blt","cpe":"cpe:2.3:a:owasp:owasp_blt:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/OWASP-BLT/BLT/security/advisories/GHSA-wxm3-64fx-cmx9","tags":["exploit","vendor-advisory","x-refsource-confirm"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2026-04-16T14:17:42.666Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40316","url":"https://www.cve.org/CVERecord?id=CVE-2026-40316","licence":"CVE Terms of Use","modified":"2026-04-16T14:18:12.374Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40316","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40316","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:18.882Z","epss":{"score":0.00427,"percentile":0.38904,"date":"2026-12-02T12:00:21.000Z"}}