Use After Free in SixLabors.ImageSharp
ImageSharp is a managed, cross-platform, 2D graphics library. A heap-use-after-free flaw was found in ImageSharp's InitializeImage() function of PngDecoderCore.cs file. This vulnerability is triggered when an attacker passes a specially crafted PNG image file to ImageSharp for conversion, potentially leading to information disclosure. This issue has been patched in versions 3.1.3 and 2.1.7.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-27929
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 08:21 UTC · Revision 1
Source evidence
ImageSharp is a managed, cross-platform, 2D graphics library. A heap-use-after-free flaw was found in ImageSharp's InitializeImage() function of PngDecoderCore.cs file. This vulnerability is triggered when an attacker passes a specially crafted PNG image file to ImageSharp for conversion, potentially leading to information disclosure. This issue has been patched in versions 3.1.3 and 2.1.7.
osv:CVE-2024-27929
Complete source record
{
"id": "704c7bf7de891bb16c119652ace40061c116bf54fcd0a7d1b4b62f633e8f5a7f",
"url": "https://osv.dev/vulnerability/CVE-2024-27929",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Use After Free in SixLabors.ImageSharp",
"summary": "ImageSharp is a managed, cross-platform, 2D graphics library. A heap-use-after-free flaw was found in ImageSharp's InitializeImage() function of PngDecoderCore.cs file. This vulnerability is triggered when an attacker passes a specially crafted PNG image file to ImageSharp for conversion, potentially leading to information disclosure. This issue has been patched in versions 3.1.3 and 2.1.7.",
"evidence": "osv:CVE-2024-27929",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2024-27929",
"aliases": [
"CVE-2024-27929",
"GHSA-65x7-c272-7g7r"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sixlabors/imagesharp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fa7d712702d02df55ef1ba5d2c36c6714fbeeae6"
},
{
"introduced": "07fd93692adfcb7c61670d343954e686672fd6a6"
},
{
"fixed": "3f22857a80c854791837333e3e5caca38d2d1363"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sixlabors:imagesharp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.1.7"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:sixlabors:imagesharp:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "3.1.0"
},
{
"fixed": "3.1.3"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v2.1.6",
"v2.1.5",
"v2.1.4",
"v2.1.3",
"v2.1.2",
"v2.1.1",
"v2.1.0",
"v2.0.0",
"v1.0.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27929.json"
}
}
],
"modified": "2026-10-28T02:30:27.488313725Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27929.json",
"https://github.com/SixLabors/ImageSharp/security/advisories/GHSA-65x7-c272-7g7r",
"https://nvd.nist.gov/vuln/detail/CVE-2024-27929"
],
"provider_metadata": {
"cwe_ids": [
"CWE-416"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27929.json"
}
},
"related_cves": [
{
"value": "CVE-2024-27929",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493749,
"published_at": "2024-03-05T16:30:35.795+00:00"
}