UBUNTU-CVE-2025-56005

Source
https://ubuntu.com/security/CVE-2025-56005
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-56005.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-56005
Upstream
Published
2026-01-20T19:15:00Z
Modified
2026-02-12T06:58:23.231149Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

An undocumented and unsafe feature in the PLY (Python Lex-Yacc) library 3.11 allows Remote Code Execution (RCE) via the picklefile parameter in the yacc() function. This parameter accepts a .pkl file that is deserialized with pickle.load() without validation. Because pickle allows execution of embedded code via __reduce__(), an attacker can achieve code execution by passing a malicious pickle file. The parameter is not mentioned in official documentation or the GitHub repository, yet it is active in the PyPI version. This introduces a stealthy backdoor and persistence risk. NOTE: A third-party states that this vulnerability should be rejected because the proof of concept does not demonstrate arbitrary code execution and fails to complete successfully.

References

Affected packages

Ubuntu:16.04:LTS
ply

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.7-1?arch=source&distro=xenial

Affected ranges

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

Affected versions

3.*
3.7-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python-ply",
            "binary_version": "3.7-1"
        },
        {
            "binary_name": "python3-ply",
            "binary_version": "3.7-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-56005.json"
Ubuntu:18.04:LTS
ply

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.11-1?arch=source&distro=bionic

Affected ranges

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

Affected versions

3.*
3.9-1
3.11-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python-ply",
            "binary_version": "3.11-1"
        },
        {
            "binary_name": "python3-ply",
            "binary_version": "3.11-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-56005.json"
Ubuntu:20.04:LTS
ply

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.11-3ubuntu0.1?arch=source&distro=focal

Affected ranges

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

Affected versions

3.*
3.11-3
3.11-3build1
3.11-3ubuntu0.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python-ply",
            "binary_version": "3.11-3ubuntu0.1"
        },
        {
            "binary_name": "python3-ply",
            "binary_version": "3.11-3ubuntu0.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-56005.json"
Ubuntu:22.04:LTS
ply

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.11-5?arch=source&distro=jammy

Affected ranges

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

Affected versions

3.*
3.11-4ubuntu1
3.11-5

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-ply",
            "binary_version": "3.11-5"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-56005.json"
Ubuntu:24.04:LTS
ply

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.11-6?arch=source&distro=noble

Affected ranges

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

Affected versions

3.*
3.11-5
3.11-6

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-ply",
            "binary_version": "3.11-6"
        }
    ]
}

Database specific

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

Package

Name
ply
Purl
pkg:deb/ubuntu/ply@3.11-9?arch=source&distro=questing

Affected ranges

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

Affected versions

3.*
3.11-9

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "python3-ply",
            "binary_version": "3.11-9"
        }
    ]
}

Database specific

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