CVE Vulnerabilities

CVE-2023-1523

Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')

Published: Sep 01, 2023 | Modified: Nov 21, 2024
CVSS 3.x
10
CRITICAL
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.

Affected Software

NameVendorStart VersionEnd Version
SnapdCanonical*2.59.5 (excluding)
SnapdUbuntubionic*
SnapdUbuntudevel*
SnapdUbuntuesm-infra/bionic*
SnapdUbuntuesm-infra/focal*
SnapdUbuntuesm-infra/xenial*
SnapdUbuntufocal*
SnapdUbuntujammy*
SnapdUbuntukinetic*
SnapdUbuntulunar*
SnapdUbuntusnap*
SnapdUbuntutrusty*
SnapdUbuntuupstream*
SnapdUbuntuxenial*

Potential Mitigations

References