CVE-2020-35457
** DISPUTED ** GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of...
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
CVE-2020-35457- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-190, CWE-787
- Updated
- 2026-11-02
CVE List No score
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
CVE-2020-35457- Updated
- 2026-11-02
EUVDEUVD-2020-23131 No score
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
EUVD-2020-23131- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2fcx-98cm-5x99
7.8
** DISPUTED ** GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of...
** DISPUTED ** GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented.
- Record
GHSA-2fcx-98cm-5x99- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-190
- Updated
- 2026-11-02
OSVAZL-6435
7.8
CVE-2020-35457 affecting package glib for versions less than 2.60.1-5
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
AZL-6435- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2020-35457
7.8
CVE-2020-35457 does not affect BellSoft software
- Record
BELL-CVE-2020-35457- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSV
7.8
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
CVE-2020-35457- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2020-35457
7.8
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
DEBIAN-CVE-2020-35457- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVJLSEC-2025-155
7.8
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in...
GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented
- Record
JLSEC-2025-155- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 4.6 Medium
AV:L/AC:L/Au:N/C:P/I:P/A:P - Updated
- 2026-11-02
OSVOESA-2021-1106
7.8
glib2 security update
GLib is a bundle of three (formerly five) low-level system libraries written in C and developed mainly by GNOME. GLib's code was separated from GTK, so it can be used by software other than GNOME and has been developed in parallel ever since.
Security Fix(es):
An issue was discovered in GNOME GLib before 2.66.7 and 2.67.x before 2.67.4. If g_byte_array_new_take() was called with a buffer of 4GB or more on a 64-bit platform, the length would be truncated modulo 2**32, causing unintended length truncation.(CVE-2021-27218)
An issue was discovered in GNOME GLib before 2.66.6 and 2.67.x before 2.67.3. The function g_bytes_new has an integer overflow on 64-bit platforms due to an implicit cast from 64 bits to 32 bits. The overflow could potentially lead to memory corruption.(CVE-2021-27219)
** DISPUTED ** GNOME GLib before 2.65.3 has an integer overflow, that might lead to an out-of-bounds write, in g_option_group_add_entries. NOTE: the vendor's position is "Realistically this is not a security issue. The standard pattern is for callers to provide a static list of option entries in a fixed number of calls to g_option_group_add_entries()." The researcher states that this pattern is undocumented.(CVE-2020-35457)
- Record
OESA-2021-1106- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVCLSA-2025-1758705181 No score
glib2: Fix of CVE-2020-35457
- CVE-2020-35457: fix integer overflow in g_option_group_add_entries to prevent potential out-of-bounds write
- Bug775510: avoid calling Standard C string/array functions with NULL arguments
- Record
CLSA-2025-1758705181- Updated
- 2026-11-02
OSVCLSA-2025-1758709468 No score
glib2: Fix of CVE-2020-35457
- CVE-2020-35457: fix integer overflow in g_option_group_add_entries to prevent potential out-of-bounds write
- Bug775510: avoid calling Standard C string/array functions with NULL arguments
- Record
CLSA-2025-1758709468- Updated
- 2026-11-02
OSVCLSA-2025-1763023946 No score
Fix CVE(s): CVE-2020-35457
- SECURITY UPDATE: Integer Overflow in g_option_group_add_entries
- debian/patches/CVE-2020-35457.patch: goption: add a precondition to avoid GOptionEntry list overflow
- CVE-2020-35457
- Record
CLSA-2025-1763023946- Updated
- 2026-11-02
OSVCLSA-2026-1777391919 No score
glib2: Fix of CVE-2020-35457
- CVE-2020-35457: add a precondition in g_option_group_add_entries() to avoid a GOptionEntry list size overflow (GMAXSIZE). Patch backported from amazon-linux-2els.
- Record
CLSA-2026-1777391919- Updated
- 2026-11-02
OSVCLSA-2026-1777392531 No score
glib2: Fix of CVE-2020-35457
- CVE-2020-35457: add a precondition in g_option_group_add_entries() to avoid a GOptionEntry list size overflow (GMAXSIZE). Patch backported from amazon-linux-2els.
- Record
CLSA-2026-1777392531- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
glibAzure Linux:2 |
before 2.60.1-5 | 2.60.1-5 |
glib2TuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-develTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-docTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-staticTuxCare:OracleLinux:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2TuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-develTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-docTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
glib2-staticTuxCare:CentOS:6 |
before 2.28.8-12.el6.tuxcare.els4 | 2.28.8-12.el6.tuxcare.els4 |
libglib2.0-0TuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
Show 23 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libglib2.0-binTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
libglib2.0-dataTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
libglib2.0-devTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
libglib2.0-dev-binTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
libglib2.0-docTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
libglib2.0-testsTuxCare:Debian:10 |
before 2.58.3-2+deb10u6+tuxcare.els1 | 2.58.3-2+deb10u6+tuxcare.els1 |
glib2TuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-develTuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-docTuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-famTuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-staticTuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-testsTuxCare:CentOS:8.4 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2TuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-develTuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-docTuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-famTuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-staticTuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2-testsTuxCare:CentOS:8.5 |
before 2.56.4-156.el8.tuxcare.els7 | 2.56.4-156.el8.tuxcare.els7 |
glib2.0Debian:12 |
before 2.66.0-1 | 2.66.0-1 |
glib2.0Debian:13 |
before 2.66.0-1 | 2.66.0-1 |
glib2.0Debian:14 |
before 2.66.0-1 | 2.66.0-1 |
Glib_jllJulia |
before 2.68.1+0 | 2.68.1+0 |
glib2openEuler:20.03-LTS From an advisory covering 3 CVEs |
before 2.62.5-4.oe1 | 2.62.5-4.oe1 |
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-2020-35457 is a high vulnerability (CVSS 7.8) in Gnome Glib, published December 14, 2020. Its validity is disputed. EPSS puts the chance of exploitation in the next 30 days at 0.57%, the 47th percentile. Fixed in glib 2.60.1-5.
References
gitlab.gnome.org/GNOME/glib/-/commit/63c5b62f0a984fac9a9700b12f54fe878e016a5d
gitlab.gnome.org/GNOME/glib/-/issues/2197
gitlab.gnome.org/GNOME/glib/-/releases/2.65.3
nvd.nist.gov/vuln/detail/CVE-2020-35457
github.com/advisories/GHSA-2fcx-98cm-5x99
docs.bell-sw.com/security/cves/CVE-2020-35457
Show 9 moreShow less
errata.tuxcare.com/els_os/oraclelinux6els/CLSA-2025-1758705181.html
errata.tuxcare.com/els_os/centos6els/CLSA-2025-1758709468.html
errata.tuxcare.com/els_os/debian10els/CLSA-2025-1763023946.html
errata.tuxcare.com/els_os/centos8.4els/CLSA-2026-1777391919.html
errata.tuxcare.com/els_os/centos8.5els/CLSA-2026-1777392531.html
security-tracker.debian.org/tracker/CVE-2020-35457
openeuler.org/en/security/safety-bulletin/detail.html?id=openEuler-SA-2021-1106
nvd.nist.gov/vuln/detail/CVE-2021-27218
nvd.nist.gov/vuln/detail/CVE-2021-27219