CVE-2026-119704

Bastille through 1.4.4 Jail Escape via Symlink Following in cp, rcp, jcp

Published Oct 30, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
Description
Bastille through 1.4.4 contains a symlink following vulnerability in the cp.sh, rcp.sh and jcp.sh subcommands that allows jailed users to escape jail isolation. Attackers inside a jail can plant symlinks pointing to host paths or other jail roots, so administrator-run copies overwrite or read host files with root privileges.

Analysis

AI-generated

Technical impact

The vulnerability is a symlink following flaw in the cp.sh, rcp.sh, and jcp.sh scripts of Bastille. Jailed users can plant symbolic links that point to paths outside the jail. When the copy commands run, the links are dereferenced, allowing attackers to read or overwrite files on the host system with root privileges. This results in a privilege escalation and jail escape.

Affected Systems

This issue affects all installations of BastilleBSD Bastille up through version 1.4.4. The flaw appears in the copy and remote copy utilities when executed by a user inside a FreeBSD jail. Users running Bastille on systems that rely on jails for isolation are potentially impacted. No other versions were reported before the fix.

Risk and Exploitability

The CVSS base score of 5.3 indicates a moderate impact. While the EPSS score is not available, the absence from the KEV catalog suggests no public exploits are documented. The attack vector is assumed to be local, requiring an attacker already inside a jail to manipulate symlinks; if this condition is met, the exploit is straightforward and requires no additional software. Administrators should treat this as a patchable flaw that can have significant security consequences if left unaddressed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Bastille to a release newer than 1.4.4, which removes the symlink following behavior in the copy utilities.
  • As an interim measure, restrict the execution of cp, rcp, or jcp inside jails or adjust the scripts to reject paths that are not strictly within the jail.
  • Validate that the jailed environment does not mount host directories as writable, and set the HOME directory for jailed users to a non‑writeable location to limit symlink placement.

Generated by OpenCVE AI on October 30, 2026 at 16:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Bastillebsd
Bastillebsd bastille
Vendors & Products Bastillebsd
Bastillebsd bastille
Type Values Removed Values Added
Description Bastille through 1.4.4 contains a symlink following vulnerability in the cp.sh, rcp.sh and jcp.sh subcommands that allows jailed users to escape jail isolation. Attackers inside a jail can plant symlinks pointing to host paths or other jail roots, so administrator-run copies overwrite or read host files with root privileges.
Title Bastille through 1.4.4 Jail Escape via Symlink Following in cp, rcp, jcp
Weaknesses CWE-59
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 5, 2026, 9:46 PM
Reserved
Oct 30, 2026, 2:49 PM
Status
Deferred
Published
Oct 30, 2026, 4:17 PM
Modified
Nov 5, 2026, 10:17 PM