CVE-2022-40299 Path traversal in n/a
Local attackers can escalate privileges by exploiting predictable temporary file paths in Singular's sdb.cc interface.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-40299?
CVE-2022-40299 is a high-severity path traversal vulnerability in n/a, published on 9 Sep 2022. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In Singular before 4.3.1, a predictable /tmp pathname is used (e.g., by sdb.cc), which allows local users to gain the privileges of other users via a procedure in a file under /tmp. NOTE: this CVE Record is about sdb.cc and similar files in the Singular interface that have predictable /tmp pathnames; this CVE Record is not about the lack of a safe temporary-file creation capability in the Singular language.
Weakness: CWE-330
Which versions are affected by CVE-2022-40299?
It affects 1 product.
Products include Singular Singular.
How do I fix CVE-2022-40299?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-40299 being exploited?
There is no known exploitation of CVE-2022-40299 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2022-40299, GHSA-92qh-jj8j-74cv, JLSEC-2026-289, UBUNTU-CVE-2022-40299.