Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-6791: When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function ext

31
Routine
MEDIUM 6.6REMOTE

CVE-2026-6791 is a medium-severity flaw (CVSS 6.6) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory. The implementation allocates memory for this username directly on the stack using the strndupa macro. Because the size of this allocation was determined by the length of the user-supplied input without any bounds checks, passing an excessively long username e.g. thousands of char

Why this priority

  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score6.6 (Medium)
Attack vectorNetwork (remote)
Attack complexityHigh
Privileges neededNone
User interactionNone
EPSS exploit chance0.2% (top 88%)
CISA exploited listNo
WeaknessCWE-121
Published2026-08-10
Last modified2026-10-23
Publisher (CNA): GNU C Library

Last updated 2026-10-23 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Timeline

Exact fixes by distribution

Fedora 46 · clementine · FIXED · 1.4.2-1.fc46 · FEDORA-2026-3e748ef4d3 · source
sudo dnf upgrade --advisory=FEDORA-2026-3e748ef4d3
Ubuntu 22.04 · glibc · FIXED · 2.35-0ubuntu3.15
sudo apt update && sudo apt install --only-upgrade glibc dpkg --compare-versions "$(dpkg-query -W -f='${Version}' glibc)" ge "2.35-0ubuntu3.15" && echo PATCHED || echo STILL-VULNERABLE
Ubuntu 24.04 · glibc · FIXED · 2.39-0ubuntu8.9
sudo apt update && sudo apt install --only-upgrade glibc dpkg --compare-versions "$(dpkg-query -W -f='${Version}' glibc)" ge "2.39-0ubuntu8.9" && echo PATCHED || echo STILL-VULNERABLE
Debian 12 · glibc · NO FIX YET
Debian 13 · glibc · NO FIX YET
RHEL 10 · glibc · FIXED · glibc-2.39-142.el10_2
sudo dnf upgrade --advisory=RHSA-2026:76781 rpm -q glibc
RHEL 8 · glibc · FIXED · glibc-2.28-251.el8_10.43
sudo dnf upgrade --advisory=RHSA-2026:76777 rpm -q glibc
RHEL 9 · glibc · FIXED · glibc-2.34-283.el9_8
sudo dnf upgrade --advisory=RHSA-2026:79281 rpm -q glibc
RHEL 6 · compat-glibc · DEFERRED
RHEL 6 · glibc · DEFERRED
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-6791?

No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.

Is CVE-2026-6791 being exploited?

CVE-2026-6791 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-6791 affect?

CVE-2026-6791 affects affected software. Severity is medium (CVSS 6.6). When expanding paths that begin with a tilde (~) followed by a username, the internal parse_tilde function extracts the username to determine the user's home directory. The implementation allocates memory for this username directly on the

How urgent is CVE-2026-6791?

Priority 31/100. Remotely exploitable, no login, no user action

References

← Back to latest CVEs