NetBSD up to 7.0.1 /usr/libexec/mail.local link following
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 7.4 | $0-$5k | 0.00 |
Summary
A vulnerability identified as problematic has been detected in NetBSD up to 7.0.1. This affects an unknown function in the library /usr/libexec/mail.local. The manipulation leads to link following. This vulnerability is uniquely identified as CVE-2016-6253. Local access is required to approach this attack. Moreover, an exploit is present. You should upgrade the affected component.
Details
A vulnerability was found in NetBSD up to 7.0.1 (Operating System). It has been rated as critical. This issue affects some unknown functionality in the library /usr/libexec/mail.local. The manipulation with an unknown input leads to a link following vulnerability. Using CWE to declare the problem leads to CWE-59. The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. Impacted is confidentiality, integrity, and availability. The summary by CVE is:
mail.local in NetBSD versions 6.0 through 6.0.6, 6.1 through 6.1.5, and 7.0 allows local users to change ownership of or append data to arbitrary files on the target system via a symlink attack on the user mailbox.
The weakness was disclosed 07/20/2016 by Mateusz Kocielski as NetBSD-SA2016-006 as confirmed security advisory (Website). The advisory is shared at ftp.netbsd.org. The public release has been coordinated in cooperation with the project team. The identification of this vulnerability is CVE-2016-6253 since 07/20/2016. The exploitation is known to be easy. An attack has to be approached locally. A simple authentication is required for exploitation. Technical details as well as a public exploit are known. The advisory points out:
he user mailbox (typically /var/mail/$USER) which is used to deliver a message, is checked using lstat(2) to verify that the file is not a symlink. Then if the file is not a symlink, it's opened. This is subject to a symlink race. An attacker has a window between the lstat(2) and open(2) calls during which she/he can create a symlink to an arbitrary file. The mail.local program then will append arbitrary data or change the ownership using fchown(2) to the file where the symlink points to.
The exploit is available at exploit-db.com. It is declared as proof-of-concept. We expect the 0-day to have been worth approximately $5k-$25k.
Upgrading eliminates this vulnerability. A possible mitigation has been published immediately after the disclosure of the vulnerability. The security advisory contains the following remark:
Potential workaround is to remove mail.local or turn off SUID bit from the file. This program was used by sendmail(8) which is no longer shipped with NetBSD (NetBSD uses postfix(1) as its MTA).
The vulnerability is also documented in the databases at Exploit-DB (40141), SecurityFocus (BID 92101†) and SecurityTracker (ID 1036429†). If you want to get the best quality for vulnerability data then you always have to consider VulDB.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.8VulDB Meta Temp Score: 7.4
VulDB Base Score: 7.8
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍
NVD Base Score: 7.8
NVD Vector: 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Class: Link followingCWE: CWE-59
CAPEC: 🔍
ATT&CK: 🔍
Physical: Partially
Local: Yes
Remote: No
Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍
Timeline
07/20/2016 🔍07/20/2016 🔍
07/20/2016 🔍
07/20/2016 🔍
07/22/2016 🔍
07/22/2016 🔍
01/20/2017 🔍
05/14/2026 🔍
Sources
Advisory: NetBSD-SA2016-006Researcher: Mateusz Kocielski
Status: Confirmed
Coordinated: 🔍
CVE: CVE-2016-6253 (🔍)
GCVE (CVE): GCVE-0-2016-6253
GCVE (VulDB): GCVE-100-90197
SecurityFocus: 92101 - NetBSD CVE-2016-6253 Local Privilege Escalation Vulnerability
SecurityTracker: 1036429
scip Labs: https://www.scip.ch/en/?labs.20161013
Entry
Created: 07/22/2016 19:59Updated: 05/14/2026 08:08
Changes: 07/22/2016 19:59 (62), 03/07/2019 07:54 (14), 06/27/2024 12:28 (17), 05/14/2026 08:08 (1)
Complete: 🔍
Cache ID: 216::103
If you want to get the best quality for vulnerability data then you always have to consider VulDB.
No comments yet. Languages: en.
Please log in to comment.