CVE-2026-46439: CWE-94: Improper Control of Generation of Code ('Code Injection') in oscal-compass compliance-trestle
A Server-Side Template Injection (SSTI) vulnerability exists in compliance-trestle versions prior to 3.12.2 and 4.0.3 in the `trestle author jinja` command. This vulnerability allows recursive evaluation of rendered templates, enabling an attacker to execute arbitrary commands with the privileges of the running process by injecting malicious payloads into data fields. The vulnerability does not require control over the template itself, only attacker-controlled input data rendered into a trusted template. Versions 3.12.3 and 4.0.3 address this issue.
AI Analysis
Technical Summary
The compliance-trestle tooling platform for managing compliance as code suffers from a Server-Side Template Injection (SSTI) vulnerability in the `trestle author jinja` command. The vulnerability arises due to recursive re-compilation and re-rendering of already-rendered output, which causes attacker-controlled input data fields (such as SSP documents or Lookup Tables) to become executable code. This allows an attacker to achieve arbitrary command execution with the privileges of the running process without needing control over the template itself. The issue affects versions prior to 3.12.2 and 4.0.3, with patches available in versions 3.12.3 and 4.0.3.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the system with the privileges of the compliance-trestle process. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability is exploitable via attacker-controlled input data rendered into templates, without requiring control over the template code itself.
Mitigation Recommendations
Versions 3.12.3 and 4.0.3 of compliance-trestle patch this vulnerability. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory content provided, but the description states these versions fix the issue. No additional mitigations are specified.
CVE-2026-46439: CWE-94: Improper Control of Generation of Code ('Code Injection') in oscal-compass compliance-trestle
Description
A Server-Side Template Injection (SSTI) vulnerability exists in compliance-trestle versions prior to 3.12.2 and 4.0.3 in the `trestle author jinja` command. This vulnerability allows recursive evaluation of rendered templates, enabling an attacker to execute arbitrary commands with the privileges of the running process by injecting malicious payloads into data fields. The vulnerability does not require control over the template itself, only attacker-controlled input data rendered into a trusted template. Versions 3.12.3 and 4.0.3 address this issue.
CVSS v3.1
Score 7.8high
Affected software
pkg:pypi/compliance-trestleRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The compliance-trestle tooling platform for managing compliance as code suffers from a Server-Side Template Injection (SSTI) vulnerability in the `trestle author jinja` command. The vulnerability arises due to recursive re-compilation and re-rendering of already-rendered output, which causes attacker-controlled input data fields (such as SSP documents or Lookup Tables) to become executable code. This allows an attacker to achieve arbitrary command execution with the privileges of the running process without needing control over the template itself. The issue affects versions prior to 3.12.2 and 4.0.3, with patches available in versions 3.12.3 and 4.0.3.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary commands on the system with the privileges of the compliance-trestle process. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability is exploitable via attacker-controlled input data rendered into templates, without requiring control over the template code itself.
Mitigation Recommendations
Versions 3.12.3 and 4.0.3 of compliance-trestle patch this vulnerability. Users should upgrade to these or later versions to remediate the issue. Patch status is not explicitly confirmed in the vendor advisory content provided, but the description states these versions fix the issue. No additional mitigations are specified.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T22:18:22.830Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a7f4200bf8831d53956d90b
Added to database: 08/14/2026, 16:27:44 UTC
Last enriched: 08/14/2026, 16:56:56 UTC
Last updated: 08/14/2026, 19:39:11 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.