Skip to main content

A flaw was found in dash. The printf builtin reserves four bytes before converting a Unicode \u or \U escape, but the multi-byte token can need five… (CVE-2026-102474)

0
Medium
Published: 09/29/2026 (09/29/2026, 10:17:00 UTC)
Source: GCVE Database
Product: dash

Description

A flaw in dash's printf builtin causes it to reserve only four bytes before converting Unicode \u or \U escapes, while some multi-byte tokens require five or six bytes. This can lead to a local user writing one or two bytes beyond the reserved space when supplying such escapes, potentially causing memory corruption. The issue affects multiple specific dash versions used in various Ubuntu releases. The vulnerability has a medium severity rating with no known exploits in the wild.

CVSS v3.1

Score 4.0medium

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

Affected software

Ubuntu:14.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=trusty
Affected versions
=0.5.7-3ubuntu1=0.5.7-4ubuntu1
Ubuntu:16.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=xenial
Affected versions
=0.5.7-4ubuntu2=0.5.8-2.1ubuntu2
Ubuntu:18.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=bionic
Affected versions
=0.5.8-2.3ubuntu1=0.5.8-2.5ubuntu1=0.5.8-2.9ubuntu1=0.5.8-2.10
Ubuntu:20.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=focal
Affected versions
=0.5.10.2-6
Ubuntu:22.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=jammy
Affected versions
=0.5.11+git20210120+802ebd4-1build1=0.5.11+git20210903+057cd650a4ed-3=0.5.11+git20210903+057cd650a4ed-3build1
Ubuntu:24.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=noble
Affected versions
=0.5.12-6ubuntu1=0.5.12-6ubuntu3=0.5.12-6ubuntu4=0.5.12-6ubuntu5
Ubuntu:26.10more threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=stonking
Affected versions
=0.5.12-12ubuntu3
Ubuntu:26.04:LTSmore threats →ghsa
dash
pkg:deb/ubuntu/dash?arch=source&distro=resolute
Affected versions
=0.5.12-12ubuntu2=0.5.12-12ubuntu3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/17/2026, 22:46:51 UTC

Technical Analysis

The vulnerability in dash arises from the printf builtin's handling of Unicode escape sequences \u and \U. It reserves four bytes of buffer space before conversion, but certain multi-byte Unicode tokens require five or six bytes. A local attacker supplying such escape sequences via dash printf or echo %b, including through dash -c and positional arguments, can cause a buffer overflow by writing one or two bytes past the reserved buffer. This flaw affects specific dash versions listed, primarily in Ubuntu distributions. The CVSS 3.1 base score is 4.0, indicating medium severity with limited impact on integrity and no impact on confidentiality or availability.

Potential Impact

A local user can cause a buffer overflow by supplying specially crafted Unicode escape sequences to dash's printf builtin, potentially leading to memory corruption. The impact is limited to integrity loss without affecting confidentiality or availability. There are no known exploits in the wild for this vulnerability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid running untrusted input through dash's printf builtin with Unicode escape sequences. Monitor vendor channels for updates and apply patches once released.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
UBUNTU-CVE-2026-102474
Osv Schema Version
1.7.0
Ecosystems
["Ubuntu:14.04:LTS","Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:26.10","Ubuntu:26.04:LTS"]
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ad3f4fb2cdf04f656657ba9

Added to database: 10/17/2026, 22:21:47 UTC

Last enriched: 10/17/2026, 22:46:51 UTC

Last updated: 10/17/2026, 22:46:51 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses