CVE-2024-40629 Arbitrary File Write in Ansible Playbooks leads to RCE in Jumpserver

Critical 10.0 Published Updated

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.

Sources

Also known as GHSA-3wgp-q8m7-v33v.

Is CVE-2024-40629 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free