CVE-2025-49466 Path traversal in aerc
An attacker can exploit directory traversal in aerc to read or modify files outside the intended directory via crafted attachment names.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-49466?
CVE-2025-49466 is a medium-severity path traversal vulnerability in rjarry aerc, published on 5 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
aerc before 93bec0d allows directory traversal in commands/msgview/open.go because of direct path concatenation of the name of an attachment part,
Weakness: CWE-23
Which versions are affected by CVE-2025-49466?
How do I fix CVE-2025-49466?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-49466 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49466 exists.
Sources
Also known as DEBIAN-CVE-2025-49466, GHSA-2f2j-p95m-cpgc, UBUNTU-CVE-2025-49466.