CVE-2021-3800
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak...
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.5
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
CVE-2021-3800- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-552
- Updated
- 2026-11-02
CVE List No score
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
CVE-2021-3800- Weakness
- CWE-200
- Updated
- 2026-11-02
EUVDEUVD-2021-27060 No score
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
EUVD-2021-27060- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-58w9-h6f7-f979
7.5
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak...
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
GHSA-58w9-h6f7-f979- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-200, CWE-552
- Updated
- 2026-11-02
OSV
5.5
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
CVE-2021-3800- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-3800
5.5
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
DEBIAN-CVE-2021-3800- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
Show 11 moreShow less
OSVJLSEC-2025-159
5.5
A flaw was found in glib before version 2.63.6
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
JLSEC-2025-159- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVRHSA-2021:4385
5.5
Red Hat Security Advisory: glib2 security and bug fix update
- Record
RHSA-2021:4385- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVRLSA-2021:4385
5.3
Moderate: glib2 security and bug fix update
GLib provides the core application building blocks for libraries and applications written in C. It provides the core object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common data structures.
Security Fix(es):
-
glib2: Possible privilege escalation thourgh pkexec and aliases (CVE-2021-3800)
-
glib: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink (CVE-2021-28153)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 8.5 Release Notes linked from the References section.
- Record
RLSA-2021:4385- CVSS 3.1
- 5.3 Medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-3800
5.5
A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak content from files owned by privileged users to unprivileged ones under the right condition.
- Record
UBUNTU-CVE-2021-3800- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
OSVALSA-2021:4385 No score
Moderate: glib2 security and bug fix update
GLib provides the core application building blocks for libraries and applications written in C. It provides the core object system used in GNOME, the main loop implementation, and a large set of utility functions for strings and common data structures.
Security Fix(es):
-
glib2: Possible privilege escalation thourgh pkexec and aliases (CVE-2021-3800)
-
glib: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink (CVE-2021-28153)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.
- Record
ALSA-2021:4385- Updated
- 2026-11-02
OSVCLSA-2021-1640697102 No score
Fix CVE(s): CVE-2021-3800
- SECURITY UPDATE: Privilege Escalation
- debian/patches/CVE-2021-3800.patch: Drop a redundant environment variable in _g_locale_get_charset_aliases function at libcharset/localcharset.c.
- CVE-2021-3800
- Record
CLSA-2021-1640697102- Updated
- 2026-11-02
OSVCLSA-2022-1642083911 No score
Fixed CVE-2021-3800 in glib2
- CVE-2021-3800: Fix privilege escalation
- Record
CLSA-2022-1642083911- Updated
- 2026-11-02
OSVCLSA-2022-1642084196 No score
Fix of CVE: CVE-2021-3800
- CVE-2021-3800: Fix privilege escalation
- Record
CLSA-2022-1642084196- Updated
- 2026-11-02
OSVCLSA-2022-1645466687 No score
Fix of CVE: CVE-2021-28153, CVE-2021-3800
- CVE-2021-28153: g_file_replace() with G_FILE_CREATE_REPLACE_DESTINATION creates empty target for dangling symlink (#1939118)
- CVE-2021-3800: Possible privilege escalation thourgh pkexec and aliases (#1938284)
- Record
CLSA-2022-1645466687- Updated
- 2026-11-02
OSVSUSE-SU-2022:0828-1 No score
Security update for glib2
This update for glib2 fixes the following issues:
- CVE-2021-3800: Fixed a file content leak in pkexec due to charset aliases (bsc#1191489).
- Record
SUSE-SU-2022:0828-1- Updated
- 2026-11-02
OSVUSN-5189-1 No score
A security issue was fixed in GLib
It was discovered that GLib incorrectly handled certain environment variables. An attacker could possibly use this issue to escalate privileges.
- Record
USN-5189-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glib2-docAlmaLinux:8 From an advisory covering 2 CVEs |
before 2.56.4-156.el8 | 2.56.4-156.el8 |
glib2-staticAlmaLinux:8 From an advisory covering 2 CVEs |
before 2.56.4-156.el8 | 2.56.4-156.el8 |
libglib2.0-0TuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-0-refdbgTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-binTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-dataTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-devTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-docTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
libglib2.0-testsTuxCare:Ubuntu:16.04 |
before 2.48.2-0ubuntu4.8+tuxcare.els1 | 2.48.2-0ubuntu4.8+tuxcare.els1 |
glib2TuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
Show 42 moreShow less
| Package | Affected | Fixed |
|---|---|---|
glib2-develTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2-docTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2-staticTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2TuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2-develTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2-docTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2-staticTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els3 | 2.28.8-12.el6.tuxcare.els3 |
glib2TuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2-develTuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2-docTuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2-famTuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2-staticTuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2-testsTuxCare:CentOS:8.4 From an advisory covering 2 CVEs |
before 2.56.4-10.el8.4.1.tuxcare.els1 | 2.56.4-10.el8.4.1.tuxcare.els1 |
glib2.0Debian:12 |
before 2.64.0-1 | 2.64.0-1 |
glib2.0Debian:13 |
before 2.64.0-1 | 2.64.0-1 |
glib2.0Debian:14 |
before 2.64.0-1 | 2.64.0-1 |
glib2.0Debian:10 |
before 2.58.3-2+deb10u4, plus listed versions 2.58.3-22.58.3-2+deb10u12.58.3-2+deb10u22.58.3-2+deb10u3 |
2.58.3-2+deb10u4 |
Glib_jllJulia |
before 2.68.1+0 | 2.68.1+0 |
glib2Red Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-debuginfoRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-debugsourceRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-develRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-devel-debuginfoRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-famRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-fam-debuginfoRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-testsRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-tests-debuginfoRed Hat:enterprise_linux:8::baseos From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-debugsourceRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-devel-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-docRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-fam-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-staticRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2-tests-debuginfoRed Hat:enterprise_linux:8::crb From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2Rocky Linux:8 From an advisory covering 2 CVEs |
before 0:2.56.4-156.el8 | 0:2.56.4-156.el8 |
glib2SUSE:Linux Enterprise Software Development Kit 12 SP5 |
before 2.48.2-12.25.1 | 2.48.2-12.25.1 |
glib2SUSE:Linux Enterprise Server 12 SP5 |
before 2.48.2-12.25.1 | 2.48.2-12.25.1 |
glib2SUSE:Linux Enterprise Server for SAP Applications 12 SP5 |
before 2.48.2-12.25.1 | 2.48.2-12.25.1 |
glib2SUSE:Linux Enterprise Workstation Extension 12 SP5 |
before 2.48.2-12.25.1 | 2.48.2-12.25.1 |
glib2.0Ubuntu:Pro:14.04:LTS |
before 2.40.2-0ubuntu1.1+esm4, plus listed versions 2.38.0-1ubuntu12.38.1-12.39.1-0ubuntu12.39.1-0ubuntu22.39.1-0ubuntu3 Show 16 moreShow less2.39.2-0ubuntu12.39.2-0ubuntu22.39.3-0ubuntu42.39.4-0ubuntu12.39.90-0ubuntu12.39.91-0ubuntu22.39.91-0ubuntu32.39.92-22.40.0-12.40.0-1ubuntu12.40.0-22.40.2-0ubuntu12.40.2-0ubuntu1.12.40.2-0ubuntu1.1+esm12.40.2-0ubuntu1.1+esm22.40.2-0ubuntu1.1+esm3 |
2.40.2-0ubuntu1.1+esm4 |
glib2.0Ubuntu:Pro:16.04:LTS |
before 2.48.2-0ubuntu4.8+esm1, plus listed versions 2.46.1-12.46.1-22.47.1-12.47.3-32.47.4-1 Show 16 moreShow less2.47.5-12.47.6-12.48.0-1ubuntu32.48.0-1ubuntu42.48.1-1~ubuntu16.04.12.48.2-0ubuntu12.48.2-0ubuntu32.48.2-0ubuntu42.48.2-0ubuntu4.12.48.2-0ubuntu4.22.48.2-0ubuntu4.32.48.2-0ubuntu4.42.48.2-0ubuntu4.52.48.2-0ubuntu4.62.48.2-0ubuntu4.72.48.2-0ubuntu4.8 |
2.48.2-0ubuntu4.8+esm1 |
glib2.0Ubuntu:18.04:LTS |
before 2.56.4-0ubuntu0.18.04.9, plus listed versions 2.54.1-1ubuntu12.55.2-2ubuntu12.56.0-2ubuntu12.56.0-4ubuntu12.56.1-2ubuntu1 Show 10 moreShow less2.56.2-0ubuntu0.18.04.12.56.2-0ubuntu0.18.04.22.56.3-0ubuntu0.18.04.12.56.4-0ubuntu0.18.04.22.56.4-0ubuntu0.18.04.32.56.4-0ubuntu0.18.04.42.56.4-0ubuntu0.18.04.52.56.4-0ubuntu0.18.04.62.56.4-0ubuntu0.18.04.72.56.4-0ubuntu0.18.04.8 |
2.56.4-0ubuntu0.18.04.9 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-3800 is a medium vulnerability (CVSS 5.5) in Gnome Glib, published November 2, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.56%, the 47th percentile. Fixed in libglib2.0-0 2.48.2-0ubuntu4.8+tuxcare.els1.
References
bugzilla.redhat.com/show_bug.cgi?id=1938284
access.redhat.com/security/cve/CVE-2021-3800
openwall.com/lists/oss-security/2017/06/23/8
gitlab.gnome.org/GNOME/glib/-/commit/3529bb4450a51995
lists.debian.org/debian-lts-announce/2022/09/msg00020.html
security.netapp.com/advisory/ntap-20221028-0004
Show 26 moreShow less
nvd.nist.gov/vuln/detail/CVE-2021-3800
github.com/advisories/GHSA-58w9-h6f7-f979
vulners.com/cve/CVE-2021-28153
vulners.com/cve/CVE-2021-3800
errata.cloudlinux.com/ubuntu16_04/CLSA-2021-1640697102
errata.cloudlinux.com/ol6/CLSA-2022-1642083911.html
errata.cloudlinux.com/els6/CLSA-2022-1642084196.html
errata.cloudlinux.com/centos8.4-els/CLSA-2022-1645466687.html
security-tracker.debian.org/tracker/CVE-2021-3800
access.redhat.com/errata/RHSA-2021:4385
access.redhat.com/security/updates/classification
access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/8.5_release_notes
bugzilla.redhat.com/show_bug.cgi?id=1938291
bugzilla.redhat.com/show_bug.cgi?id=1948988
bugzilla.redhat.com/show_bug.cgi?id=1971533
security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_4385.json
cve.org/CVERecord?id=CVE-2021-3800
access.redhat.com/security/cve/CVE-2021-28153
cve.org/CVERecord?id=CVE-2021-28153
nvd.nist.gov/vuln/detail/CVE-2021-28153
errata.rockylinux.org/RLSA-2021:4385
suse.com/support/update/announcement/2022/suse-su-20220828-1
bugzilla.suse.com/1191489
suse.com/security/cve/CVE-2021-3800
ubuntu.com/security/CVE-2021-3800
ubuntu.com/security/notices/USN-5189-1