Description
LibreBooking's email template editor save action passes the submitted template name directly into the destination file path, allowing a remote attacker with administrator credentials to write an arbitrary file outside the template directory and execute code. Fixed in 5.1.0.
Published: 2026-07-09
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability allows a remote attacker who has administrator credentials to supply a template name that the system writes directly to a file path. This capability lets the attacker create or overwrite arbitrary files outside the expected template directory, which can then be executed as code. The weakness is a classic path traversal flaw (CWE-23) that compromises confidentiality, integrity, and availability by enabling attackers to run malicious code on the server.

Affected Systems

The affected product is LibreBooking. The advisory notes that versions prior to 5.1.0 are vulnerable, while 5.1.0 and later contain a fix.

Risk and Exploitability

Based on the description, the likely attack vector is the email template editor's save action, which accepts template names and writes them to disk without sanitization. Based on the CVSS score of 8.6, it is inferred that the vulnerability is of high severity. Exploitation requires administrator privileges, limiting attacks to users with elevated rights. From the extremely low EPSS score of <1%, it is inferred that the probability of exploitation in the general population is low. The fact that it is not listed in CISA's KEV catalog further suggests that there are currently no known widespread deployments or active exploits. Detection is expected to rely on identifying the presence of the vulnerable code path and reviewing file access logs for suspicious derivatives. Nonetheless, the potential to execute arbitrary code necessitates prompt remediation.

Generated by OpenCVE AI on July 29, 2026 at 12:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade LibreBooking to version 5.1.0 or later, which removes the unsanitized template path handling.
  • Restrict the file system permissions of the web application user so it can only write within the dedicated template directory; deny write access to any parent or sibling directories.
  • If the application must remain on an earlier version temporarily, modify the template name input handling to canonicalize the path and reject any component containing '..' or absolute paths, then apply additional access controls to limit execution of user‑provided files.

Generated by OpenCVE AI on July 29, 2026 at 12:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 10:15:00 +0000

Type Values Removed Values Added
First Time appeared Librebooking
Librebooking librebooking
Vendors & Products Librebooking
Librebooking librebooking

Thu, 09 Jul 2026 18:00:00 +0000

Type Values Removed Values Added
Description LibreBooking's email template editor save action passes the submitted template name directly into the destination file path, allowing a remote attacker with administrator credentials to write an arbitrary file outside the template directory and execute code. Fixed in 5.1.0.
Title LibreBooking path traversal
Weaknesses CWE-23
References
Metrics cvssV3_1

{'score': 7.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.6, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Librebooking Librebooking
cve-icon MITRE

Status: PUBLISHED

Assigner: cisa-cg

Published:

Updated: 2026-07-09T17:46:05.221Z

Reserved: 2026-07-08T17:00:29.404Z

Link: CVE-2026-61343

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T12:15:03Z

Weaknesses
  • CWE-23

    Relative Path Traversal