Critical
Security advisory
Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an invalid read of size 1 in the Image::Indexed::sortPal function in image.cpp. However, this also causes memory corruption because of an attempted write to the invalid d[0xfffffffe] array element.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2017-14636
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 09:51 UTC · Revision 1
Source evidence
Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an invalid read of size 1 in the Image::Indexed::sortPal function in image.cpp. However, this also causes memory corruption because of an attempted write to the invalid d[0xfffffffe] array element.
osv:CVE-2017-14636
Complete source record
{
"id": "d6a672360574eb915c85352d2a07c1f0370e5dd18d6bcc39da55192ef139e5e2",
"url": "https://osv.dev/vulnerability/CVE-2017-14636",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2017-14636",
"summary": "Because of an integer overflow in sam2p 0.49.3, a loop executes 0xffffffff times, ending with an invalid read of size 1 in the Image::Indexed::sortPal function in image.cpp. However, this also causes memory corruption because of an attempted write to the invalid d[0xfffffffe] array element.",
"evidence": "osv:CVE-2017-14636",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2017-14636",
"aliases": [
"CVE-2017-14636"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/pts/sam2p",
"type": "GIT",
"events": [
{
"introduced": "3d061cdc9889d10618c28db03313bcc290dc8b89"
},
{
"last_affected": "3d061cdc9889d10618c28db03313bcc290dc8b89"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:sam2p_project:sam2p:0.49.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.49.3"
},
{
"last_affected": "0.49.3"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.49.3",
"v0.49.3"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2017-14636.json"
}
}
],
"modified": "2026-10-20T10:48:12.418026234Z",
"provider": "osv",
"references": [
"https://github.com/pts/sam2p/issues/14"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2017-14636",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 380137,
"published_at": "2017-09-22T07:29:00.207+00:00"
}