/

CVE-2026-135692

Severity:

HIGH RISK

(8.8)

PHP Object Injection (CWE-502) in rConfig Core API

CVE-2026-135692

Received

Vulnerability type

Category:

PHP Object Injection

CWE:

CWE-502

Impact:

Remote Code Execution

Severity:

HIGH RISK

(8.8)

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

rConfig contains a PHP object injection vulnerability in which decrypted attribute values are unserialized without restricting the classes that can be instantiated. An authenticated attacker who can store a serialized gadget chain in an encrypted field may trigger command execution as the web server user when the value is read through the device API.

Affected context

The issue is in rConfig Core's app/Casts/EncryptStringCast.php and affects rConfig Core versions before 8.2.17 and rConfig Pro versions before 8.4.0. It becomes a risk when an encrypted attribute containing attacker-controlled serialized data is decrypted and unserialized without class restrictions, such as when device data is retrieved through GET /api/devices.

Exploit preconditions

  • Attack surface: The application's device API and encrypted attribute handling
  • Required access: An authenticated account able to store attacker-controlled data in a relevant encrypted field, such as a device password
  • Trigger point: A request that reads the affected attribute through GET /api/devices
  • Why exploitation is possible: The application decrypts and unserializes the stored value without restricting object classes, allowing a usable gadget chain to execute in the web server process

Why this happens

The application treats decrypted attribute contents as trusted serialized data and uses PHP unserialization without restricting which classes may be instantiated. Encryption does not establish that the decrypted value is safe or untampered with. This is CWE-502: Deserialization of Untrusted Data; object construction during deserialization can activate application or dependency behavior that may lead to code execution.

Potential impact

  • An attacker may execute commands with the privileges of the web server process.
  • The application runtime could be compromised, potentially exposing accessible data or credentials.
  • An attacker could use the compromised process to affect other systems reachable from the application.

General mitigation guidance

Mitigation generally focuses on avoiding unsafe object deserialization and reducing trust in data that can be influenced by users.

  • Prefer non-executable data formats and parsing methods that do not instantiate arbitrary objects.
  • Where deserialization cannot be avoided, restrict accepted types and validate values against an explicit schema before use.
  • Protect the integrity and access controls of stored encrypted attributes; encryption alone should not be treated as input validation.
  • Limit the web server process to the minimum filesystem, command, and network privileges required.
  • Avoid returning sensitive attributes through broadly accessible API paths.

How teams detect issues like this

  • Use static analysis to identify calls to PHP unserialize() on values derived from storage, requests, or other mutable sources.
  • Review custom casts and data-access paths for decryption followed by deserialization without class restrictions or schema validation.
  • Enforce code-review and CI policies that flag unsafe deserialization APIs and require justification for their use.
  • Monitor API access and application behavior for unexpected command execution or anomalous activity by the web server process.

Sources

SourceLink
github.comgithub.com/rconfig/rconfig/commit/444ca7db370224a4d054956c249bc925cd03bcf0
github.comgithub.com/rconfig/rconfig/releases/tag/core-8.2.17
github.comgithub.com/rconfig/rconfig/security/advisories/GHSA-66q6-ghqr-4cq2
vulncheck.comvulncheck.com/advisories/rconfig-core-8.0.0-before-8.2.17-and-pro-before-8.4.0-php-object-injection-rce

Frequently asked

questions

It may be exploitable through the application API, but the described attack requires an authenticated user who can store attacker-controlled data in an affected field.

The attacker needs permission to store a suitable value in an encrypted attribute and an opportunity to trigger its later read through the device API.

Avoid PHP object deserialization for user-influenced data. Use a non-executable format and validate parsed values against an explicit schema.

Treat decrypted data as untrusted, restrict or eliminate dynamic object construction, review data flows from storage to deserialization, and run the web server with least privilege.

Find out what's already
exploitable in your codebase.