cve.bz

CVE-2025-6966 NULL Pointer Dereference

6.9 mediumExploit referenceEPSS 0.2%

Medium (6.9). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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

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

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 5th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-12-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-476 NULL Pointer Dereference
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-6966 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-6966?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-6966?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-6966 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical python-aptfrom 3.0 before 3.0.0ubuntu1.1
Canonical python-aptfrom 3.0 before 3.0.0ubuntu0.25.04.1
Canonical python-aptfrom 2.7 before 2.7.7ubuntu5.1
Canonical python-aptfrom 2.4 before 2.4.0ubuntu4.1
Canonical python-aptfrom 2.0 before 2.0.1ubuntu0.20.04.1+esm1
Canonical python-aptfrom 1.6 before 1.6.6ubuntu0.1~esm1
Canonical python-aptfrom 1.1 before 1.1.0~beta1ubuntu0.16.04.12+esm1
Canonical python-aptbefore 0.9.3.5ubuntu3+esm5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-apt2.2.1.1DLA-4408-1
Debian12, 13python-aptno fix listedDEBIAN-CVE-2025-6966
Debian14python-apt3.1.0DEBIAN-CVE-2025-6966
Ubuntu22.04:LTSpython-apt2.4.0ubuntu4.1UBUNTU-CVE-2025-6966
Ubuntu24.04:LTSpython-apt2.7.7ubuntu5.1UBUNTU-CVE-2025-6966
Ubuntu25.10python-apt3.0.0ubuntu1.1UBUNTU-CVE-2025-6966
UbuntuPro:14.04:LTSpython-apt0.9.3.5ubuntu3+esm5UBUNTU-CVE-2025-6966
UbuntuPro:16.04:LTSpython-apt1.1.0~beta1ubuntu0.16.04.12+esm1UBUNTU-CVE-2025-6966
UbuntuPro:18.04:LTSpython-apt1.6.6ubuntu0.1~esm1UBUNTU-CVE-2025-6966
UbuntuPro:20.04:LTSpython-apt2.0.1ubuntu0.20.04.1+esm1UBUNTU-CVE-2025-6966 USN-7916-2

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Low for Red Hat as it requires a local attacker to provide a crafted deb822 file to trigger a NULL pointer dereference in `python-apt`, leading to a denial of service (process crash). Red Hat products that utilize `python-apt` and process untrusted deb822 files may be affected.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-6966.

References

Check your stackJSON