CVE-2023-1523

Publication date 25 May 2023

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

10.0 · Critical

Score breakdown

Using the TIOCLINUX ioctl request, a malicious snap could inject contents into the input of the controlling terminal which could allow it to cause arbitrary commands to be executed outside of the snap sandbox after the snap exits. Graphical terminal emulators like xterm, gnome-terminal and others are not affected - this can only be exploited when snaps are run on a virtual console.

From the Ubuntu Security Team

It was discovered that the snap sandbox did not restrict the use of the ioctl system call with a TIOCLINUX request. This could be exploited by a malicious snap to inject commands into the controlling terminal which would then be executed outside of the snap sandbox once the snap had exited. This could allow an attacker to execute arbitrary commands outside of the confined snap sandbox. Note: graphical terminal emulators like xterm, gnome-terminal and others are not affected - this can only be exploited when snaps are run on a virtual console.

Status

Package Ubuntu Release Status
snapd 23.04 lunar
Fixed 2.59.1+23.04ubuntu1.1
22.10 kinetic
Fixed 2.58+22.10.1
22.04 LTS jammy
Fixed 2.58+22.04.1
20.04 LTS focal
Fixed 2.58+20.04.1
18.04 LTS bionic
Fixed 2.58+18.04.1
16.04 LTS xenial
14.04 LTS trusty Ignored end of standard support

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Severity score breakdown

Parameter Value
Base score 10.0 · Critical
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Changed
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H