{"id":"MGASA-2025-0243","summary":"Updated python-django packages fix a security vulnerability","details":"An issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13,\nand 5.2 before 5.2.7. QuerySet.annotate(), QuerySet.alias(),\nQuerySet.aggregate(), and QuerySet.extra() are subject to SQL injection\nin column aliases, when using a suitably crafted dictionary, with\ndictionary expansion, as the **kwargs passed to these methods (on MySQL\nand MariaDB). (CVE-2025-59681)\nAn issue was discovered in Django 4.2 before 4.2.25, 5.1 before 5.1.13,\nand 5.2 before 5.2.7. The django.utils.archive.extract() function, used\nby the \"startapp --template\" and \"startproject --template\" commands,\nallows partial directory traversal via an archive with file paths\nsharing a common prefix with the target directory. (CVE-2025-59682)\n","modified":"2026-04-16T00:12:15.482710997Z","published":"2025-10-22T20:07:31Z","upstream":["CVE-2025-59681","CVE-2025-59682"],"references":[{"type":"ADVISORY","url":"https://advisories.mageia.org/MGASA-2025-0243.html"},{"type":"REPORT","url":"https://bugs.mageia.org/show_bug.cgi?id=34645"},{"type":"WEB","url":"https://www.openwall.com/lists/oss-security/2025/10/01/3"}],"affected":[{"package":{"name":"python-django","ecosystem":"Mageia:9","purl":"pkg:rpm/mageia/python-django?arch=source&distro=mageia-9"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.13-1.7.mga9"}]}],"ecosystem_specific":{"section":"core"},"database_specific":{"source":"https://advisories.mageia.org/MGASA-2025-0243.json"}}],"schema_version":"1.7.5","credits":[{"name":"Mageia","contact":["https://wiki.mageia.org/en/Packages_Security_Team"],"type":"COORDINATOR"}]}