Every CVE Search/ Get API key

CVE-2021-3800

A flaw was found in glib before version 2.63.6. Due to random charset alias, pkexec can leak...

5.5 MediumFix available

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

0.56%Down 0.4 points since Aug 24, 2022
90%50%10%1%

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 MediumCVSS: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 HighCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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 MediumCVSS: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

Affected packages
PackageAffectedFixed
glib2-doc
AlmaLinux:8
From an advisory covering 2 CVEs
before 2.56.4-156.el8
2.56.4-156.el8
glib2-static
AlmaLinux:8
From an advisory covering 2 CVEs
before 2.56.4-156.el8
2.56.4-156.el8
libglib2.0-0
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-0-refdbg
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-bin
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-data
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-dev
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-doc
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
libglib2.0-tests
TuxCare:Ubuntu:16.04
before 2.48.2-0ubuntu4.8+tuxcare.els1
2.48.2-0ubuntu4.8+tuxcare.els1
glib2
TuxCare:OracleLinux:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
Show 42 moreShow less
Affected packages
PackageAffectedFixed
glib2-devel
TuxCare:OracleLinux:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2-doc
TuxCare:OracleLinux:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2-static
TuxCare:OracleLinux:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2
TuxCare:CentOS:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2-devel
TuxCare:CentOS:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2-doc
TuxCare:CentOS:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2-static
TuxCare:CentOS:6
before 2.28.8-12.el6.tuxcare.els3
2.28.8-12.el6.tuxcare.els3
glib2
TuxCare: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-devel
TuxCare: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-doc
TuxCare: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-fam
TuxCare: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-static
TuxCare: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-tests
TuxCare: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.0
Debian:12
before 2.64.0-1
2.64.0-1
glib2.0
Debian:13
before 2.64.0-1
2.64.0-1
glib2.0
Debian:14
before 2.64.0-1
2.64.0-1
glib2.0
Debian: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_jll
Julia
before 2.68.1+0
2.68.1+0
glib2
Red 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-debuginfo
Red 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-debugsource
Red 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
Red 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-debuginfo
Red 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
Red 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-debuginfo
Red 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
Red 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-debuginfo
Red 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-debuginfo
Red 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-debugsource
Red 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-debuginfo
Red 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-doc
Red 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-debuginfo
Red 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-static
Red 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-debuginfo
Red 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
Rocky Linux:8
From an advisory covering 2 CVEs
before 0:2.56.4-156.el8
0:2.56.4-156.el8
glib2
SUSE:Linux Enterprise Software Development Kit 12 SP5
before 2.48.2-12.25.1
2.48.2-12.25.1
glib2
SUSE:Linux Enterprise Server 12 SP5
before 2.48.2-12.25.1
2.48.2-12.25.1
glib2
SUSE:Linux Enterprise Server for SAP Applications 12 SP5
before 2.48.2-12.25.1
2.48.2-12.25.1
glib2
SUSE:Linux Enterprise Workstation Extension 12 SP5
before 2.48.2-12.25.1
2.48.2-12.25.1
glib2.0
Ubuntu: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 less
2.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.0
Ubuntu: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 less
2.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.0
Ubuntu: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 less
2.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

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE 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

Show 26 moreShow less
MoveEnter Open