CVE-2022-22995 in My Cloudinfo

Summary

by MITRE • 03/26/2022

The combination of primitives offered by SMB and AFP in their default configuration allows the arbitrary writing of files. By exploiting these combination of primitives, an attacker can execute arbitrary code.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 04/29/2026

The vulnerability identified as CVE-2022-22995 represents a critical security flaw in network file sharing protocols that affects both Server Message Block and Apple Filing Protocol implementations. This vulnerability stems from the inherent design characteristics of these protocols when operating in their default configurations, creating a dangerous combination of primitives that enables attackers to perform arbitrary file writing operations. The flaw exists at the protocol level where legitimate file system operations are exposed in ways that can be manipulated by malicious actors to gain unauthorized access to system resources.

The technical implementation of this vulnerability exploits the fundamental differences between SMB and AFP protocols, which when combined create a pathway for attackers to bypass normal file system security controls. Both protocols typically operate with elevated privileges and provide extensive file manipulation capabilities that, when improperly configured or secured, can be leveraged to write files to arbitrary locations on the target system. The combination of these primitives creates a scenario where an attacker can craft specific network requests that, when processed by the vulnerable server, result in unauthorized file creation or modification. This capability directly enables the execution of arbitrary code because the attacker can place malicious binaries or scripts in locations where they will be executed by the system or its users.

The operational impact of CVE-2022-22995 extends far beyond simple file manipulation, as it provides attackers with a potential foothold for complete system compromise. Once an attacker can write arbitrary files to the system, they can deploy malware, establish persistence mechanisms, or escalate privileges to gain administrative control over the affected systems. The vulnerability affects organizations that rely on network file sharing services, particularly those running default configurations of SMB and AFP servers without proper security hardening. This creates a significant risk for enterprise environments where these protocols are commonly used for file sharing, user authentication, and system management operations. The attack vector is particularly concerning because it can be executed remotely without requiring authentication, making it an attractive target for automated exploitation campaigns.

Organizations should implement immediate mitigations including disabling unnecessary file sharing protocols, implementing strict network segmentation, and applying proper access controls to file sharing services. The vulnerability aligns with CWE-22 Uncontrolled Search Path Element and CWE-73 Path Traversal, both of which address improper input validation and path handling in file system operations. From an ATT&CK framework perspective, this vulnerability maps to T1078 Valid Accounts and T1059 Command and Scripting Interpreter, as attackers can leverage the file writing capability to establish persistence and execute malicious code. Security teams should also consider implementing network monitoring solutions that can detect anomalous file creation patterns and unusual network traffic patterns associated with SMB and AFP protocol usage. The recommended approach includes applying vendor-specific patches, configuring protocols with minimal required privileges, and conducting regular security assessments to identify and remediate similar configuration weaknesses across the network infrastructure.

Responsible

Western Digital

Reservation

01/10/2022

Disclosure

03/26/2022

Moderation

accepted

CPE

ready

EPSS

0.02758

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!