CVE-2021-27219
No exploitation reported by the sources we read.
- Published2021-02-15
- WeaknessCWE-681
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
Description
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.
Timeline
dates in UTC- 2021-02-1517:15CVE publishedNVD
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 33.x | = 33 | no fix published | NVD |
| 34.x | = 34 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.67 | ≥ 2.67.0, < 2.67.3 | 2.67.3 | NVD |
| 2.66 | < 2.66.6 | 2.66.6 | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| — | all versions | no fix published | NVD |
4 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- glibCleanStartall versions · fixed in 2.66.6-r0
- glibAzure Linux:2all versions · fixed in 2.60.1-5
- glibAlpine:v3.25all versions · fixed in 2.66.6-r0
- glibAlpine:v3.24all versions · fixed in 2.66.6-r0
- glibAlpine:v3.23all versions · fixed in 2.66.6-r0
- glibAlpine:v3.22all versions · fixed in 2.66.6-r0
- glibAlpine:v3.21all versions · fixed in 2.66.6-r0
- glibAlpine:v3.20all versions · fixed in 2.66.6-r0
78 more package ranges on OSV.dev
Vendor advisories
glib: integer overflow in g_bytes_new function on 64-bit platforms due to an implicit cast from 64 bits to 32 bits
Siemens SIMATIC S7-1500
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) · +2 more
SSA-398330: Vulnerabilities in the additional GNU/Linux subsystem of the SIMATIC S7-1500 CPU 1518(F)-4 PN/DP MFP >= V3.1.0 and < V3.1.5
SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AB0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518-4 PN/DP MFP (6ES7518-4AX00-1AC0) >= V3.1.0 < V3.1.5 · SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP (6ES7518-4FX00-1AB0) >= V3.1.0 < V3.1.5 · +2 more
Red Hat Security Advisory: mingw-glib2 security, bug fix, and enhancement update
Red Hat Bug Fix Advisory: Migration Toolkit for Containers (MTC) 1.4.6 release advisory
Red Hat Security Advisory: Red Hat Virtualization Host security update [ovirt-4.4.6]
11 more advisories
Fix
- Vendor fix CISA ICSA-23-348-10 · 5 productsUpdate to V3.1.5 or later version
- Vendor fix Siemens ProductCERT SSA-398330 · 1 productUpdate to V3.1.5 or later version
- Vendor fix Red Hat Product Security RHSA-2021:4526 · 7 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
- Vendor fix Red Hat Product Security RHBA-2021:2854 · 13 productsBefore applying this update, ensure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258 For details on how to install and use MTC, refer to: https://docs.openshift.com/container-pla…
- Vendor fix Red Hat Product Security RHSA-2021:2522 · 2 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/2974891
- Mitigation from the vendor CISA ICSA-23-348-10 · 5 productsOnly build and run applications from trusted sources.
Detection
- Nuclei template
- none so far ProjectDiscovery
- Exploit-DB
- no entry Exploit-DB
- Proof of concept
- PoC-in-GitHubno public repository identifiedread 2026-12-03
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVSS 3.17.5read 2026-10-23
- NVDCVSS 2.05read 2026-10-23
- NVDweakness (CWE)CWE-681read 2026-10-23
- FIRST EPSSEPSS score3.1 %2026-12-03
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-6438same flawAzure Linux · MIT
- EUVD-2021-13984same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-2wvj-9m7h-43j3same flawGitHub Advisory Database · CC-BY-4.0
- JLSEC-2025-157same flawJulia Security Advisories · CC-BY-4.0
- ALSA-2021:2170advisory covering several CVEsAlmaLinux · MIT
- ALSA-2021:4526advisory covering several CVEsAlmaLinux · MIT
- DLA-3044-1advisory covering several CVEsDebian · LicenseRef-unstated
- MGASA-2021-0318advisory covering several CVEsMageia · LicenseRef-unstated
- OESA-2021-1106advisory covering several CVEsopenEuler · LicenseRef-unstated
- OESA-2021-1107advisory covering several CVEsopenEuler · LicenseRef-unstated
- openSUSE-SU-2021:0406-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
- RHSA-2021:2147advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2170advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2171advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2172advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2173advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2174advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2175advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2203advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2204advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2467advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2519advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:2522advisory covering several CVEsRed Hat · CC-BY-4.0
- RHSA-2021:4526advisory covering several CVEsRed Hat · CC-BY-4.0
- RLSA-2021:2170advisory covering several CVEsRocky Linux · BSD-3-Clause
- SUSE-SU-2021:0778-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:0801-1advisory covering several CVEsSUSE · LicenseRef-unstated
- SUSE-SU-2021:0890-1advisory covering several CVEsSUSE · LicenseRef-unstated
- USN-4759-1advisory covering several CVEsUbuntu
Technical details
- CVSS v3 vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Published
- 2021-02-15
- Last modified
- 2026-10-14
- NVD status
- Modified
- GitHub advisory
- GHSA-2wvj-9m7h-43j3
Frequently asked questions
What is CVE-2021-27219?
Is CVE-2021-27219 actively exploited?
What is the CVSS score for CVE-2021-27219?
Running glib? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website checks · 250 API requests/month
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA ICS advisories (CSAF) · Public domain (US Government work)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-2wvj-9m7h-43j3
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- Siemens ProductCERT (CSAF) · TLP:WHITE (commercial use and redistribution granted)