CVE-2025-6166 frdel Agent-Zero image_get.py image_get path traversal

Medium 5.1 Published Updated

An attacker can exploit a path traversal vulnerability in the image_get function to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-6166?

CVE-2025-6166 is a medium-severity path traversal vulnerability in frdel Agent-Zero, published on 17 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was found in frdel Agent-Zero up to 0.8.4. It has been rated as problematic. This issue affects the function image_get of the file /python/api/image_get.py. The manipulation of the argument path leads to path traversal. Upgrading to version 0.8.4.1 is able to address this issue. The identifier of the patch is 5db74202d632306a883ccce7339c5bdba0d16c5a. It is recommended to upgrade the affected component.

Weakness: CWE-22

Which versions are affected by CVE-2025-6166?

It affects 1 product.

Products include Agent-Zero Agent-Zero.

How do I fix CVE-2025-6166?

No fix has been published for CVE-2025-6166 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-2025-6166 being exploited?

There is no known exploitation of CVE-2025-6166 in the wild and no public exploit code.

Sources

Also known as GHSA-42pf-4gfp-f2vq.

Is CVE-2025-6166 in your software?

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

Check your SBOMs for free