CVE-2026-46439: CWE-94: Improper Control of Generation of Code ('Code Injection') in oscal-compass compliance-trestle
compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the 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
compliance-trestle is a tooling platform for managing compliance as code. Versions prior to 3.12.2 and 4.0.3 have a Server-Side Template Injection (SSTI) vulnerability exists in the `trestle author jinja` command. The command recursively evaluates rendered templates, allowing an attacker to achieve arbitrary command execution with privileges of the running process by injecting malicious payloads into data fields (such as SSP documents or Lookup Tables). The vulnerability does not require attacker control of the template itself. Only attacker-controlled input data rendered into a trusted template is required. This distinction is critical: the template author may only intend to render plain text (e.g., `Title: {{ ssp.metadata.title }}`), but because of the recursive parsing, the data field itself becomes executable. The vulnerability is caused by recursive re-compilation and re-rendering of already-rendered output. Versions 3.12.3 and 4.0.3 patch the issue.
CVSS v3.1
Score 7.8high
Affected software
oscal-compass
compliance-trestle
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
Threat ID: 6a7f4200bf8831d53956d90b
Added to database: 08/14/2026, 16:27:44 UTC
Last enriched: 08/14/2026, 16:56:56 UTC
Last updated: 09/29/2026, 18:11:18 UTC
Views: 60
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.