Vulnerability Name:

CVE-2020-25582 (CCN-198976)

Assigned:2020-09-14
Published:2021-02-24
Updated:2022-07-12
Summary:In FreeBSD 12.2-STABLE before r369334, 11.4-STABLE before r369335, 12.2-RELEASE before p4 and 11.4-RELEASE before p8 when a process, such as jexec(8) or killall(1), calls jail_attach(2) to enter a jail, the jailed root can attach to it using ptrace(2) before the current working directory is changed.
CVSS v3 Severity:8.7 High (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N)
7.6 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): High
User Interaction (UI): None
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): None
8.8 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
7.7 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:8.5 High (CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:N)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): None
9.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-362
Vulnerability Consequences:Gain Privileges
References:Source: MITRE
Type: CNA
CVE-2020-25582

Source: XF
Type: UNKNOWN
freebsd-cve202025582-priv-esc(198976)

Source: MISC
Type: Vendor Advisory
https://security.FreeBSD.org/advisories/FreeBSD-SA-21:05.jail_chdir.asc

Source: CONFIRM
Type: Third Party Advisory
https://security.netapp.com/advisory/ntap-20210423-0003/

Source: CCN
Type: FreeBSD Security Advisory FreeBSD-SA-20:24.ipv6
jail_attach(2) relies on the caller to change the cwd

Source: CCN
Type: WhiteSource Vulnerability Database
CVE-2020-25582

Vulnerable Configuration:Configuration 1:
  • cpe:/o:freebsd:freebsd:11.4:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p1:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p3:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p2:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:12.2:p1:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:12.2:p2:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:12.2:-:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:12.2:p3:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p4:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p5:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p6:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:p7:*:*:*:*:*:*

  • Configuration CCN 1:
  • cpe:/o:freebsd:freebsd:11.4:stable:*:*:*:*:*:*
  • OR cpe:/o:freebsd:freebsd:11.4:release:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    freebsd freebsd 11.4 -
    freebsd freebsd 11.4 p1
    freebsd freebsd 11.4 p3
    freebsd freebsd 11.4 p2
    freebsd freebsd 12.2 p1
    freebsd freebsd 12.2 p2
    freebsd freebsd 12.2 -
    freebsd freebsd 12.2 p3
    freebsd freebsd 11.4 p4
    freebsd freebsd 11.4 p5
    freebsd freebsd 11.4 p6
    freebsd freebsd 11.4 p7
    freebsd freebsd 11.4 stable
    freebsd freebsd 11.4 release