# CVE-2026-40316: OWASP BLT has RCE in Github Actions via untrusted Django model execution in workflow

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 38% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-15T22:49:18.636Z
- Modified: 2026-10-26T22:10:00.163Z
- Weaknesses: CWE-94, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- OWASP-BLT BLT: <= 2.1
- owasp owasp_blt: up to 2.1

## References

- <https://github.com/OWASP-BLT/BLT/security/advisories/GHSA-wxm3-64fx-cmx9> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-40316](https://www.cve.org/CVERecord?id=CVE-2026-40316), CVE Terms of Use, modified 2026-04-16
- NVD: [CVE-2026-40316](https://nvd.nist.gov/vuln/detail/CVE-2026-40316), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-40316 · Whole record: https://cve.day/CVE-2026-40316.json · Rebuilt by cve.day 2026-11-25T22:59:18.882Z
