p PatchFirst

CVE-2026-57170

CVE-2026-57170 · Trestle SSTI in Jinja2 include tags allows arbitrary code execution (Incomplete fix of CVE-2026-46439)

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

Compliance-trestle (Trestle) is a Python SDK and command-line tool for managing OSCAL compliance documents. In versions prior to 3.12.4 and 4.0.0 through 4.0.3, the custom Jinja2 include tags mdsection_include and md_clean_include re-parse the content of an included Markdown file as Jinja2 template code in a non-sandboxed environment, allowing server-side template injection that can lead to arbitrary code execution. The MDSectionInclude and MDCleanInclude tags in Trestle/core/jinja/tags.py pass included file content to Parser(self.environment, ...).parse(), splicing it into the host template's compilation, and the environment is a plain jinja2.Environment rather than a SandboxedEnvironment, so any expressions in the file are evaluated with full access to the usual SSTI gadget chain. Because Trestle's Markdown writers emit OSCAL prose and component-description fields verbatim, applying delimiter neutralization only to parameter tables, attacker-controlled OSCAL data such as a control statement, part prose, or component description containing Jinja2 syntax flows into an included Markdown file and is executed when the include tag re-parses it. This issue is fixed in version 4.1.0.

CVSS 7.8 · Élevée · EPSS 0,2% · Correctif disponible

Publication
Mise à jour

Pile logicielle: python

Produits et versions concernés

  • compliance-trestle

    Versions du logiciel
    • < 3.12.4: Concernée
    • >= 4.0.0, < 4.1.0: Concernée

    Aucun correctif publié

  • compliance-trestle PyPI

    Versions du logiciel
    • 0.0.2
    • 0.0.3
    • 0.1.0
    • 0.1.1
    • 0.10.0
    • 0.11.0
    • 0.12.0
    • 0.13.0
    • 0.13.1
    • 0.14.0
    • 0.14.1
    • 0.14.2
    • 0.14.3
    • 0.14.4
    • 0.15.0
    • 0.15.1
    • 0.16.0
    • 0.17.0
    • 0.18.0
    • 0.18.1
    • 0.19.0
    • 0.2.0
    • 0.2.1
    • 0.2.2
    • 0.20.0
    • 0.21.0
    • 0.22.0
    • 0.22.1
    • 0.23.0
    • 0.24.0
    • 0.25.0
    • 0.25.1
    • 0.26.0
    • 0.27.0
    • 0.27.1
    • 0.27.2
    • 0.28.0
    • 0.28.1
    • 0.29.0
    • 0.3.0
    • 0.30.0
    • 0.31.0
    • 0.32.0
    • 0.32.1
    • 0.33.0
    • 0.34.0
    • 0.35.0
    • 0.36.0
    • 0.37.0
    • 0.4.0
    • 0.5.0
    • 0.6.0
    • 0.6.1
    • 0.6.2
    • 0.7.0
    • 0.7.1
    • 0.7.2
    • 0.8.0
    • 0.8.1
    • 0.9.0
    • 1.0.0rc0
    • 1.0.1
    • 1.0.2
    • 1.1.0
    • 1.2.0
    • 2.0.0
    • 2.1.0
    • 2.1.1
    • 2.2.0
    • 2.2.1
    • 2.3.0
    • 2.3.1
    • 2.4.0
    • 2.5.0
    • 2.5.1
    • 2.6.0
    • 2.6.1
    • 3.0.1
    • 3.1.0
    • 3.10.2
    • 3.10.3
    • 3.10.4
    • 3.11.0
    • 3.12.0
    • 3.12.1
    • 3.12.2
    • 3.12.3
    • 3.2.0
    • 3.3.0
    • 3.4.0
    • 3.5.0
    • 3.6.0
    • 3.7.0
    • 3.8.0
    • 3.8.1
    • 3.9.0
    • 3.9.1
    • 3.9.2
    • 3.9.3
    Plages de versions concernées
    • ECOSYSTEM: < 3.12.4

    Mettez à jour vers 3.12.4

  • compliance-trestle PyPI

    Versions du logiciel
    • 4.0.0
    • 4.0.1
    • 4.0.2
    • 4.0.3
    Plages de versions concernées
    • ECOSYSTEM: ≥ 4.0.0, < 4.1.0

    Mettez à jour vers 4.1.0

  • compliance-trestle PyPI

    Versions du logiciel
    • 0.0.2
    • 0.0.3
    • 0.1.0
    • 0.1.1
    • 0.10.0
    • 0.11.0
    • 0.12.0
    • 0.13.0
    • 0.13.1
    • 0.14.0
    • 0.14.1
    • 0.14.2
    • 0.14.3
    • 0.14.4
    • 0.15.0
    • 0.15.1
    • 0.16.0
    • 0.17.0
    • 0.18.0
    • 0.18.1
    • 0.19.0
    • 0.2.0
    • 0.2.1
    • 0.2.2
    • 0.20.0
    • 0.21.0
    • 0.22.0
    • 0.22.1
    • 0.23.0
    • 0.24.0
    • 0.25.0
    • 0.25.1
    • 0.26.0
    • 0.27.0
    • 0.27.1
    • 0.27.2
    • 0.28.0
    • 0.28.1
    • 0.29.0
    • 0.3.0
    • 0.30.0
    • 0.31.0
    • 0.32.0
    • 0.32.1
    • 0.33.0
    • 0.34.0
    • 0.35.0
    • 0.36.0
    • 0.37.0
    • 0.4.0
    • 0.5.0
    • 0.6.0
    • 0.6.1
    • 0.6.2
    • 0.7.0
    • 0.7.1
    • 0.7.2
    • 0.8.0
    • 0.8.1
    • 0.9.0
    • 1.0.0rc0
    • 1.0.1
    • 1.0.2
    • 1.1.0
    • 1.2.0
    • 2.0.0
    • 2.1.0
    • 2.1.1
    • 2.2.0
    • 2.2.1
    • 2.3.0
    • 2.3.1
    • 2.4.0
    • 2.5.0
    • 2.5.1
    • 2.6.0
    • 2.6.1
    • 3.0.1
    • 3.1.0
    • 3.10.2
    • 3.10.3
    • 3.10.4
    • 3.11.0
    • 3.12.0
    • 3.12.1
    • 3.12.2
    • 3.12.3
    • 3.2.0
    • 3.3.0
    • 3.4.0
    • 3.5.0
    • 3.6.0
    • 3.7.0
    • 3.8.0
    • 3.8.1
    • 3.9.0
    • 3.9.1
    • 3.9.2
    • 3.9.3
    • 4.0.0
    • 4.0.1
    • 4.0.2
    • 4.0.3
    Plages de versions concernées
    • ECOSYSTEM: < 3.12.4 ∪ ≥ 4.0.0, < 4.1.0

    Mettez à jour vers 3.12.4; Mettez à jour vers 4.1.0

Sources originales

Vérifiez votre serveur →