Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft .tgz backup with jal.sqlite symlink member
-
DeliveryDeliver malicious backup to victim
-
ExploitVictim triggers backup restore in JAL
-
Executiontar extraction writes through symlink to ~/.bashrc
-
ImpactArbitrary code execution on next shell
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires the victim to use JAL's backup-restore feature on an attacker-supplied .tgz archive. The specific trigger is that the vulnerable restore path (safe_extract in backup_restore.py) validated only path-traversal via os.path.commonprefix and then called tar.extractall, which does not reject symlink members; the archive must contain a jal.sqlite entry that is a symlink to an absolute target (e.g. a shell startup script like ~/.bashrc) followed by a regular jal.sqlite member whose bytes get written through the symlink. Limiting factors that reduce realistic risk: local delivery of the backup file is needed, the user must deliberately initiate a restore (UI required), impact is confined to files writable by the JAL user, and only versions through 2026.11.3 are affected - the fix commit rejects any non-regular-file (symlink) member, so patched builds are not exploitable this way. |
| Impact | This is a genuine code-execution flaw (CWE-59, symlink following) but its real-world urgency is moderated by the attack preconditions and the product footprint. The supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H, score 8.5) shows local attack vector, low complexity, no privileges, but mandatory user interaction and full impact on the vulnerable host only (SC:N/SI:N/SA:N - no scope change). The practical gate is UI: a victim must actively import and restore an attacker-supplied .tgz backup, so this is not a remote, self-propagating threat. No EPSS score was supplied and the CVE is NOT on CISA KEV, so there is no evidence of active exploitation; exploitation status is 'no public exploit identified at time of analysis' (the four references are the NVD-linked source lines, the fix commit, the upstream issue, and the VulnCheck advisory - none is a working exploit). The vuln.today decision label is 'this_week', consistent with a serious-but-not-emergency fix rather than act_now/emergency. Note one metric tension to verify: the input vector encodes UI:P (passive), yet the mechanism - deliberately choosing to restore a malicious backup file - reads as active, targeted interaction; this does not change severity materially but affects how 'accidental' exploitation is judged. Overall: a real priority for JAL users, but a high-CVSS/low-aggregate-risk profile because exploitation needs social engineering, local delivery, and the product is niche. |
| Exploit ScenarioDerived | An attacker crafts a malicious JAL backup archive (.tgz) and convinces a victim to restore it - for example by sharing it as a 'recovered' or 'shared' ledger backup. The archive contains a jal.sqlite entry that is a symlink to an absolute path such as the victim's ~/.bashrc, followed by a regular jal.sqlite member; on restore the extractor creates the symlink and then writes the member's content through it, overwriting the shell startup script and yielding code execution the next time a shell is opened. No public exploit code was identified, and exploitation requires the victim to perform the restore (UI required), with local delivery of the file. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
JAL (Just Another Ledger) through 2026.11.3 allows an attacker-supplied .tgz backup archive to overwrite arbitrary files writable by the JAL user during the backup-restore operation, because the restore path validated only path traversal and then called tar.extractall, which does not reject symlink members. A crafted archive containing a jal.sqlite symlink to an absolute target plus a regular jal.sqlite member causes file content to be written through the link, which can corrupt shell startup scripts and yield code execution. Exploitation requires local delivery of the archive and user-initiated restore (UI:P / UI:R per the assessed vectors); the issue is fixed in the referenced upstream commit, and no public exploit code or active exploitation is identified in the available data.
RemediationAI
Upgrade to a JAL build that includes upstream commit 0353001ca085e3a1ce15c8a6fc216ddf5fd2daae, which rejects any non-regular-file (symlink) archive member, enforces an exact member list of jal.sqlite and label, validates the SQLite header, and copies the database through a mkstemp temporary file plus os.replace instead of using tar.extractall; review https://github.com/titov-vv/jal/commit/0353001ca085e3a1ce15c8a6fc216ddf5fd2daae and https://github.com/titov-vv/jal/issues/104 for the change. No fixed release version number is stated in the available data, so patch status should be confirmed against the project's published release tags rather than assumed. Until then, only restore backup archives from trusted, verified origins, and inspect archives before restore (for example listing members with tar -tvzf and confirming there are no symlink or other non-regular entries alongside jal.sqlite and label). Because the impact is confined to files writable by the JAL user, running JAL under a dedicated low-privilege account whose writable paths exclude shell startup scripts and other sensitive configuration reduces the code-execution consequence; the vendor's fix is the complete remediation and the provided sources do not describe additional mitigations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is CWE-59 (improper link resolution before file access, i.e. symlink following) in JAL's Python backup/restore module jal/db/backup_restore.py. The vulnerable code built a so-called safe_extract helper that compared os.path.abspath/os.path.commonprefix results against the temporary directory and then called tarfile.extractall. That check only addresses path traversal in member names; it does not inspect member types, so a symlink member passes, and extractall materializes the link and subsequently writes a regular file of the same name through it. The upstream fix replaces extractall entirely: a new _backup_members helper obtains tar.getmembers(), requires the archive to contain exactly the expected names (jal.sqlite and label), and requires every member to satisfy isfile() so symlinks and other non-regular members are rejected. Restore then reads the SQLite header (b'SQLite format 3\x00') from the member stream and copies the database through shutil.copyfileobj into a file created with tempfile.mkstemp in the destination directory, followed by os.replace for an atomic swap; tarfile.TarError, OSError and UnicodeDecodeError are handled and a temporary file is removed on failure. The independent assessment scores the issue CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, while the supplied CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P with high VC/VI/VA and no subsequent-system impact) likewise frames it as a local-vector issue gated by user interaction.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker supplies a local backup file the victim must restore (AV:L, UI:R); no privileges on the target (PR:N); symlink overwrite of startup scripts yields code execution, so C/I/A:H with no scope change (S:U).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
DescriptionCVE.org
JAL (Just Another Ledger) through 2026.11.3 contains an arbitrary file overwrite vulnerability in backup restore that allows attackers to write files by supplying a crafted .tgz backup with a symlink member. Attackers can include a jal.sqlite symlink to an absolute path followed by a regular jal.sqlite member, overwriting files such as shell startup scripts for code execution.
Executive ViewAI
CVE-2026-137529 in JAL (Just Another Ledger) through 2026.11.3 allows a malicious backup archive to overwrite arbitrary files during restore, potentially leading to code execution on affected systems. This requires local delivery and user-initiated restore, but could enable an attacker with local access to compromise the account and potentially the host. Leadership should prioritize remediation to prevent unauthorized access and data integrity risks.
No vendor-released patch identified at time of analysis; interim mitigations include restricting restore operations to trusted users and sources, implementing file integrity monitoring, and limiting write permissions to critical files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
EUVD-2026-136871
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB