Issue Bug Resolved

#108644Hardening of PDF indexing in internal API

TYPO3 GmbH TYPO3com 01/15/26, 11:05 updated 09/03/26, 13:00

Description

Type-enforce and bounds-validate page numbers in FileContentParser to prevent OS command injection via malicious PDF metadata.

- Cast $low/$high to int
- Validate range 1-999999, low <= high
- Exception on invalid input (code 1704000001)

This issue was automatically created from https://github.com/TYPO3/typo3/pull/616

Reviews 2

History 715

  1. Oliver Hader commented and changed subject Prevent command injection in PDF indexing Hardening of PDF indexing in internal API <span data-processor="relativetime" data-value="2026-01-15T12:20:58+00:00" > 01/15/26, 12:20 </span>

    tl;dr: This is not considered a security vulnerability, since the user submitted data is parsed and sanitized in TYPO3 core usages. Thus, there is no actual attack vector.

    → $cPKey is [(float)$low "-" (float)$high] which is not vulnerable to “command injection”

  2. Oliver Hader commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-09-03T13:00:11+00:00" > 09/03/26, 13:00 </span>

    Applied in changeset commit:3fd0854c791d1c49d3e9a9bacecf61ba05792ac9.