Skip to main content
Vulnerability Database/CVE-2026-113388

CVE-2026-113388: OSSN Cache Settings RCE Vulnerability

CVE-2026-113388 is a remote code execution flaw in Open Source Social Network affecting Cache Settings that enables attackers to inject malicious code. This post covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113388 Overview

CVE-2026-113388 is a code injection vulnerability in Open Source Social Network (OSSN) versions up to 9.11/10.1. The flaw resides in the input handling of actions/administrator/cache/dynamic.php within the Cache Settings component. An authenticated administrator can manipulate the host, port, username, password, type, or status arguments to inject PHP code into the generated cache configuration file. The attack is remote and requires high privileges plus user interaction. The vendor positions administrators as fully trusted users, but has released a defense-in-depth patch tracked as commit 40945057cb451f0f35153110bc7e889c094400e1. This weakness is classified under [CWE-74].

Critical Impact

An authenticated administrator can inject arbitrary PHP code into cache configuration, leading to code execution on the host serving the OSSN application.

Affected Products

  • Open Source Social Network (OSSN) version 9.11
  • Open Source Social Network (OSSN) version 10.1
  • actions/administrator/cache/dynamic.php (Cache Settings component)

Discovery Timeline

  • 2026-10-20 - CVE-2026-113388 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-113388

Vulnerability Analysis

The vulnerability exists in the dynamic cache settings handler at actions/administrator/cache/dynamic.php. The script accepts administrator-supplied values for host, port, username, password, type, and status, then concatenates them directly into a PHP $template string that is written to disk as executable PHP. Because the inputs are embedded without sanitization or escaping, an administrator can break out of the intended string context and inject arbitrary PHP code. When the generated cache file is subsequently included by the application, the injected code executes with the privileges of the web server process. The attack is reachable over the network and requires administrator authentication plus user interaction, as reflected in the CVSS 4.0 vector.

Root Cause

The root cause is improper neutralization of special elements used in a downstream component [CWE-74]. User-controlled strings are interpolated into a PHP source template without casting, encoding, or value serialization. Any single quote, closing PHP tag, or statement terminator supplied in the input breaks the template structure and permits injection of attacker-chosen PHP statements.

Attack Vector

Exploitation requires an authenticated administrator session on the OSSN installation. The attacker submits a crafted POST request to the dynamic cache settings action with malicious values in one of the vulnerable parameters. The crafted payload is persisted into the generated PHP cache file. On the next request that includes the file, the injected code runs server-side. The exploit has been publicly released, increasing the likelihood of opportunistic abuse against compromised or shared admin accounts.

php
// Patch excerpt from actions/administrator/cache/dynamic.php
// Source: https://github.com/opensource-socialnetwork/opensource-socialnetwork/commit/40945057cb451f0f35153110bc7e889c094400e1

$settings = array(
    'status'   => (string) $status,
    'type'     => (string) $type,
    'host'     => (string) $host,
    'port'     => (string) $port,
    'username' => (string) $username,
    'password' => (string) $password,
);

$exported_settings = var_export($settings, true);

$template = '<?php
/**
 * Open Source Social Network
 */';

The patch replaces direct string interpolation with var_export() on a typed array, ensuring values are serialized as safe PHP literals rather than written as raw code fragments.

Stop Remote Code Execution Before It Runs

Singularity™ Endpoint detects and blocks exploit attempts at machine speed, including zero-days and novel attack techniques.

Stop Exploit Attempts

Detection Methods for CVE-2026-113388

Indicators of Compromise

  • Unexpected modifications to generated cache configuration files produced by actions/administrator/cache/dynamic.php.
  • Presence of PHP tokens such as <?php, system(, eval(, or backticks inside cached dynamic settings files.
  • POST requests to the administrator cache endpoint containing suspicious characters (', ;, ?>) in host, port, username, password, type, or status fields.

Detection Strategies

  • Review web server access logs for administrator-authenticated requests to the dynamic cache action and correlate with filesystem writes under the OSSN cache directory.
  • Hash and baseline generated cache PHP files, then alert on content drift that introduces executable constructs beyond expected configuration literals.
  • Compare the deployed dynamic.php against upstream commit 40945057cb451f0f35153110bc7e889c094400e1 to confirm the patch is applied.

Monitoring Recommendations

  • Enable PHP file integrity monitoring on the OSSN installation directory, with high priority on files generated at runtime.
  • Audit administrator account activity, focusing on cache configuration changes outside maintenance windows.
  • Forward web server and PHP error logs to centralized logging for retention and correlation with authentication events.

How to Mitigate CVE-2026-113388

Immediate Actions Required

  • Apply upstream commit 40945057cb451f0f35153110bc7e889c094400e1 to any OSSN instance running version 9.11 or 10.1.
  • Rotate administrator credentials and enforce multi-factor authentication on all OSSN admin accounts.
  • Inspect existing generated cache PHP files for injected code and regenerate them from known-good configuration after patching.

Patch Information

The vendor fix is published in the Open Source Social Network repository as commit GitHub Commit 40945057. The patch replaces unsafe template concatenation with var_export() over a type-cast settings array, preventing input values from being written as executable PHP. Additional context is available in the VulDB CVE-2026-113388 entry and the published GitHub Gist Code Snippet.

Workarounds

  • Restrict administrator panel access to a trusted management network or VPN until the patch is deployed.
  • Set the OSSN cache configuration file and its parent directory to read-only for the web server user after a known-good configuration is written.
  • Remove or disable the dynamic cache settings action for administrators who do not require it.
bash
# Apply the upstream patch to a cloned OSSN deployment
cd /var/www/opensource-socialnetwork
git fetch origin
git cherry-pick 40945057cb451f0f35153110bc7e889c094400e1

# Harden the generated cache file after regeneration
chown root:www-data components/OssnCache/ossn_com.config.php
chmod 640 components/OssnCache/ossn_com.config.php

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.