DiskStation Manager (DSM): Uncontrolled Search Path Element
CVE-2023-0142 is a high-severity uncontrolled search path element vulnerability in DiskStation Manager (DSM) from Synology, with a CVSS 3.1 base score of 8.1 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. The record lists versions 7.1-42661, 7.0.1-42218-7, 6.2.4-25556-8 as the first without the flaw, so updating DiskStation Manager (DSM) to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.97% chance of exploitation within 30 days, higher than 62% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update DiskStation Manager (DSM) to 7.1-42661 or 7.0.1-42218-7 or 6.2.4-25556-8, whichever matches your release line, or a later version.
- Update Unified Controller (DSMUC) to 3.1.* or a later version.
- Update Synology Router Manager (SRM) to 1.3.* or 1.2.*, whichever matches your release line, or a later version.
- Read the advisory on synology.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Synology | DiskStation Manager (DSM) | 7.1 up to, but not including, 7.1-42661; 7.0 up to, but not including, 7.0.1-42218-7; 6.2 up to, but not including, 6.2.4-25556-8 | 7.1-42661, 7.0.1-42218-7, 6.2.4-25556-8 |
| Synology | Unified Controller (DSMUC) | 3.1 up to, but not including, 3.1.* | 3.1.* |
| Synology | Synology Router Manager (SRM) | 1.3 up to, but not including, 1.3.*; 1.2 up to, but not including, 1.2.* | 1.3.*, 1.2.* |
| Synology | Diskstation Manager Unified Controller | 3.1 | Not stated |
| Synology | Router Manager | 1.2 up to, but not including, 1.3.1-9346; 1.3.1-9346 | 1.3.1-9346 |
| Synology | Diskstation Manager | 6.2 up to, but not including, 7.1-42661 | 7.1-42661 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- NoneAvailability is not affected.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 6.5 | Medium | CNA (synology.com) |
| CVSS 3.1 | 8.1 | High | NVD |
Official description
Uncontrolled search path element vulnerability in Backup Management functionality in Synology DiskStation Manager (DSM) before 6.2.4-25556-8, 7.0.1-42218-7 and 7.1-42661 allows remote authenticated users with administrator privileges to read or write arbitrary files via unspecified vectors.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Uncontrolled Search Path Element
The product uses a fixed or controlled search path to find resources, but one or more locations in that path can be under the control of unintended actors.
How developers prevent this class of flaw
- Hard-code the search path to a set of known-safe values (such as system directories), or only allow them to be specified by the administrator in a configuration file. Do not allow these settings to be modified by an external party. Be careful to avoid related weaknesses such as CWE-426 and CWE-428.
- When invoking other programs, specify those programs using fully-qualified pathnames. While this is an effective approach, code that uses fully-qualified pathnames might not be portable to other systems that do not use the same pathnames. The portability can be improved by locating the full-qualified paths in a centralized, easily-modifiable location within the source code, and having the code refer to these paths.
- Remove or restrict all environment settings before invoking other programs. This includes the PATH environment variable, LD_LIBRARY_PATH, and other settings that identify the location of code libraries, and any application-specific search paths.
More Uncontrolled Search Path Element vulnerabilities (CWE-427)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Advisories
Other vulnerabilities in DiskStation Manager (DSM)
- 8.6 High severity
- 8.1 High severity
- 9.8 Critical severity
- 7.2 High severity
- 8.8 High severity
- 8.1 High severity
Recent Uncontrolled Search Path Element vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.3 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.