Security Vulnerability Report
中文
CVE-2022-4988 CVSS 7.3 HIGH

CVE-2022-4988

Published: 2026-05-11 20:19:35
Last Modified: 2026-05-13 14:16:55
Source: 9b29abf9-4ab0-4765-b253-1875cd9b441e

Description

Alien::FreeImage versions through 1.001 for Perl contains several vulnerable libraries. Alien::FreeImage contains version 3.17.0 of the FreeImage library from 2017, which has known vulnerabilities such as CVE-2015-0852 and CVE-2025-65803. The library embeds other images libraries that also have known vulnerabilities.

CVSS Details

CVSS Score
7.3
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Configurations (Affected Products)

No configuration data available.

Alien::FreeImage <= 1.001

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/perl use strict; use warnings; use Alien::FreeImage; # This is a generic PoC structure demonstrating the usage. # Actual exploitation requires a crafted image file triggering CVE-2015-0852. my $malicious_file = 'exploit.bmp'; # Simulate loading the malicious image using the vulnerable library # In a real scenario, the underlying C library would crash or execute code # when parsing the specific malformed bytes in 'exploit.bmp'. print "Attempting to load $malicious_file using Alien::FreeImage...\n"; # Note: The specific function call to trigger the vulnerability depends on # how the application utilizes the library (e.g., loading a bitmap). # The vulnerability lies within the loaded shared object/static library. # Example usage (pseudo-code as specific API call varies by wrapper): # my $dib = FreeImage_Load($malicious_file);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-4988", "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e", "published": "2026-05-11T20:19:35.017", "lastModified": "2026-05-13T14:16:55.330", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Alien::FreeImage versions through 1.001 for Perl contains several vulnerable libraries.\n\nAlien::FreeImage contains version 3.17.0 of the FreeImage library from 2017, which has known vulnerabilities such as CVE-2015-0852 and CVE-2025-65803. The library embeds other images libraries that also have known vulnerabilities."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L", "baseScore": 7.3, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 3.9, "impactScore": 3.4}]}, "references": [{"url": "https://freeimage.sourceforge.io/", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://github.com/kmx/alien-freeimage/issues/4", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://github.com/kmx/alien-freeimage/issues/5", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://metacpan.org/release/KMX/Alien-FreeImage-1.001/source/src/Source", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2015-0852", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-65803", "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"}]}}