UBUNTU-CVE-2025-58367

Source
https://ubuntu.com/security/CVE-2025-58367
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58367.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-58367
Upstream
Published
2025-09-05T22:15:00Z
Modified
2026-04-27T18:53:39.232482Z
Severity
  • 10.0 (Critical) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

DeepDiff is a project focused on Deep Difference and search of any Python data. Versions 5.0.0 through 8.6.0 are vulnerable to class pollution via the Delta class constructor, and when combined with a gadget available in DeltaDiff, it can lead to Denial of Service and Remote Code Execution (via insecure Pickle deserialization) exploitation. The gadget available in DeepDiff allows deepdiff.serialization.SAFE_TO_IMPORT to be modified to allow dangerous classes such as posix.system, and then perform insecure Pickle deserialization via the Delta class. This potentially allows any Python code to be executed, given that the input to Delta is user-controlled. Depending on the application where DeepDiff is used, this can also lead to other vulnerabilities. This is fixed in version 8.6.1.

References

Affected packages

Ubuntu:20.04:LTS / deepdiff

Package

Name
deepdiff
Purl
pkg:deb/ubuntu/deepdiff@3.3.0-2?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.3.0-1
3.3.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-deepdiff",
            "binary_version": "3.3.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58367.json"

Ubuntu:22.04:LTS / deepdiff

Package

Name
deepdiff
Purl
pkg:deb/ubuntu/deepdiff@5.6.0-2?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.3.0-2
3.3.0-2ubuntu1
3.3.0-3
5.*
5.6.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-deepdiff",
            "binary_version": "5.6.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58367.json"

Ubuntu:24.04:LTS / deepdiff

Package

Name
deepdiff
Purl
pkg:deb/ubuntu/deepdiff@6.7.1-1?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.2.2-1
6.7.1-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-deepdiff",
            "binary_version": "6.7.1-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58367.json"

Ubuntu:25.10 / deepdiff

Package

Name
deepdiff
Purl
pkg:deb/ubuntu/deepdiff@8.1.1-4?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

8.*
8.1.1-3
8.1.1-4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-deepdiff",
            "binary_version": "8.1.1-4"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-58367.json"