{"id":"CVE-2025-6966","aliases":["DEBIAN-CVE-2025-6966","DLA-4408-1","EUVD-2025-201407","GHSA-285f-828q-q7g5","UBUNTU-CVE-2025-6966","USN-7916-1","USN-7916-2"],"status":"published","title":"Null-pointer dereference in python-apt TagSection.keys()","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","severity":{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00156,"percentile":0.04727,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-476"],"published":"2025-12-05T00:00:00Z","modified":"2026-09-26T08:47:29Z","fixes":[{"ecosystem":"Debian:14","package":"python-apt","fixed_in":["3.1.0"],"sources":["osv"]},{"ecosystem":"Debian:11","package":"python-apt","fixed_in":["2.2.1.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:14.04:LTS","package":"python-apt","fixed_in":["0.9.3.5ubuntu3+esm5"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"python-apt","fixed_in":["1.1.0~beta1ubuntu0.16.04.12+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:18.04:LTS","package":"python-apt","fixed_in":["1.6.6ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-apt","fixed_in":["2.0.1ubuntu0.20.04.1+esm1","2.0.1ubuntu0.20.04.2esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"python-apt","fixed_in":["2.4.0ubuntu4.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:24.04:LTS","package":"python-apt","fixed_in":["2.7.7ubuntu5.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:25.10","package":"python-apt","fixed_in":["3.0.0ubuntu1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.6.0","2.7.0","2.7.1","2.7.2","2.7.3","2.7.4","2.7.5","2.7.6","2.7.7","2.8.0","2.9.0","2.9.1","2.9.2","2.9.3","2.9.4","2.9.5","2.9.6","2.9.7","2.9.8","2.9.9","3.0.0","3.1.0"]},{"source":"osv","ecosystem":"Debian:13","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.0","3.1.0"]},{"source":"osv","ecosystem":"Debian:14","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.1.0"}]}],"versions":["3.0.0"]},{"source":"osv","ecosystem":"Debian:11","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.2.1.1"}]}],"versions":["2.2.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.3.5ubuntu3+esm5"}]}],"versions":["0.8.9.1ubuntu1","0.9.0","0.9.1","0.9.1ubuntu1","0.9.3.2","0.9.3.2ubuntu2","0.9.3.3","0.9.3.3ubuntu1","0.9.3.4","0.9.3.4build1","0.9.3.5","0.9.3.5ubuntu1","0.9.3.5ubuntu2","0.9.3.5ubuntu3","0.9.3.5ubuntu3+esm2","0.9.3.5ubuntu3+esm4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0~beta1ubuntu0.16.04.12+esm1"}]}],"versions":["1.0.1build1","1.0.1ubuntu2","1.1.0~beta1","1.1.0~beta1build1","1.1.0~beta1ubuntu0.16.04.1","1.1.0~beta1ubuntu0.16.04.2","1.1.0~beta1ubuntu0.16.04.4","1.1.0~beta1ubuntu0.16.04.5","1.1.0~beta1ubuntu0.16.04.7","1.1.0~beta1ubuntu0.16.04.8","1.1.0~beta1ubuntu0.16.04.9","1.1.0~beta1ubuntu0.16.04.10","1.1.0~beta1ubuntu0.16.04.11","1.1.0~beta1ubuntu0.16.04.12"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6ubuntu0.1~esm1"}]}],"versions":["1.4.0~beta3build2","1.4.0~beta3ubuntu1","1.6.0~rc2ubuntu1","1.6.0~rc2ubuntu2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.3ubuntu1","1.6.4","1.6.5ubuntu0.1","1.6.5ubuntu0.2","1.6.5ubuntu0.3","1.6.5ubuntu0.4","1.6.5ubuntu0.5","1.6.5ubuntu0.6","1.6.5ubuntu0.7","1.6.6"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1ubuntu0.20.04.1+esm1"}]}],"versions":["1.9.0ubuntu1","1.9.0ubuntu3","1.9.0ubuntu5","1.9.3ubuntu2","1.9.5","1.9.5build1","1.9.7","1.9.8","1.9.10","2.0.0","2.0.0ubuntu0.20.04.1","2.0.0ubuntu0.20.04.2","2.0.0ubuntu0.20.04.3","2.0.0ubuntu0.20.04.4","2.0.0ubuntu0.20.04.5","2.0.0ubuntu0.20.04.6","2.0.0ubuntu0.20.04.7","2.0.0ubuntu0.20.04.8","2.0.1","2.0.1ubuntu0.20.04.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0ubuntu4.1"}]}],"versions":["2.2.1","2.3.0","2.3.0ubuntu1","2.3.0ubuntu2","2.3.0ubuntu2.1","2.4.0","2.4.0ubuntu1","2.4.0ubuntu2","2.4.0ubuntu3","2.4.0ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.7ubuntu5.1"}]}],"versions":["2.6.0ubuntu1","2.6.0ubuntu2","2.7.0","2.7.5","2.7.6","2.7.7","2.7.7build1","2.7.7ubuntu1","2.7.7ubuntu2","2.7.7ubuntu3","2.7.7ubuntu4","2.7.7ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0ubuntu1.1"}]}],"versions":["3.0.0","3.0.0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.3.5ubuntu3+esm5"}]}],"versions":["0.8.9.1ubuntu1","0.9.0","0.9.1","0.9.1ubuntu1","0.9.3.2","0.9.3.2ubuntu2","0.9.3.3","0.9.3.3ubuntu1","0.9.3.4","0.9.3.4build1","0.9.3.5","0.9.3.5ubuntu1","0.9.3.5ubuntu2","0.9.3.5ubuntu3","0.9.3.5ubuntu3+esm2","0.9.3.5ubuntu3+esm4"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.1.0~beta1ubuntu0.16.04.12+esm1"}]}],"versions":["1.0.1build1","1.0.1ubuntu2","1.1.0~beta1","1.1.0~beta1build1","1.1.0~beta1ubuntu0.16.04.1","1.1.0~beta1ubuntu0.16.04.2","1.1.0~beta1ubuntu0.16.04.4","1.1.0~beta1ubuntu0.16.04.5","1.1.0~beta1ubuntu0.16.04.7","1.1.0~beta1ubuntu0.16.04.8","1.1.0~beta1ubuntu0.16.04.9","1.1.0~beta1ubuntu0.16.04.10","1.1.0~beta1ubuntu0.16.04.11","1.1.0~beta1ubuntu0.16.04.12"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.6ubuntu0.1~esm1"}]}],"versions":["1.4.0~beta3build2","1.4.0~beta3ubuntu1","1.6.0~rc2ubuntu1","1.6.0~rc2ubuntu2","1.6.0","1.6.1","1.6.2","1.6.3","1.6.3ubuntu1","1.6.4","1.6.5ubuntu0.1","1.6.5ubuntu0.2","1.6.5ubuntu0.3","1.6.5ubuntu0.4","1.6.5ubuntu0.5","1.6.5ubuntu0.6","1.6.5ubuntu0.7","1.6.6"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1ubuntu0.20.04.1+esm1"}]}],"versions":["1.9.0ubuntu1","1.9.0ubuntu3","1.9.0ubuntu5","1.9.3ubuntu2","1.9.5","1.9.5build1","1.9.7","1.9.8","1.9.10","2.0.0","2.0.0ubuntu0.20.04.1","2.0.0ubuntu0.20.04.2","2.0.0ubuntu0.20.04.3","2.0.0ubuntu0.20.04.4","2.0.0ubuntu0.20.04.5","2.0.0ubuntu0.20.04.6","2.0.0ubuntu0.20.04.7","2.0.0ubuntu0.20.04.8","2.0.1","2.0.1ubuntu0.20.04.1"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0ubuntu4.1"}]}],"versions":["2.2.1","2.3.0","2.3.0ubuntu1","2.3.0ubuntu2","2.3.0ubuntu2.1","2.4.0","2.4.0ubuntu1","2.4.0ubuntu2","2.4.0ubuntu3","2.4.0ubuntu4"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.7ubuntu5.1"}]}],"versions":["2.6.0ubuntu1","2.6.0ubuntu2","2.7.0","2.7.5","2.7.6","2.7.7","2.7.7build1","2.7.7ubuntu1","2.7.7ubuntu2","2.7.7ubuntu3","2.7.7ubuntu4","2.7.7ubuntu5"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.0ubuntu1.1"}]}],"versions":["3.0.0","3.0.0ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"python-apt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.1ubuntu0.20.04.2esm2"}]}],"versions":["1.9.0ubuntu1","1.9.0ubuntu3","1.9.0ubuntu5","1.9.3ubuntu2","1.9.5","1.9.5build1","1.9.7","1.9.8","1.9.10","2.0.0","2.0.0ubuntu0.20.04.1","2.0.0ubuntu0.20.04.2","2.0.0ubuntu0.20.04.3","2.0.0ubuntu0.20.04.4","2.0.0ubuntu0.20.04.5","2.0.0ubuntu0.20.04.6","2.0.0ubuntu0.20.04.7","2.0.0ubuntu0.20.04.8","2.0.1","2.0.1ubuntu0.20.04.1","2.0.1ubuntu0.20.04.1+esm1"]}],"products":[{"vendor":"canonical","product":"python-apt"},{"vendor":"debian","product":"debian_linux"},{"vendor":"ubuntu","product":"python-apt"}],"references":[{"url":"https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/2091865","tags":["Exploit","Issue Tracking","Third Party Advisory","report"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/12/msg00019.html","tags":["Mailing List","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6966"},{"url":"https://github.com/advisories/GHSA-285f-828q-q7g5"},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-6966","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-6966","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-6966","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7916-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-7916-2","tags":["advisory"]},{"url":"https://bugs.launchpad.net/bugs/2137070","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2025-6966","title":"Null-pointer dereference in python-apt TagSection.keys()","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T12:59:41.32Z","modified":"2025-12-15T22:04:15.781Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"medium","assessor":"cna"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:32:40.419293Z"}],"euvd":[{"id":"EUVD-2025-201407","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T12:59:41Z","modified":"2025-12-15T22:04:15Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-02T19:49:05.078672Z"}],"ghsa":[{"id":"GHSA-285f-828q-q7g5","title":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based \nLinux systems allows a...","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based \nLinux systems allows a local attacker to cause a denial of service \n(process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T15:30:26Z","modified":"2026-01-08T00:32:16Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T15:05:32.392087Z"}],"nvd":[{"id":"CVE-2025-6966","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T13:16:05.22Z","modified":"2026-09-25T23:10:00.463Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"}],"cwes":["CWE-476"],"updated_at":"2026-11-02T14:11:49.093461Z"}],"osv":[{"id":"CVE-2025-6966","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T13:16:05.22Z","modified":"2026-04-10T05:35:22.887074Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:52.859856Z"},{"id":"DEBIAN-CVE-2025-6966","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T13:16:05.22Z","modified":"2026-09-26T08:47:29.626372262Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:45:48.025964Z"},{"id":"UBUNTU-CVE-2025-6966","description":"NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.","status":"published","published":"2025-12-05T00:00:00Z","modified":"2026-04-22T16:14:26.907671Z","cvss":[{"version":"4.0","score":6.9,"vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","level":"medium"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","level":"medium"},{"version":"3.1","score":6.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T16:55:55.926217Z"},{"id":"DLA-4408-1","title":"python-apt - security update","status":"published","published":"2025-12-16T00:00:00Z","modified":"2025-12-16T00:00:00Z","updated_at":"2026-11-02T15:46:12.7027Z"},{"id":"USN-7916-1","title":"python-apt vulnerability","description":"Julian Andres Klode discovered that python-apt incorrectly handled\ndeb822 configuration files. An attacker could use this issue to cause\npython-apt to crash, resulting in a denial of service.","status":"published","published":"2025-12-09T06:41:41Z","modified":"2026-06-25T13:32:31.523689028Z","updated_at":"2026-11-02T16:58:21.91885Z"},{"id":"USN-7916-2","title":"python-apt regression","description":"USN-7916-1 fixed a vulnerability in python-apt. The update had a\nPEP 440 incompatible version. This update fixes the problem.\n\nWe apologize for the inconvenience.\n\nOriginal advisory details:\n\n Julian Andres Klode discovered that python-apt incorrectly handled\n deb822 configuration files. An attacker could use this issue to cause\n python-apt to crash, resulting in a denial of service.","status":"published","published":"2026-01-15T10:14:45Z","modified":"2026-04-22T11:04:40.946104Z","updated_at":"2026-11-02T16:58:21.91885Z"}]}}
