CVE-2025-3162: Lmdeploy LMDeploy Improper Input Validation Vulnerability Vulnerability
MODERATECVE-2025-3162 is a MODERATE (CVSS 5.3) lmdeploy improper input validation vulnerability vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Lmdeploy libraries in the PyPI ecosystem. The issue involves lmdeploy improper input validation vulnerability. Remediation is available in the latest vendor maintenance releases.
CVE-2025-3162 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L).
How to Fix CVE-2025-3162
To remediate this vulnerability, upgrade all affected Lmdeploy dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install lmdeploy>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show lmdeploy
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-3162, inspect your installed packages using pip:
pip show lmdeploy
Analyze the terminal output to locate any version of Lmdeploy in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show lmdeploy command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Lmdeploy, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-3162 Affected Lmdeploy Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
lmdeploy
|
PyPI |
≤ 0.7.1
|
|
References
Frequently Asked Questions
What is CVE-2025-3162?
Which Lmdeploy versions are affected?
What version fixes CVE-2025-3162?
Is lmdeploy affected?
What is the CVSS score of CVE-2025-3162?
What CWE is associated with CVE-2025-3162?
How can I check PyPI dependencies for CVE-2025-3162?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7vc5-mjwp-c8fq",
"modified" : "2025-04-24T14:36:52Z",
"published" : "2025-04-03T15:31:20Z",
"aliases" : [ "CVE-2025-3162" ],
"summary" : "LMDeploy Improper Input Validation Vulnerability",
"details" : "A vulnerability was found in InternLM LMDeploy up to 0.7.1. It has been classified as critical. Affected is the function load_weight_ckpt of the file lmdeploy/lmdeploy/vl/model/utils.py of the component PT File Handler. The manipulation leads to deserialization. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "lmdeploy"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-3162"
}, {
"type" : "WEB",
"url" : "https://github.com/InternLM/lmdeploy/issues/3255"
}, {
"type" : "WEB",
"url" : "https://github.com/InternLM/lmdeploy/issues/3255#issue-2918985270"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/InternLM/lmdeploy"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?ctiid.303108"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?id.303108"
}, {
"type" : "WEB",
"url" : "https://vuldb.com/?submit.542520"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-20", "CWE-502" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-04-04T14:26:00Z",
"nvd_published_at" : "2025-04-03T15:15:53Z"
}
}