Skip to main content

PHP-FTS CVE-2026-124622

| EUVDEUVD-2026-120043 MEDIUM
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-11-09 VulDB GHSA-3phr-rx98-3qc2
4.8
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local account on shared host
  2. Delivery
    Plant symlink in index directory
  3. Exploit
    Win TrigramIndex::open TOCTOU window
  4. Execution
    Redirect open to web-served .php target
  5. Impact
    Execute code as application user

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
Exploitation Conditions

Requires a local user account DISTINCT from the user running the application, holding WRITE access to PHP-FTS's index directory - a multi-tenant shared-hosting deployment, not a default single-user install. The attacker must win the time-of-check/time-of-use window between the file_exists() check and the fopen() call in TrigramIndex::open, and for the 'Code Execution' impact the planted symlink target must additionally be a web-served .php file. LIMITING FACTORS: no network reachability (local only), the non-default shared-directory-write precondition, and the race-window timing all sharply constrain realistic exploitation; the maintainer explicitly frames the fix as hardening rather than a remotely exploitable flaw.

Impact

This is a low-to-medium real-world risk that the raw CVSS 4.0 base score (4.8) already reflects honestly, and multiple signals agree on de-prioritization. The CVSS 4.0 vector is AV:L/AC:L/AT:N/PR:L/UI:N - local attack vector, low-privileged local access required, no remote reachability. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a hardening-grade local flaw. No EPSS score was provided in the input, so exploitation-probability modeling is unavailable and cannot be weighed here. KEV status is absent (no CISA KEV listing), and no verified public exploit code is present - only a GitHub issue report (#3) and the vendor patch, so there is no evidence of active exploitation. The one point of tension is the 'RCE' tag versus the maintainer's own statement that this is 'a hardening measure rather than a remotely reachable vulnerability'; the local AV:L vector and the maintainer quote both contradict a remote-code-execution characterization, so treat the 'RCE' tag as misleading. Net: a genuinely-scoped TOCTOU shared-hosting hardening issue, not a widespread emergency - patch on a normal maintenance cadence.

Exploit ScenarioDerived

On a shared-hosting box where a second local user can write to PHP-FTS's index directory, that user plants a symbolic link and races the file_exists()+fopen() check in TrigramIndex::open to make the application open an attacker-controlled target. If the symlink points at a web-served .php file, the maintainer notes this can escalate to code execution as the application user. No public exploit code was identified at time of analysis; only a GitHub issue report and the vendor commit exist.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 09, 2026

Time-of-check time-of-use race in PHP-FTS (olivier-ls/php-fts) up to and including 1.1.3 lets a local user who can write to the library's index directory swap in a symbolic link between the file_exists() check and the fopen() call in TrigramIndex::open (Storage.php), so the application ends up reading or writing an attacker-chosen file. The precondition is a multi-tenant shared-hosting layout where a second local account holds write access to the index directory, and the race window must still be won; the maintainer describes the fix as a hardening measure rather than a remotely reachable flaw, and the 'code execution' outcome only follows if the symlink target is itself a web-served .php file. Upgrading to 1.1.4 (commit 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3) resolves it; no confirmed actively exploited campaign or verified working exploit code is identified in the available sources, and the public GitHub issue #3 is the upstream vulnerability report itself.

RemediationAI

Upgrade olivier-ls/php-fts to version 1.1.4 or later, which contains the fix in commit 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3 (release notes: https://github.com/olivier-ls/php-fts/releases/tag/v1.1.4; upstream issue: https://github.com/olivier-ls/php-fts/issues/3). Because the vendor frames this as a hardening measure, treat the upgrade as the complete fix and note that the 1.1.3 changelog entry bundles other behavioural changes in the same release line (escaped highlight output and type-strict filter comparisons), so review callers that pass 'escape' => false or rely on loose filter matching before rolling forward. Where upgrading is not immediately possible, the decisive compensating control is eliminating the stated precondition: make the index directory owned by and writable only by the account that runs the application, so no other local user can plant a symlink, and keep the index directory outside any web-served document root so a redirected path cannot resolve to a .php file that the web server would execute. Both measures remove specific prerequisites rather than the race itself - the TOCTOU window in TrigramIndex::open remains present until 1.1.4 is applied.

Affected VersionsENISA

PHP-FTS 1.1.1
PHP-FTS 1.1.0
PHP-FTS 1.1.2
PHP-FTS 1.1.3

Affected Packages

euvd php_fts no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PHP-FTS is a pure-PHP full-text search library that ships no extensions and writes its indexes to a directory on disk, with separate storage classes (including TrigramIndex) handling index files. The flaw is CWE-367: TrigramIndex::open performed a file_exists() probe and then a separate fopen(), so the file handle ultimately opened is not guaranteed to be the same object that was checked, and the open followed symbolic links in all four storage classes. An attacker who can write into the index directory can retarget the path in the gap between check and use, redirecting the library to a file it should not touch. The weakness is local (CVSS:4.0 AV:L) with low privileges (PR:L) and no user interaction, with limited confidentiality, integrity and availability impact and no scope change. Our independent assessment applies CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L, treating the race timing as a high attack-complexity factor. The patch commit also carries CI coverage across Linux, Windows and macOS specifically because symlink handling and rename() semantics differ by platform, and it bundles unrelated 1.1.3 fixes (stored XSS in buildHighlights and a type-juggling filter bypass) that are outside this CVE's scope. The trigger requires a second local identity with write access to the index directory; network reachability is not part of the described mechanism.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 4.8 MEDIUM
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
vuln.today AI 4.5 MEDIUM

Local-only TOCTOU race (CWE-367) requiring a separate low-privileged local user with index-directory write access, so AV:L/AC:H/PR:L; impacts are limited, hence C/I/A:L and S:U.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
4.0 AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

A vulnerability was identified in olivier-ls PHP-FTS up to 1.1.3. This impacts the function TrigramIndex::open of the file Storage.php. Such manipulation leads to time-of-check time-of-use. The attack needs to be performed locally. Upgrading to version 1.1.4 will fix this issue. The name of the patch is 0b2fae333d6b022da7ed4c43e2d41aa03f91dff3. Upgrading the affected component is recommended. The project maintainer explains: "[T]he attack requires write access to the index directory by a user other than the one running the application. That is a real shared-hosting scenario and worth defending against, which is why it is fixed but it is a hardening measure rather than a remotely reachable vulnerability, and the "Code Execution" impact additionally assumes the symlink target is a web-served .php file."

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Rare
obscure single-maintainer PHP full-text-search library, negligible production footprint
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy