/

CVE-2026-100358

Severity:

CRITICAL RISK

(9.1)

Code Injection (CWE-94) in SuiteCRM Dropdown Editor

CVE-2026-100358

Analyzed

Vulnerability type

Category:

Code Injection

CWE:

CWE-94

Impact:

Persistent PHP code execution

Severity:

CRITICAL RISK

(9.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

A flaw in SuiteCRM's Studio Dropdown Editor allows an administrator-controlled dropdown name to be written into a PHP language file after HTML entity decoding. When the file is later included, injected PHP may execute as the web-server account, putting application and host confidentiality, integrity, and availability at risk.

Affected context

The issue affects SuiteCRM installations using the Studio Dropdown Editor in versions prior to 7.15.2 and 8.10.2. The editor writes the decoded dropdown name into a PHP language file under custom/, which is included on later page loads; cache clearing does not remove the persisted file.

Exploit preconditions

  • Attack surface: The Studio Dropdown Editor and its generated PHP language file.
  • Required access: Administrator access sufficient to create or modify dropdowns.
  • Trigger point: A later page load that includes the generated language file.
  • Why exploitation is possible: Decoded input is written verbatim into executable PHP rather than being constrained to safe data.

Why this happens

The application treats administrator-supplied data as PHP source when generating a language file. HTML entity decoding does not make input safe for code generation, and writing the result into a file that is later included creates a code-injection condition. This maps to CWE-94: Improper Control of Generation of Code ('Code Injection').

Potential impact

  • An attacker with the required administrator access may execute PHP as the web-server account.
  • Application data and files could be exposed or modified.
  • The application or host could become unavailable.
  • Malicious code may persist across cache clears and subsequent page loads.

General mitigation guidance

Defensive patterns focus on keeping data separate from executable code:

  • Store dropdown labels and values in a data format or database rather than generating PHP source.
  • If file generation is necessary, use safe serialization or templates that encode values as data, not code.
  • Apply strict validation and context-appropriate encoding to values before storage and use.
  • Restrict who can create or modify dropdowns, and run the web application with least-privilege permissions.
  • Monitor and protect generated files against unauthorized modification.

How teams detect issues like this

  • Use static analysis to identify user-controlled values written into source files or other executable artifacts.
  • Review code-generation paths for decoding or escaping steps that do not preserve the data/code boundary.
  • Check whether generated PHP files are included dynamically and whether their contents can be influenced through administrative features.
  • Apply policy checks that prohibit runtime features from writing untrusted values into executable files.
  • Monitor generated files for unexpected changes and review relevant application logs.

Sources

SourceLink
github.comgithub.com/SuiteCRM/SuiteCRM-Core/commit/a11f50180d939f639cc468b5d536e8ad714dfb68
github.comgithub.com/SuiteCRM/SuiteCRM-Core/releases/tag/v8.10.2
github.comgithub.com/SuiteCRM/SuiteCRM/commit/d6bca97a0159ec019a969b86eca32affab3beb7c
github.comgithub.com/SuiteCRM/SuiteCRM/releases/tag/v7.15.2
github.comgithub.com/SuiteCRM/SuiteCRM/security/advisories/GHSA-4773-c8fh-3rww

Frequently asked

questions

The described attack requires administrator access to the Studio Dropdown Editor; unauthenticated access alone is not sufficient.

An attacker needs permission to create or modify dropdowns in the affected SuiteCRM functionality.

Keep dropdown values as data rather than writing them into executable PHP, and ensure generated artifacts cannot interpret user-controlled content as code.

Review code-generation and file-writing paths, enforce strict authorization and input validation, and monitor executable files for unexpected modifications.

Find out what's already
exploitable in your codebase.