CVE-2026-112304: docTR through 1.1.0 Unsafe Deserialization RCE via load_pretrained_params()

Published Oct 19, 2026
·
Updated

docTR through 1.1.0 contains an unsafe deserialization vulnerability in loadpretrainedparams() that loads checkpoints with torch.load without weightsonly=True. Attackers who control a local or URL-supplied checkpoint can embed a malicious pickle payload to execute Python code with the loading process's privileges on torch releases before 2.6.

Affected Software

2 affected components
pypi/doctr<=1.1.0
pypi/torch<2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade torch to a version that resolves this vulnerability.

    Fixed in 2.6
  2. Configuration

    Load checkpoints with torch.load using weights_only=True.

    docTR load_pretrained_params() weights_only = True

Event History

Oct 19, 2026
CVE Published
via MITRE·03:28 PM
Data Sourced
via MITRE·03:28 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·04:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to exploitation?

Any process using affected docTR versions that calls load_pretrained_params() on a checkpoint controlled by an attacker is exposed. This includes locally supplied checkpoints and checkpoints fetched from attacker-controlled URLs, when running on torch releases before 2.6.

2

What does an attacker need to exploit this issue?

The attacker must be able to cause the application to load a malicious checkpoint through load_pretrained_params(), either by providing a local checkpoint or controlling a URL-supplied checkpoint. Exploitation also requires user interaction, as reflected by the UI:R vector.

3

What is the impact if exploitation succeeds?

A malicious pickle payload in the checkpoint can execute Python code with the privileges of the process loading it. The stated impact includes high confidentiality, integrity, and availability effects.

4

How can I determine whether my deployment is affected?

Check whether docTR is version 1.1.0 or earlier and whether your code uses load_pretrained_params() to load checkpoints from local paths or URLs that are not fully trusted. Also determine whether the installed torch release is before 2.6.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203