CVE-2024-40628 Arbitrary File Read in Ansible Playbooks in Jumpserver
Attackers can read arbitrary files via Ansible playbooks, exposing secrets and enabling admin account creation 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-40628?
CVE-2024-40628 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 read arbitrary files in the celery container, leading to sensitive information disclosure. The Celery container runs as root and has database access, allowing the 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 addressed in release versions 3.10.12 and 4.0.0. It is recommended to upgrade the safe versions. There is no known workarounds for this vulnerability.
Weakness: CWE-22
Which versions are affected by CVE-2024-40628?
It affects 1 product.
Products include Fit2cloud Jumpserver.
How do I fix CVE-2024-40628?
No fix has been published for CVE-2024-40628 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-40628 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-40628 exists.
Other vulnerabilities in jumpserver
- CVE-2024-40629 Arbitrary File Write in Ansible Playbooks leads to RCE 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-rpf7-g4xh-84v9.