suse-su-2025:20254-1
Vulnerability from csaf_suse
Published
2025-03-28 13:55
Modified
2025-03-28 13:55
Summary
Security update for python-Jinja2

Notes

Title of the patch
Security update for python-Jinja2
Description of the patch
This update for python-Jinja2 fixes the following issues: - CVE-2025-27516: Fixed Jinja sandbox breakout through attr filter selecting format method (bsc#1238879) - CVE-2024-56201: Fixed sandbox breakout through malicious content and filename of a template (bsc#1234808) - CVE-2024-56326: Fixed sandbox breakout through indirect reference to format method (bsc#1234809)
Patchnames
SUSE-SLE-Micro-6.1-52
Terms of use
CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).



{
  "document": {
    "aggregate_severity": {
      "namespace": "https://www.suse.com/support/security/rating/",
      "text": "important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright 2024 SUSE LLC. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "Security update for python-Jinja2",
        "title": "Title of the patch"
      },
      {
        "category": "description",
        "text": "This update for python-Jinja2 fixes the following issues:\n\n- CVE-2025-27516: Fixed Jinja sandbox breakout through attr filter selecting format method  (bsc#1238879)\n- CVE-2024-56201: Fixed sandbox breakout through malicious content and filename of a template  (bsc#1234808)\n- CVE-2024-56326: Fixed sandbox breakout through indirect reference to format method (bsc#1234809)\n\n",
        "title": "Description of the patch"
      },
      {
        "category": "details",
        "text": "SUSE-SLE-Micro-6.1-52",
        "title": "Patchnames"
      },
      {
        "category": "legal_disclaimer",
        "text": "CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).",
        "title": "Terms of use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://www.suse.com/support/security/contact/",
      "name": "SUSE Product Security Team",
      "namespace": "https://www.suse.com/"
    },
    "references": [
      {
        "category": "external",
        "summary": "SUSE ratings",
        "url": "https://www.suse.com/support/security/rating/"
      },
      {
        "category": "self",
        "summary": "URL of this CSAF notice",
        "url": "https://ftp.suse.com/pub/projects/security/csaf/suse-su-2025_20254-1.json"
      },
      {
        "category": "self",
        "summary": "URL for SUSE-SU-2025:20254-1",
        "url": "https://www.suse.com/support/update/announcement/2025/suse-su-202520254-1/"
      },
      {
        "category": "self",
        "summary": "E-Mail link for SUSE-SU-2025:20254-1",
        "url": "https://lists.suse.com/pipermail/sle-security-updates/2025-June/021063.html"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1234808",
        "url": "https://bugzilla.suse.com/1234808"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1234809",
        "url": "https://bugzilla.suse.com/1234809"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1238879",
        "url": "https://bugzilla.suse.com/1238879"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2024-56201 page",
        "url": "https://www.suse.com/security/cve/CVE-2024-56201/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2024-56326 page",
        "url": "https://www.suse.com/security/cve/CVE-2024-56326/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2025-27516 page",
        "url": "https://www.suse.com/security/cve/CVE-2025-27516/"
      }
    ],
    "title": "Security update for python-Jinja2",
    "tracking": {
      "current_release_date": "2025-03-28T13:55:44Z",
      "generator": {
        "date": "2025-03-28T13:55:44Z",
        "engine": {
          "name": "cve-database.git:bin/generate-csaf.pl",
          "version": "1"
        }
      },
      "id": "SUSE-SU-2025:20254-1",
      "initial_release_date": "2025-03-28T13:55:44Z",
      "revision_history": [
        {
          "date": "2025-03-28T13:55:44Z",
          "number": "1",
          "summary": "Current version"
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
                "product": {
                  "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
                  "product_id": "python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64"
                }
              }
            ],
            "category": "architecture",
            "name": "aarch64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
                "product": {
                  "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
                  "product_id": "python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x"
                }
              }
            ],
            "category": "architecture",
            "name": "s390x"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64",
                "product": {
                  "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64",
                  "product_id": "python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "SUSE Linux Micro 6.1",
                "product": {
                  "name": "SUSE Linux Micro 6.1",
                  "product_id": "SUSE Linux Micro 6.1",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sl-micro:6.1"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "SUSE Linux Enterprise"
          }
        ],
        "category": "vendor",
        "name": "SUSE"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64 as component of SUSE Linux Micro 6.1",
          "product_id": "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64"
        },
        "product_reference": "python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
        "relates_to_product_reference": "SUSE Linux Micro 6.1"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x as component of SUSE Linux Micro 6.1",
          "product_id": "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x"
        },
        "product_reference": "python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
        "relates_to_product_reference": "SUSE Linux Micro 6.1"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64 as component of SUSE Linux Micro 6.1",
          "product_id": "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
        },
        "product_reference": "python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64",
        "relates_to_product_reference": "SUSE Linux Micro 6.1"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2024-56201",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2024-56201"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Jinja is an extensible templating engine. In versions on the 3.x branch prior to 3.1.5, a bug in the Jinja compiler allows an attacker that controls both the content and filename of a template to execute arbitrary Python code, regardless of if Jinja\u0027s sandbox is used. To exploit the vulnerability, an attacker needs to control both the filename and the contents of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates where the template author can also choose the template filename. This vulnerability is fixed in 3.1.5.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2024-56201",
          "url": "https://www.suse.com/security/cve/CVE-2024-56201"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1234808 for CVE-2024-56201",
          "url": "https://bugzilla.suse.com/1234808"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2025-03-28T13:55:44Z",
          "details": "important"
        }
      ],
      "title": "CVE-2024-56201"
    },
    {
      "cve": "CVE-2024-56326",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2024-56326"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Jinja is an extensible templating engine. Prior to 3.1.5, An oversight in how the Jinja sandboxed environment detects calls to str.format allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja\u0027s sandbox does catch calls to str.format and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to store a reference to a malicious string\u0027s format method, then pass that to a filter that calls it. No such filters are built-in to Jinja, but could be present through custom filters in an application. After the fix, such indirect calls are also handled by the sandbox. This vulnerability is fixed in 3.1.5.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2024-56326",
          "url": "https://www.suse.com/security/cve/CVE-2024-56326"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1234809 for CVE-2024-56326",
          "url": "https://bugzilla.suse.com/1234809"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2025-03-28T13:55:44Z",
          "details": "important"
        }
      ],
      "title": "CVE-2024-56326"
    },
    {
      "cve": "CVE-2025-27516",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2025-27516"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "Jinja is an extensible templating engine. Prior to 3.1.6, an oversight in how the Jinja sandboxed environment interacts with the |attr filter allows an attacker that controls the content of a template to execute arbitrary Python code. To exploit the vulnerability, an attacker needs to control the content of a template. Whether that is the case depends on the type of application using Jinja. This vulnerability impacts users of applications which execute untrusted templates. Jinja\u0027s sandbox does catch calls to str.format and ensures they don\u0027t escape the sandbox. However, it\u0027s possible to use the |attr filter to get a reference to a string\u0027s plain format method, bypassing the sandbox. After the fix, the |attr filter no longer bypasses the environment\u0027s attribute lookup. This vulnerability is fixed in 3.1.6.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
          "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2025-27516",
          "url": "https://www.suse.com/security/cve/CVE-2025-27516"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1238879 for CVE-2025-27516",
          "url": "https://bugzilla.suse.com/1238879"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 6.5,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "products": [
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.aarch64",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.s390x",
            "SUSE Linux Micro 6.1:python311-Jinja2-3.1.4-slfo.1.1_2.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2025-03-28T13:55:44Z",
          "details": "moderate"
        }
      ],
      "title": "CVE-2025-27516"
    }
  ]
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…