Skip to content

[GHSA-9xq9-36w5-q796] lmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out - #9200

Open
antonisloukis wants to merge 1 commit into
antonisloukis/advisory-improvement-9200from
antonisloukis-GHSA-9xq9-36w5-q796
Open

[GHSA-9xq9-36w5-q796] lmdeploy: Hardcoded trust_remote_code=True is an implicit unsafe remote-code load path with no user opt-out#9200
antonisloukis wants to merge 1 commit into
antonisloukis/advisory-improvement-9200from
antonisloukis-GHSA-9xq9-36w5-q796

Conversation

@antonisloukis

Copy link
Copy Markdown

Updates

  • Affected products
  • References

Comments
The advisory currently lists lmdeploy versions through 0.12.3 as affected but does not record a patched version.

Upstream PR #4511, "add explicit trust_remote_code controls to resolve the security issue", changes the affected code paths so that remote code execution through Hugging Face model repositories is no longer implicitly enabled and instead requires explicit trust_remote_code opt-in.

The PR was merged as commit:

81be52961aa324fd5cd3cacebffba1ba051bc107

The upstream v0.13.0 release contains this fix commit, and the tagged source explicitly identifies the package version as:

__version__ = '0.13.0'

Therefore the advisory should record 0.13.0 as the patched version.

I have also added the upstream fix PR, merge commit, v0.13.0 release, and tagged version source as supporting references.

@github

github commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator

Hi there @lvhan028! A community member has suggested an improvement to your security advisory. If approved, this change will affect the global advisory listed at github.com/advisories. It will not affect the version listed in your project repository.

This change will be reviewed by our Security Curation Team. If you have thoughts or feedback, please share them in a comment here! If this PR has already been closed, you can start a new community contribution for this advisory

@github-actions
github-actions Bot changed the base branch from main to antonisloukis/advisory-improvement-9200 August 24, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants