USN-7916-1

Source
https://ubuntu.com/security/notices/USN-7916-1
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-7916-1.json
JSON Data
https://api.test.osv.dev/v1/vulns/USN-7916-1
Upstream
Related
Published
2025-12-09T06:41:41.538692Z
Modified
2025-12-10T07:44:48.761104Z
Summary
python-apt vulnerability
Details

Julian Andres Klode discovered that python-apt incorrectly handled deb822 configuration files. An attacker could use this issue to cause python-apt to crash, resulting in a denial of service.

References

Affected packages

Ubuntu:22.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@2.4.0ubuntu4.1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.0ubuntu4.1

Affected versions

2.*

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

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python-apt-common",
            "binary_version": "2.4.0ubuntu4.1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "2.4.0ubuntu4.1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "2.4.0ubuntu4.1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:22.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:24.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@2.7.7ubuntu5.1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.7ubuntu5.1

Affected versions

2.*

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

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python-apt-common",
            "binary_version": "2.7.7ubuntu5.1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "2.7.7ubuntu5.1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "2.7.7ubuntu5.1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:24.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:25.04

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@3.0.0ubuntu0.25.04.1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.0ubuntu0.25.04.1

Affected versions

2.*

2.9.0ubuntu1
2.9.0ubuntu2
2.9.5
2.9.6build1
2.9.8
2.9.9
2.9.9build1

3.*

3.0.0

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python-apt-common",
            "binary_version": "3.0.0ubuntu0.25.04.1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "3.0.0ubuntu0.25.04.1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "3.0.0ubuntu0.25.04.1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:25.04",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:25.10

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@3.0.0ubuntu1.1?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
3.0.0ubuntu1.1

Affected versions

3.*

3.0.0
3.0.0ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "binaries": [
        {
            "binary_name": "python-apt-common",
            "binary_version": "3.0.0ubuntu1.1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "3.0.0ubuntu1.1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "3.0.0ubuntu1.1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:25.10",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:Pro:14.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@0.9.3.5ubuntu3+esm5?arch=source&distro=esm-infra-legacy/trusty

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.9.3.5ubuntu3+esm5

Affected versions

0.*

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

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro with Legacy support add-on: https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-apt",
            "binary_version": "0.9.3.5ubuntu3+esm5"
        },
        {
            "binary_name": "python-apt-common",
            "binary_version": "0.9.3.5ubuntu3+esm5"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "0.9.3.5ubuntu3+esm5"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "0.9.3.5ubuntu3+esm5"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:14.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:Pro:16.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@1.1.0~beta1ubuntu0.16.04.12+esm1?arch=source&distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.1.0~beta1ubuntu0.16.04.12+esm1

Affected versions

1.*

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

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-apt",
            "binary_version": "1.1.0~beta1ubuntu0.16.04.12+esm1"
        },
        {
            "binary_name": "python-apt-common",
            "binary_version": "1.1.0~beta1ubuntu0.16.04.12+esm1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "1.1.0~beta1ubuntu0.16.04.12+esm1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "1.1.0~beta1ubuntu0.16.04.12+esm1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:16.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:Pro:18.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@1.6.6ubuntu0.1~esm1?arch=source&distro=esm-infra/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6.6ubuntu0.1~esm1

Affected versions

1.*

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

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-apt",
            "binary_version": "1.6.6ubuntu0.1~esm1"
        },
        {
            "binary_name": "python-apt-common",
            "binary_version": "1.6.6ubuntu0.1~esm1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "1.6.6ubuntu0.1~esm1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "1.6.6ubuntu0.1~esm1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:18.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}

Ubuntu:Pro:20.04:LTS

python-apt

Package

Name
python-apt
Purl
pkg:deb/ubuntu/python-apt@2.0.1ubuntu0.20.04.1+esm1?arch=source&distro=esm-infra/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.1ubuntu0.20.04.1+esm1

Affected versions

1.*

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

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

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "binaries": [
        {
            "binary_name": "python-apt",
            "binary_version": "2.0.1ubuntu0.20.04.1+esm1"
        },
        {
            "binary_name": "python-apt-common",
            "binary_version": "2.0.1ubuntu0.20.04.1+esm1"
        },
        {
            "binary_name": "python-apt-dev",
            "binary_version": "2.0.1ubuntu0.20.04.1+esm1"
        },
        {
            "binary_name": "python3-apt",
            "binary_version": "2.0.1ubuntu0.20.04.1+esm1"
        }
    ]
}

Database specific

cves_map

{
    "ecosystem": "Ubuntu:Pro:20.04:LTS",
    "cves": [
        {
            "severity": [
                {
                    "score": "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",
                    "type": "CVSS_V4"
                },
                {
                    "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                    "type": "CVSS_V3"
                },
                {
                    "score": "medium",
                    "type": "Ubuntu"
                }
            ],
            "id": "CVE-2025-6966"
        }
    ]
}