CVE-2024-40629 Arbitrary File Write in Ansible Playbooks leads to RCE in Jumpserver
Attackers can write arbitrary files via Ansible playbooks to achieve remote code execution and steal secrets in JumpServer.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-40629?
CVE-2024-40629 is a critical path traversal vulnerability in jumpserver, published on 18 Jul 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
JumpServer is an open-source Privileged Access Management (PAM) tool that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser. An attacker can exploit the Ansible playbook to write arbitrary files, leading to remote code execution (RCE) in the Celery container. The Celery container runs as root and has database access, allowing an attacker to steal all secrets for hosts, create a new JumpServer account with admin privileges, or manipulate the database in other ways. This issue has been patched in release versions 3.10.12 and 4.0.0. It is recommended to upgrade the safe versions. There are no known workarounds for this vulnerability.
Weakness: CWE-22
Which versions are affected by CVE-2024-40629?
It affects 1 product.
Products include Fit2cloud Jumpserver.
How do I fix CVE-2024-40629?
No fix has been published for CVE-2024-40629 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-40629 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40629 exists.
Other vulnerabilities in jumpserver
- CVE-2024-40628 Arbitrary File Read in Ansible Playbooks in Jumpserver
- CVE-2024-29201 JumpServer's insecure Ansible playbook validation leads to RCE in Celery
- CVE-2024-29202 JumpServer vulnerable to Jinja2 template injection in Ansible leads to RCE in Celery
- CVE-2023-48193 Security feature bypass in n/a
- CVE-2025-62712 JumpServer Connection Token Leak Vulnerability
Sources
Also known as GHSA-3wgp-q8m7-v33v.