# CVE-2025-6966: Null-pointer dereference in python-apt TagSection.keys()

- Severity: Medium 6.9 (CVSS:4.0, scored by canonical) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-12-05T12:59:41.320Z
- Modified: 2026-09-25T23:10:00.463Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- python-apt: from 3.0 before 3.0.0ubuntu1.1; from 3.0 before 3.0.0ubuntu0.25.04.1; from 2.7 before 2.7.7ubuntu5.1; from 2.4 before 2.4.0ubuntu4.1; from 2.0 before 2.0.1ubuntu0.20.04.1+esm1; from 1.6 before 1.6.6ubuntu0.1~esm1; from 1.1 before 1.1.0~beta1ubuntu0.16.04.12+esm1; before 0.9.3.5ubuntu3+esm5
- ubuntu python-apt: before 0.9.3.11; from 1.6.0 before 1.6.6; from 2.0.0 before 2.0.1; from 2.7.0 before 2.7.7; 0.9.3.5; 0.9.3.11; 1.1.0; 1.6.6; 2.0.1; 2.4.0; 2.7.7; 3.0.0
- debian debian_linux: 11.0

## Every score

- canonical: CVSS:4.0 6.9 Medium `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`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/2091865> (exploit, issue-tracking, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/12/msg00019.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2025-6966](https://www.cve.org/CVERecord?id=CVE-2025-6966), CVE Terms of Use, modified 2025-12-15
- NVD: [CVE-2025-6966](https://nvd.nist.gov/vuln/detail/CVE-2025-6966), Public domain, modified 2026-09-25

---

Page: https://cve.day/CVE-2025-6966 · Whole record: https://cve.day/CVE-2025-6966.json · Rebuilt by cve.day 2026-11-25T22:59:08.331Z
