Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 74%

CVE-2026-40316: CWE-94: Improper Control of Generation of Code ('Code Injection') in OWASP-BLT BLT

0
High
VulnerabilityCVE-2026-40316cvecve-2026-40316cwe-94cwe-95
Published: Wed Apr 15 2026 (04/15/2026, 22:49:18 UTC)
Source: CVE Database V5
Vendor/Project: OWASP-BLT
Product: BLT

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.

CVSS v3.1

Score 8.8high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/15/2026, 23:16:53 UTC

Technical Analysis

OWASP BLT prior to version 2.1.1 contains an RCE vulnerability in its GitHub Actions workflow regenerate-migrations.yml. The workflow uses the pull_request_target trigger, granting full write permissions via GITHUB_TOKEN. It copies files from untrusted pull requests into the trusted runner environment and executes 'python manage.py makemigrations', which imports Django model modules including attacker-controlled code in website/models.py. This results in execution of arbitrary Python code within the privileged CI environment, enabling attackers to access repository secrets and potentially compromise the supply chain. Exploitation requires an external contributor to open a pull request and a maintainer to apply the regenerate-migrations label. No official patch or remediation is confirmed yet, but a fix is expected in version 2.1.1.

Potential Impact

Successful exploitation allows remote code execution in the CI environment with full write permissions via GITHUB_TOKEN, enabling attackers to exfiltrate secrets, compromise the repository, and conduct supply chain attacks. The vulnerability affects confidentiality, integrity, and availability of the affected system and associated repositories.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released in version 2.1.1, restrict the ability to apply the regenerate-migrations label to trusted maintainers only and review pull requests carefully before applying this label. Avoid running workflows with pull_request_target triggers that execute untrusted code. Monitor vendor channels for the official patch release.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-10T21:41:54.505Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 69e018e182d89c981fa55552

Added to database: 4/15/2026, 11:01:53 PM

Last enriched: 4/15/2026, 11:16:53 PM

Last updated: 5/30/2026, 9:23:47 PM

Views: 121

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses