SUSE-SU-2025:20117-1

Vulnerability from csaf_suse - Published: 2025-02-03 09:21 - Updated: 2025-02-03 09:21
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-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.0-184
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-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",
        "title": "Description of the patch"
      },
      {
        "category": "details",
        "text": "SUSE-SLE-Micro-6.0-184",
        "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_20117-1.json"
      },
      {
        "category": "self",
        "summary": "URL for SUSE-SU-2025:20117-1",
        "url": "https://www.suse.com/support/update/announcement/2025/suse-su-202520117-1/"
      },
      {
        "category": "self",
        "summary": "E-Mail link for SUSE-SU-2025:20117-1",
        "url": "https://lists.suse.com/pipermail/sle-security-updates/2025-June/021210.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 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/"
      }
    ],
    "title": "Security update for python-Jinja2",
    "tracking": {
      "current_release_date": "2025-02-03T09:21:01Z",
      "generator": {
        "date": "2025-02-03T09:21:01Z",
        "engine": {
          "name": "cve-database.git:bin/generate-csaf.pl",
          "version": "1"
        }
      },
      "id": "SUSE-SU-2025:20117-1",
      "initial_release_date": "2025-02-03T09:21:01Z",
      "revision_history": [
        {
          "date": "2025-02-03T09:21:01Z",
          "number": "1",
          "summary": "Current version"
        }
      ],
      "status": "final",
      "version": "1"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.2-7.1.aarch64",
                "product": {
                  "name": "python311-Jinja2-3.1.2-7.1.aarch64",
                  "product_id": "python311-Jinja2-3.1.2-7.1.aarch64"
                }
              }
            ],
            "category": "architecture",
            "name": "aarch64"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.2-7.1.s390x",
                "product": {
                  "name": "python311-Jinja2-3.1.2-7.1.s390x",
                  "product_id": "python311-Jinja2-3.1.2-7.1.s390x"
                }
              }
            ],
            "category": "architecture",
            "name": "s390x"
          },
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python311-Jinja2-3.1.2-7.1.x86_64",
                "product": {
                  "name": "python311-Jinja2-3.1.2-7.1.x86_64",
                  "product_id": "python311-Jinja2-3.1.2-7.1.x86_64"
                }
              }
            ],
            "category": "architecture",
            "name": "x86_64"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "SUSE Linux Micro 6.0",
                "product": {
                  "name": "SUSE Linux Micro 6.0",
                  "product_id": "SUSE Linux Micro 6.0",
                  "product_identification_helper": {
                    "cpe": "cpe:/o:suse:sl-micro:6.0"
                  }
                }
              }
            ],
            "category": "product_family",
            "name": "SUSE Linux Enterprise"
          }
        ],
        "category": "vendor",
        "name": "SUSE"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.2-7.1.aarch64 as component of SUSE Linux Micro 6.0",
          "product_id": "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.aarch64"
        },
        "product_reference": "python311-Jinja2-3.1.2-7.1.aarch64",
        "relates_to_product_reference": "SUSE Linux Micro 6.0"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.2-7.1.s390x as component of SUSE Linux Micro 6.0",
          "product_id": "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x"
        },
        "product_reference": "python311-Jinja2-3.1.2-7.1.s390x",
        "relates_to_product_reference": "SUSE Linux Micro 6.0"
      },
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python311-Jinja2-3.1.2-7.1.x86_64 as component of SUSE Linux Micro 6.0",
          "product_id": "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.x86_64"
        },
        "product_reference": "python311-Jinja2-3.1.2-7.1.x86_64",
        "relates_to_product_reference": "SUSE Linux Micro 6.0"
      }
    ]
  },
  "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.0:python311-Jinja2-3.1.2-7.1.aarch64",
          "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
          "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.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.0:python311-Jinja2-3.1.2-7.1.aarch64",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.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.0:python311-Jinja2-3.1.2-7.1.aarch64",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2025-02-03T09:21:01Z",
          "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.0:python311-Jinja2-3.1.2-7.1.aarch64",
          "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
          "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.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.0:python311-Jinja2-3.1.2-7.1.aarch64",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.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.0:python311-Jinja2-3.1.2-7.1.aarch64",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.s390x",
            "SUSE Linux Micro 6.0:python311-Jinja2-3.1.2-7.1.x86_64"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2025-02-03T09:21:01Z",
          "details": "important"
        }
      ],
      "title": "CVE-2024-56326"
    }
  ]
}


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 observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…