CVE-2025-2721
Medium · 5.3CVSS
5.3
EPSS
—
Published
Mar 25, 2025
CISA due date
—
Cloudanix analysis
A flaw in a common file handling library lets someone with access to the computer cause crashes or run harmful code by feeding it specially crafted data.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Library
- Class
- Buffer Overflow
- Remediation
- No Fix Yet
- Effort
- Other
- Patch risk
- Other
What it actually does
Heap-based buffer overflow in the gsf_base64_encode_simple function triggered by manipulation of a size_t argument, allowing memory corruption in affected GNOME libgsf versions up to 1.14.53.
Why it matters to the business
Local attackers can crash applications or potentially execute arbitrary code on systems using the vulnerable library, leading to downtime, data integrity issues, and possible compromise of container-related workloads in Red Hat environments where runc packages are impacted.
How an attack unfolds
An attacker with local access crafts malicious input that triggers the buffer overflow in gsf_base64_encode_simple when the library processes base64 data, resulting in heap corruption that can be leveraged for code execution.
How to fix it
Upgrade runc and runc-debuginfo packages on Red Hat rhel_extras_other:7 to version 0:1.0.0-59.dev.git2abd837.el7 or later; apply equivalent updates for any GNOME libgsf installations to versions beyond 1.14.53.
How to confirm the fix worked
Verify package versions match or exceed the fixed releases using package managers, and test affected functions with sample base64 inputs to confirm absence of overflow behavior.
Typical attack path
- Obtain local access to a system with vulnerable libgsf or dependent runc packages
- Identify an application or process invoking gsf_base64_encode_simple
- Supply crafted input that manipulates the size_t argument to overflow the heap buffer
- Achieve memory corruption leading to arbitrary code execution or denial of service
How to detect it
Review system logs for unexpected crashes in processes using libgsf or runc, and inspect for anomalous memory usage patterns around base64 encoding operations; check package inventory for unpatched versions.
What your security team should do
- Prioritize patching runc packages on all Red Hat systems within the next maintenance window due to the critical classification
- Scan for any direct or indirect use of libgsf in container runtimes and applications
- Implement local access controls and application sandboxing to reduce attack surface
- Monitor for future vendor responses or patches if initial disclosure received no reply
The record
A vulnerability was found in GNOME libgsf up to 1.14.53. It has been classified as critical. This affects the function gsf_base64_encode_simple. The manipulation of the argument size_t leads to heap-based buffer overflow. An attack has to be approached locally. The vendor was contacted early about this disclosure but did not respond in any way.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | libgsf | 0 | No fix |
| Debian:12 | libgsf | 0 | No fix |
| Debian:13 | libgsf | 0 | No fix |
| Ubuntu:20.04:LTS | libgsf | 0 | No fix |
| Ubuntu:22.04:LTS | libgsf | 0 | No fix |
| Ubuntu:24.04:LTS | libgsf | 0 | No fix |
| Ubuntu:24.10 | libgsf | 0 | No fix |
| Ubuntu:25.04 | libgsf | 0 | No fix |
| Ubuntu:Pro:14.04:LTS | libgsf | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | libgsf | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | libgsf | 0 | No fix |
Related vulnerabilities
- CVE-2025-2724 A vulnerability classified as problematic has been found in GNOME libgsf up to 1.14.53. Also affects libgsf
- CVE-2025-2722 A vulnerability was found in GNOME libgsf up to 1.14.53. Also affects libgsf
- CVE-2025-2723 A vulnerability was found in GNOME libgsf up to 1.14.53. Also affects libgsf
- CVE-2024-36474 An integer overflow vulnerability exists in the Compound Document Binary File format… Also affects libgsf
- CVE-2024-42415 An integer overflow vulnerability exists in the Compound Document Binary File format… Also affects libgsf