# GHSA-H42J-9HCC-3CWC: KServe v2 OCR engine does not enforce enable\_remote\_services

- Database: GitHub
- Severity: CVSS 2.2 (Low)
- Published: 2026-09-29
- Modified: 2026-10-05

## Tracked as

- [CVE-2026-105746](https://cve.now/CVE-2026-105746.md): Docling: KServe v2 OCR engine does not enforce enable\_remote\_services

## Affected versions

- docling (PyPI): from 2.83.0, fixed in 2.131.0
- docling-slim (PyPI): from 2.92.0, fixed in 2.131.0

## Description

### Summary

`enable_remote_services` is documented as the switch that must be turned on before docling sends document content to remote services, and docling raises `OperationNotAllowed` otherwise. The KServe v2 OCR engine (`ocr_options.kind = "kserve_v2_ocr"`) does not check this flag. It sends page images to the configured endpoint even when `enable_remote_services=False`.

### Details

- The KServe v2 object-detection and image-classification engines and the picture-description API model all check `enable_remote_services` before making requests.
- The OCR model in `docling/models/stages/ocr/kserve_v2_ocr_model.py` does not.
- `StandardPdfPipeline._make_ocr_model` does not pass the flag to the OCR factory.

The endpoint is the one configured by the caller. No attacker-controlled destination is involved.

### Affected configurations

Callers that configure the KServe v2 OCR engine and rely on `enable_remote_services=False` as a policy control, for example a service that lets users choose OCR options but forbids remote processing.

### Impact

Page images are sent to the configured remote endpoint despite remote services being disabled.

### Patches

Fixed in docling 2.131.0 by [#4418](https://github.com/docling-project/docling/pull/4418). The KServe v2 OCR engine now raises `OperationNotAllowed` unless `enable_remote_services=True`, like the other remote engines.

### Workarounds

Upgrade to 2.131.0. For older versions:

Do not configure `kserve_v2_ocr` in environments where remote processing must be prevented. Validate user-supplied OCR options before passing them to docling.

## References

- https://github.com/docling-project/docling/security/advisories/GHSA-h42j-9hcc-3cwc

Page: https://cve.now/GHSA-H42J-9HCC-3CWC

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
