CVE-2025-59339 Details
Description
The Bastion provides authentication, authorization, traceability and auditability for SSH accesses. Session-recording ttyrec files, may be handled by the provided osh-encrypt-rsync script that is a helper to rotate, encrypt, sign, copy, and optionally move them to a remote storage periodically, if configured to. When running, the script properly rotates and encrypts the files using the provided GPG key(s), but silently fails to sign them, even if asked to.
A vulnerability exists in The Bastion's SSH session recording feature, specifically in versions prior to 3.22.00. The issue arises in the 'osh-encrypt-rsync' script, which is designed to rotate, encrypt, sign, and copy 'ttyrec' files to remote storage. While the script correctly encrypts the files using the specified GPG keys, it fails to sign them as intended. This oversight creates a risk of unauthorized tampering with the 'ttyrec' files, as the absence of a GPG signature makes it difficult to detect modifications.
Users can update to The Bastion version 3.22.00 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 17, 2025CISA-ADP
Assessed Sep 17, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ovh/the-bastion/commit/9bc85ec3f4b724f903773ba64909777c4826a13f | [email protected] | Source CodeVendor |
| https://github.com/ovh/the-bastion/security/advisories/GHSA-h66q-g57p-rgg6 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-325 | Missing Cryptographic Step | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OVH The Bastion | < 3.22.00 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 17, 2025 | New CVE Received | [email protected] |
Volerion