Skip to main content

python-apt CVE-2025-6966

| EUVDEUVD-2025-201407 MEDIUM
NULL Pointer Dereference (CWE-476)
2025-12-05 security@ubuntu.com
6.9
CVSS 4.0 · Vendor: ubuntu
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local access to APT-based host
  2. Exploit
    Craft deb822 file with non-UTF-8 key
  3. Execution
    Parser calls TagSection.keys(), NULL deref
  4. Impact
    Process crash (denial of service)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires LOCAL access to an APT-based Linux system (Debian/Ubuntu) and the ability to get a python-apt consumer to parse an attacker-controlled deb822 file containing a malformed non-UTF-8 key that reaches TagSection.keys(). Limiting factors: the attack vector is local (AV:L), not remote; impact is confined to crashing the parsing process (denial of service only - no confidentiality or integrity impact); and it only affects systems running vulnerable python-apt versions (pre-fix builds enumerated in EUVD/USN). No special non-default configuration is required, but exploitation depends on some workflow feeding the crafted file into python-apt's deb822 parser.

Impact

This is a classic high-CVSS-number / low-real-risk case. The CVSS 4.0 base of 6.9 is driven entirely by VA:H (availability) while confidentiality and integrity are N, and the attack vector is LOCAL (AV:L) - so despite PR:N/UI:N, an attacker must already have local access and supply a crafted deb822 file to a process that parses it via python-apt. The impact is limited to a process crash (NULL pointer dereference, CWE-476), not code execution or data exposure. EPSS is effectively negligible at 0.02% (4th percentile), and there is NO CISA KEV listing, indicating no observed real-world exploitation. Public exploit/POC code exists (Launchpad bug 2091865), but POC availability is distinct from active exploitation and does not raise this to priority status given the DoS-only, local-only profile. Ubuntu itself rates this priority=medium, consistent with a low-urgency, patch-in-normal-cycle item. Note a mild internal tension worth verifying: vendor scored VA:H (total availability loss), but the described effect is a single-process crash that is recoverable by removing the malicious input, so real availability impact is arguably lower (A:L) than the score implies.

Exploit ScenarioDerived

A local user (or a low-privilege process) on a Debian/Ubuntu system crafts a malformed deb822 file containing a non-UTF-8 key and places it where a python-apt consumer (e.g., an apt tooling or automation script calling TagSection.keys()) will parse it, triggering a NULL pointer dereference that crashes the process. Public POC code exists via the Ubuntu Launchpad bug report. The impact is limited to denial of service of the parsing process - no code execution, data disclosure, or privilege gain.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 25, 2026

Local denial of service in python-apt on APT-based Linux systems (Debian and Ubuntu) lets a local user crash any process that parses a crafted deb822 file containing a malformed non-UTF-8 key, which triggers a NULL pointer dereference inside TagSection.keys(). Publicly available exploit code exists (the upstream Launchpad report is tagged as an exploit reference), but there is no KEV entry and no sign of active in-the-wild exploitation, and EPSS is negligible at 0.02% (4th percentile). No privileges are required per the assessed CVSS 4.0 vector (PR:N, AV:L), yet the impact is confined to process availability with no confidentiality or integrity loss, so this is a high-CVSS-number, low-real-risk bug whose practical severity depends entirely on whether a privileged consumer of python-apt can be induced to parse an attacker-supplied stanza.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 17:08 CVSS 5.5

RemediationAI

Vendor-released patches are available: Ubuntu USN-7916-1 and USN-7916-2 ship fixed python-apt builds such as 3.0.0ubuntu1.1 / 3.0.0ubuntu0.25.04.1, 2.7.7ubuntu5.1, 2.4.0ubuntu4.1, 2.0.1ubuntu0.20.04.1+esm1, 1.6.6ubuntu0.1~esm1, 1.1.0~beta1ubuntu0.16.04.12+esm1 and 0.9.3.5ubuntu3+esm5, and Debian LTS users should install the python-apt version referenced in DLA-4408-1 (https://lists.debian.org/debian-lts-announce/2025/12/msg00019.html); upgrade to the build matching your release series and reboot or restart any long-running daemons that embed python-apt. Because this is a local, availability-only bug, prioritise it below remotely reachable issues, and if immediate patching is not possible apply compensating controls: do not allow untrusted users to introduce deb822 files (custom repositories, downloaded .dsc or .changes files) into workflows consumed by python-apt-based tooling, and pre-validate or transcode stanza keys to strict UTF-8 before parsing - the trade-off being that legitimately non-UTF-8 legacy control files may be rejected. Where a privileged daemon (for example an update or repository-management service) parses deb822 metadata, isolate it with systemd sandboxing, containerisation or privilege-dropping so that any crash is contained to that process rather than propagated; the trade-off is that dpkg/APT operations requiring root may need a separate privileged helper or suitable mount and capability allowances.

Affected VersionsENISA

Python-apt 3.0 <3.0.0ubuntu1.1
Python-apt 1.6 <1.6.6ubuntu0.1~esm1
Python-apt 0 <0.9.3.5ubuntu3+esm5
Python-apt 0
Python-apt 3.0 <3.0.0ubuntu0.25.04.1
Python-apt 1.1 <1.1.0~beta1ubuntu0.16.04.12+esm1
Python-apt 2.4 <2.4.0ubuntu4.1
Python-apt 2.0 <2.0.1ubuntu0.20.04.1+esm1
Python-apt 2.7 <2.7.7ubuntu5.1

Affected Packages

euvd python_apt fix: 0.9.3.5ubuntu3+esm5, 2.0.1ubuntu0.20.04.1+esm1, 2.4.0ubuntu4.1, 2.7.7ubuntu5.1, 3.0.0ubuntu0.25.04.1, 3.0.0ubuntu1.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

python-apt is the Python binding to APT's libapt-pkg, and deb822 is Debian's RFC822-style control-file format used for Packages, Sources, Release and .dsc metadata; TagSection wraps a single stanza and keys() enumerates its field names. The defect is CWE-476 (NULL pointer dereference): when a key contains malformed non-UTF-8 bytes, the string/unicode conversion path yields a NULL pointer that is dereferenced without a check, aborting the interpreter with a segmentation fault rather than producing exploitable memory corruption. The CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:N, VC:N/VI:N/VA:H) and the independent 3.1 re-assessment (AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) agree that the vector is strictly local, requires no privileges, and yields availability impact only; the disagreement is over magnitude, since a single crash of a parsing process is more appropriately scored Low than High. The CPE data pins the affected component to ubuntu:python-apt across a long version history (from 0.9.3.5/1.1.0 betas through the 2.x and 3.0 series), and the associated tags (Denial Of Service, Python, Null Pointer Dereference, Debian, Ubuntu) confirm this is a parsing-library availability bug rather than a remote or memory-corruption issue. The realistic attack surface is any workflow in which a local user can place a deb822 file in front of a python-apt consumer - a locally added repository, a downloaded source package description, or a build-time metadata file - including consumers that run with elevated privileges.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (ubuntu) PRIMARY 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
vuln.today AI 4.0 MEDIUM

Local vector (AV:L) as a crafted file must be parsed locally; no privileges needed to supply input (PR:N); impact is a recoverable single-process crash, so A:L and C/I:N.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Ubuntu MEDIUM
Red Hat 4.0 MEDIUM

Primary rating from Vendor (ubuntu).

CVSS VectorVendor: ubuntu

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

5
CVSS changed
Sep 25, 2026 - 23:22 NVD
5.5 (MEDIUM) 6.9 (MEDIUM)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
PoC Detected
Jan 07, 2026 - 22:20 vuln.today
Public exploit code
CVE Published
Dec 05, 2025 - 13:16 nvd
MEDIUM 5.5
CVE Published
Dec 05, 2025 - 13:16 cve.org
MEDIUM 6.9

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2025-6966 presents moderate security risk, a null pointer dereference vulnerability rated CVSS 5.5. Exploitation could compromise the security of affected deployments. Proof-of-concept code is publicly available. Organizations should apply vendor updates when available and monitor for exploitation.

Business Impact: Low
Compensating Controls

Apply vendor patch. If patching is delayed: enable ASLR/DEP, apply network segmentation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Prevalence
High
python-apt is default-installed on Debian and Ubuntu systems
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

Priority Score

54
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

Ubuntu

Priority: Medium
python-apt
Release Status Version
upstream released 3.1.0
bionic released 1.6.6ubuntu0.1~esm1
focal released 2.0.1ubuntu0.20.04.1+esm1
jammy released 2.4.0ubuntu4.1
noble released 2.7.7ubuntu5.1
plucky released 3.0.0ubuntu0.25.04.1
questing released 3.0.0ubuntu1.1
trusty released 0.9.3.5ubuntu3+esm5
xenial released 1.1.0~beta1ubuntu0.16.04.12+esm1

Debian

Bug #1122291
python-apt
Release Status Fixed Version Urgency
bullseye fixed 2.2.1.1 -
bullseye (security) fixed 2.2.1.1 -
bookworm vulnerable 2.6.0 -
trixie vulnerable 3.0.0 -
forky, sid fixed 3.1.0 -
(unstable) fixed 3.1.0 -

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy