cve.bz

CVE-2023-1523 canonical: Injection

10.0 criticalExploit referenceEPSS 1.4%Fix available

Critical (10.0) in canonical. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
1.4% (unchanged from 1.4% a week ago; 1.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2024-10-01. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-1523 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-1523?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-1523?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-1523 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:snapdbefore 2.59.5
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux20.04
canonical:ubuntu_linux22.04
canonical:ubuntu_linux22.10
canonical:ubuntu_linux23.04

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12snapdno fix listedDEBIAN-CVE-2023-1523
Debian13, 14snapd2.59.5-1DEBIAN-CVE-2023-1523
Ubuntu18.04:LTSsnapd2.58+18.04.1UBUNTU-CVE-2023-1523 USN-6125-1
Ubuntu20.04:LTSsnapd2.58+20.04.1UBUNTU-CVE-2023-1523 USN-6125-1
Ubuntu22.04:LTSsnapd2.58+22.04.1UBUNTU-CVE-2023-1523 USN-6125-1
UbuntuPro:16.04:LTSsnapd2.54.3+16.04.0ubuntu0.1~esm6UBUNTU-CVE-2023-1523 USN-6125-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON