CVE-2022-22909
High · 8.8CVSS
8.8
EPSS
45.4%
Published
Mar 3, 2022
CISA due date
—
Cloudanix analysis
An attacker who can create rooms in this hotel software can run their own programs on the server, potentially stealing information or taking over the system.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- RCE
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Remote code execution achieved by injecting a crafted payload into the room name field during creation, allowing arbitrary command execution on the underlying server with the privileges of the web application process.
Why it matters to the business
Full compromise of the hotel management system can lead to theft of guest data, manipulation of bookings, operational disruption, and use of the server as an entry point for further attacks; the vulnerability has been publicly exploitable for over four years with available proof-of-concept code.
How an attack unfolds
An attacker with low-privileged access authenticates to the application, navigates to the Create New Room module, and submits a malicious payload in the name field that is processed without sanitization, resulting in code execution on the server; no named threat actors are associated in public reporting.
How to fix it
Upgrade HotelDruid to the latest available version that resolves the input handling flaw in the room creation module; implement strict server-side input validation and sanitization on all name fields; restrict application accounts to least privilege and monitor for anomalous process execution from the web server context.
How to confirm the fix worked
Review application source or changelog for fixes to the room name handling logic; test by attempting room creation with known benign payloads that previously triggered execution and confirm they are now rejected or sanitized; scan logs for prior instances of unexpected command execution artifacts tied to room creation requests.
Typical attack path
- Obtain valid low-privileged credentials
- Access the Create New Room interface
- Insert crafted payload into the room name input field
- Submit the form to trigger payload processing and code execution
- Establish persistence or exfiltrate data via the resulting shell
How to detect it
Search web server and application logs for room creation POST requests containing unusual characters, script tags, or command syntax in the name parameter; inspect server process lists and file system for unexpected binaries or scripts created around the time of room creation activity; review authentication logs for low-privilege accounts performing room management actions.
- POST requests to room creation endpoints with name parameter containing shell metacharacters or code fragments
- Web server logs showing execution of system commands immediately following room creation submissions
- Unexpected files or processes spawned from the HotelDruid web application user context
What your security team should do
- Immediately restrict access to the room creation module to trusted administrative accounts only
- Deploy web application firewall rules to block common RCE payload patterns in form submissions
- Enable detailed logging of all room creation events and review for anomalous name field values
- Plan migration or upgrade to a maintained version of the software as soon as feasible given the four-year public exploit availability
The record
HotelDruid v3.0.3 was discovered to contain a remote code execution (RCE) vulnerability which is exploited via an attacker inserting a crafted payload into the name field under the Create New Room module.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | hoteldruid | 0 | No fix |
| Debian:12 | hoteldruid | 0 | 3.0.4-1 |
| Debian:13 | hoteldruid | 0 | 3.0.4-1 |
| Ubuntu:16.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:18.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:20.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:22.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:24.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:24.10 | hoteldruid | 0 | No fix |
| Ubuntu:25.04 | hoteldruid | 0 | No fix |
| Ubuntu:25.10 | hoteldruid | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | hoteldruid | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | hoteldruid | 0 | No fix |
Related vulnerabilities
- CVE-2023-47164 Cross-site scripting vulnerability in HOTELDRUID 3.0.5 and earlier allows a remote… Also affects hoteldruid
- CVE-2023-43373 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-43375 Hoteldruid v3.0.5 was discovered to contain multiple SQL injection vulnerabilities at… Also affects hoteldruid
- CVE-2023-43376 A cross-site scripting (XSS) vulnerability in /hoteldruid/clienti.php of Hoteldruid… Also affects hoteldruid
- CVE-2023-43374 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-43377 A cross-site scripting (XSS) vulnerability in /hoteldruid/visualizza_contratto.php of… Also affects hoteldruid
- CVE-2023-43371 Hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability via the… Also affects hoteldruid
- CVE-2023-33817 hoteldruid v3.0.5 was discovered to contain a SQL injection vulnerability. Also affects hoteldruid