Vulnerability Name:

CVE-2007-0166 (CCN-31464)

Assigned:2007-01-11
Published:2007-01-11
Updated:2008-11-15
Summary:The jail rc.d script in FreeBSD 5.3 up to 6.2 does not verify pathnames when writing to /var/log/console.log during a jail start-up, or when file systems are mounted or unmounted, which allows local root users to overwrite arbitrary files, or mount/unmount files, outside of the jail via a symlink attack.
CVSS v3 Severity:4.0 Medium (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): High
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): None
Integrity (I): Low
Availibility (A): Low
CVSS v2 Severity:6.6 Medium (CVSS v2 Vector: AV:L/AC:M/Au:S/C:C/I:C/A:C)
5.7 Medium (Temporal CVSS v2 Vector: AV:L/AC:M/Au:S/C:C/I:C/A:C/E:H/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Medium
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
2.6 Low (CCN CVSS v2 Vector: AV:L/AC:H/Au:N/C:N/I:P/A:P)
2.3 Low (CCN Temporal CVSS v2 Vector: AV:L/AC:H/Au:N/C:N/I:P/A:P/E:H/RL:OF/RC:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): High
Athentication (Au): None
Impact Metrics:Confidentiality (C): None
Integrity (I): Partial
Availibility (A): Partial
Vulnerability Type:CWE-Other
Vulnerability Consequences:File Manipulation
References:Source: MITRE
Type: CNA
CVE-2007-0166

Source: OSVDB
Type: UNKNOWN
32726

Source: CCN
Type: SA23730
FreeBSD jail rc.d Security Bypass Vulnerability

Source: SECUNIA
Type: UNKNOWN
23730

Source: CCN
Type: FreeBSD-SA-07:01.jail
Jail rc.d script privilege escalation

Source: FREEBSD
Type: Exploit, Vendor Advisory
FreeBSD-SA-07:01

Source: CCN
Type: SECTRACK ID: 1017505
FreeBSD Kernel jail(2) Call Lets Local Users Gain Elevated Privileges in Certain Cases

Source: SECTRACK
Type: UNKNOWN
1017505

Source: CCN
Type: OSVDB ID: 32726
FreeBSD jail rc.d Symlink Privilege Escalation

Source: BID
Type: UNKNOWN
22011

Source: CCN
Type: BID-22011
FreeBSD Jail RC.D Multiple Local Symbolic Link Vulnerabilities

Source: XF
Type: UNKNOWN
freebsd-jail-rcd-symlink(31464)

Vulnerable Configuration:Configuration 1:
  • cpe:/o:freebsd:freebsd:5.3:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:*:*:*:*:*:*:*:* (Version <= 6.2)

  • Configuration CCN 1:
  • cpe:/o:freebsd:freebsd:5.3:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:5.4:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:6.0:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:5.5:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:6.1:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:6.2:-:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    freebsd freebsd 5.3
    freebsd freebsd *
    freebsd freebsd 5.3 -
    freebsd freebsd 5.4 -
    freebsd freebsd 6.0 -
    freebsd freebsd 5.5 -
    freebsd freebsd 6.1 -
    freebsd freebsd 6.2 -