CVE-2023-35812 Path traversal in n/a
Attackers can read or modify arbitrary files via scp due to missing path verification for relative paths in Amazon Linux OpenSSH packages.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2023-35812?
CVE-2023-35812 is a medium-severity path traversal vulnerability in n/a, published on 3 Apr 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
An issue was discovered in the Amazon Linux packages of OpenSSH 7.4 for Amazon Linux 1 and 2, because of an incomplete fix for CVE-2019-6111 within these specific packages. The fix had only covered cases where an absolute path is passed to scp. When a relative path is used, there is no verification that the name of a file received by the client matches the file requested. Fixed packages are available with numbers 7.4p1-22.78.amzn1 and 7.4p1-22.amzn2.0.2.
Weakness: CWE-22
Which versions are affected by CVE-2023-35812?
How do I fix CVE-2023-35812?
No fix has been published for CVE-2023-35812 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-2023-35812 being exploited?
There is no known exploitation of CVE-2023-35812 in the wild and no public exploit code.
Sources
Also known as GHSA-9wrw-gcp8-hgqx.