Cloudanix VulnDB

CVE-2022-24883

Critical · 9.8

CVSS

9.8

EPSS

2.3%

Published

Apr 26, 2022

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in remote desktop software could let attackers log in without the right password if the system is set up with a bad file location for user accounts.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Moderate
Impact
Full Compromise
Component
Library
Class
Authentication Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

The vulnerability allows successful server-side authentication against an invalid SAM file path, permitting invalid credentials to authenticate successfully in FreeRDP-based RDP servers.

Why it matters to the business

Attackers can gain unauthorized remote access to systems relying on FreeRDP for SAM-based authentication, leading to potential data breaches or system compromise. The issue has been public for over four years with low but persistent exploit probability.

How an attack unfolds

An attacker initiates an RDP connection to a vulnerable server configured with an invalid SAM database path. By supplying any credentials, the flawed authentication logic accepts them as valid due to the path error, bypassing normal checks.

How to fix it

Upgrade FreeRDP to version 2.7.0 or later, specifically commit 40ee5d3bcc70343af6c0300d71968858c1f1948f. Alternatively, implement custom authentication via HashCallback and validate the SAM database path.

How to confirm the fix worked

Verify the FreeRDP version is 2.7.0 or newer. Test authentication with invalid credentials against a properly configured SAM path to confirm failures.

Typical attack path

  1. Initiate RDP connection to target server
  2. Provide arbitrary or invalid credentials
  3. Exploit invalid SAM path to bypass authentication
  4. Gain authenticated session access

How to detect it

Examine RDP server logs for successful authentications following failed credential attempts or unexpected SAM path errors. Look for connections from untrusted sources that bypass normal auth flows.

What your security team should do

  • Immediately upgrade all FreeRDP instances to the fixed commit.
  • Review and correct SAM file path configurations.
  • Implement monitoring for authentication anomalies.
  • Consider disabling SAM-based auth if not required.

The record

FreeRDP is a free implementation of the Remote Desktop Protocol (RDP). Prior to version 2.7.0, server side authentication against a `SAM` file might be successful for invalid credentials if the server has configured an invalid `SAM` file path. FreeRDP based clients are not affected. RDP server implementations using FreeRDP to authenticate against a `SAM` file are affected. Version 2.7.0 contains a fix for this issue. As a workaround, use custom authentication via `HashCallback` and/or ensure the `SAM` database path configured is valid and the application has file handles left.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 freerdp2 0 2.3.0+dfsg1-2+deb10u4
Debian:11 freerdp2 0 No fix
Debian:11 freerdp2 0 2.3.0+dfsg1-2+deb11u2
Debian:12 freerdp2 0 2.7.0+dfsg1-1
Debian:13 freerdp2 0 2.7.0+dfsg1-1
Mageia:8 freerdp 0 2.2.0-1.2.mga8
SUSE:Linux Enterprise Module for Package Hub 15 SP3 freerdp 0 2.1.2-150200.15.15.1
SUSE:Linux Enterprise Module for Package Hub 15 SP4 freerdp 0 2.4.0-150400.3.3.1
SUSE:Linux Enterprise Software Development Kit 12 SP5 freerdp 0 2.1.2-12.23.1
SUSE:Linux Enterprise Workstation Extension 12 SP5 freerdp 0 2.1.2-12.23.1
SUSE:Linux Enterprise Workstation Extension 15 SP3 freerdp 0 2.1.2-150200.15.15.1
SUSE:Linux Enterprise Workstation Extension 15 SP4 freerdp 0 2.4.0-150400.3.3.1
Ubuntu:16.04:LTS freerdp 0 No fix
Ubuntu:18.04:LTS freerdp 0 No fix
Ubuntu:18.04:LTS freerdp2 0 2.2.0+dfsg1-0ubuntu0.18.04.3
Ubuntu:20.04:LTS freerdp2 0 2.2.0+dfsg1-0ubuntu0.20.04.3
Ubuntu:22.04:LTS freerdp2 0 2.6.1+dfsg1-3ubuntu2.1
Ubuntu:Pro:16.04:LTS freerdp 0 No fix
Ubuntu:Pro:18.04:LTS freerdp 0 No fix
openSUSE:Leap 15.3 freerdp 0 2.1.2-150200.15.15.1
openSUSE:Leap 15.4 freerdp 0 2.4.0-150400.3.3.1
openSUSE:Tumbleweed freerdp2 0 2.11.2-3.1

Related vulnerabilities