CVE-2023-27562 n8n Directory Traversal vulnerability

Medium 6.5 Published Updated

An attacker can exploit a directory traversal vulnerability in the n8n Node.js package to read arbitrary files from the server.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-27562?

CVE-2023-27562 is a medium-severity path traversal vulnerability in N8n N8n, published on 10 May 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

The n8n package 0.218.0 for Node.js allows Directory Traversal.

Weakness: CWE-22

Which versions are affected by CVE-2023-27562?

2 open source packages ship an affected version, including n8n. It affects 1 product.

PackageAffectedFixed in
n8n npmAll versions0.216.1
n8n npmAll versions0.216.1

Products include N8n N8n.

How do I fix CVE-2023-27562?

Upgrade n8n to 0.216.1 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-27562 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-27562 exists.

All N8n N8n vulnerabilities

Sources

Also known as GHSA-p58x-7733-vp9m.

Is CVE-2023-27562 in your software?

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

Check your SBOMs for free