CVE-2023-1523
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.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | snapd | Fixed | 2.58+22.04.1 | UBUNTU-CVE-2023-1523 |
| Ubuntu 20.04 | snapd | Fixed | 2.58+20.04.1 | UBUNTU-CVE-2023-1523 |
| Ubuntu 18.04 | snapd | Fixed | 2.58+18.04.1 | UBUNTU-CVE-2023-1523 |
| Ubuntu 16.04 | snapd | Fix pending | 2.54.3+16.04.0ubuntu0.1~esm6 (Ubuntu Pro) | UBUNTU-CVE-2023-1523 |
| Debian 14 | snapd | Fixed | 2.59.5-1 | DEBIAN-CVE-2023-1523 |
| Debian 13 | snapd | Fixed | 2.59.5-1 | DEBIAN-CVE-2023-1523 |
| Debian 12 | snapd | Fix pending | DEBIAN-CVE-2023-1523 |
What the vendor says
As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Canonical Ltd. snapd: affected: 2.59.5 not affected
Vendor advisories:
- https://ubuntu.com/security/notices/USN-6125-1 (vendor-advisory)
References
- https://ubuntu.com/security/notices/USN-6125-1
- https://github.com/snapcore/snapd/pull/12849
- https://marc.info/?l=oss-security&m=167879021709955&w=2
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-1523
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.