CVE-2025-58367

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-58367
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-58367.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-58367
Aliases
Downstream
Related
Published
2025-09-05T22:15:34Z
Modified
2025-09-19T15:29:18.215568Z
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

Git / github.com/seperman/deepdiff

Affected ranges

Type
GIT
Repo
https://github.com/seperman/deepdiff
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed

Affected versions

4.*

4.0.0
4.0.4
4.0.5
4.0.6
4.0.7
4.2.0
4.3.1
4.3.2

5.*

5.0.0
5.0.2
5.2.1
5.2.2
5.2.3
5.3.0
5.5.0
5.6.0
5.7.0
5.8.0

6.*

6.0.0
6.1.0
6.2.1
6.2.2
6.2.3
6.3.0
6.3.1
6.4.0
6.4.1
6.6.0
6.7.1

7.*

7.0.1

8.*

8.0.0
8.0.1
8.1.0
8.1.1
8.2.0
8.3.0
8.4.0
8.4.1
8.5.0
8.6.0

v0.*

v0.5.5
v0.5.6
v0.6.1

v1.*

v1.0.1
v1.2.0
v1.5.0

v2.*

v2.1.0
v2.1.1
v2.1.2
v2.5.0
v2.5.2
v2.5.3

v3.*

v3.0.0
v3.1.1
v3.1.2
v3.2.0
v3.2.1
v3.3.0

v5.*

v5.8.1
v5.8.2