CVE-2022-26846

8.8 HIGH

📋 TL;DR

This vulnerability allows remote authenticated editors in SPIP content management systems to execute arbitrary code on the server. It affects SPIP installations where users have editor-level permissions, potentially leading to complete system compromise.

💻 Affected Systems

Products:
  • SPIP
Versions: SPIP before 3.2.14 and 4.x before 4.0.5
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: Requires authenticated editor-level access; administrators are not affected by default but could be targeted through compromised editor accounts.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full server compromise allowing attackers to install malware, exfiltrate data, pivot to other systems, or destroy the entire SPIP installation.

🟠

Likely Case

Attackers with editor credentials gain administrative privileges and execute arbitrary PHP code, potentially defacing websites, stealing data, or creating backdoors.

🟢

If Mitigated

With proper access controls and monitoring, impact is limited to the SPIP application itself, though data loss or corruption may still occur.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires valid editor credentials; the vulnerability is in media handling functionality as shown in the git commit.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: SPIP 3.2.14 or SPIP 4.0.5

Vendor Advisory: https://blog.spip.net/Mise-a-jour-critique-de-securite-sorties-de-SPIP-4-0-5-et-SPIP-3-2-14.html

Restart Required: No

Instructions:

1. Backup your SPIP database and files. 2. Download SPIP 3.2.14 or 4.0.5 from spip.net. 3. Replace all SPIP files with the patched version. 4. Clear SPIP cache if applicable.

🔧 Temporary Workarounds

Restrict Editor Access

all

Temporarily disable or restrict editor accounts until patching is complete.

Disable Media Uploads

all

Temporarily disable media upload functionality for editor roles.

🧯 If You Can't Patch

  • Implement strict access controls and monitor editor account activity
  • Deploy web application firewall rules to block suspicious media upload patterns

🔍 How to Verify

Check if Vulnerable:

Check SPIP version in administration panel or by examining the spip_version.txt file in the root directory.

Check Version:

cat spip_version.txt 2>/dev/null || grep -r 'define.*_SPIP_VERSION' includes/

Verify Fix Applied:

Verify version is 3.2.14 or higher for SPIP 3.x, or 4.0.5 or higher for SPIP 4.x.

📡 Detection & Monitoring

Log Indicators:

  • Unusual media uploads by editor accounts
  • PHP code execution attempts in media-related logs
  • Multiple failed authentication attempts followed by successful editor login

Network Indicators:

  • Suspicious file uploads to media endpoints
  • Unusual outbound connections from SPIP server

SIEM Query:

source="spip_logs" AND (event="media_upload" AND user_role="editor") AND (file_extension="php" OR file_extension="phtml")

🔗 References

📤 Share & Export