MidnightBSD

Advisories for swi-prolog

CVE-2011-2896 MEDIUM

The LZW decompressor in the LWZReadByte function in giftoppm.c in the David Koblas GIF decoder in PBMPLUS, as used in the gif_read_lzw function in filter/image-gif.c in CUPS before 1.4.7, the LZWReadByte function in plug-ins/common/file-gif-load.c in GIMP 2.6.11 and earlier, the LZWReadByte function in img/gifread.c in XPCE in SWI-Prolog 5.10.4 and earlier, and other products, does not properly handle code words that are absent from the decompression table when encountered, which allows remote attackers to trigger an infinite loop or a heap-based buffer overflow, and possibly execute arbitrary code, via a crafted compressed stream, a related issue to CVE-2006-1168 and CVE-2011-2895.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-787,

Products Affected

Vendor Product Version
swi-prolog swi-prolog *
gimp gimp *
apple cups *
CVE-2012-6089 HIGH

Multiple stack-based buffer overflows in the canoniseFileName function in os/pl-os.c in SWI-Prolog before 6.2.5 and 6.3.x before 6.3.7 allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted filename.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-119,

Products Affected

Vendor Product Version
swi-prolog swi-prolog 6.2.1
swi-prolog swi-prolog 5.8.3
swi-prolog swi-prolog 6.3.4
swi-prolog swi-prolog 5.10.5
swi-prolog swi-prolog 5.10.2
swi-prolog swi-prolog 5.6.62
swi-prolog swi-prolog 6.0.0
swi-prolog swi-prolog 5.6.63
swi-prolog swi-prolog *
swi-prolog swi-prolog 5.6.64
swi-prolog swi-prolog 6.0.1
swi-prolog swi-prolog 6.3.2
swi-prolog swi-prolog 6.0.2
swi-prolog swi-prolog 6.3.3
swi-prolog swi-prolog 5.6.50
swi-prolog swi-prolog 5.6.55
swi-prolog swi-prolog 5.6.51
swi-prolog swi-prolog 5.6.59
swi-prolog swi-prolog 5.8.2
swi-prolog swi-prolog 5.6.54
swi-prolog swi-prolog 6.3.0
swi-prolog swi-prolog 6.3.6
swi-prolog swi-prolog 5.10.0
swi-prolog swi-prolog 5.10.4
swi-prolog swi-prolog 5.8.0
swi-prolog swi-prolog 5.6.52
swi-prolog swi-prolog 5.6.53
swi-prolog swi-prolog 5.6.56
swi-prolog swi-prolog 5.10.3
swi-prolog swi-prolog 5.10.1
swi-prolog swi-prolog 6.2.2
swi-prolog swi-prolog 5.6.61
swi-prolog swi-prolog 6.3.5
swi-prolog swi-prolog 6.3.1
swi-prolog swi-prolog 5.6.57
swi-prolog swi-prolog 5.6.58
swi-prolog swi-prolog 6.2.0
swi-prolog swi-prolog 6.2.3
swi-prolog swi-prolog 5.8.1
CVE-2012-6090 HIGH

Multiple stack-based buffer overflows in the expand function in os/pl-glob.c in SWI-Prolog before 6.2.5 and 6.3.x before 6.3.7 allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted filename.

CVSS 2.0

Severity: HIGH

Problem Type: CWE-119,

Products Affected

Vendor Product Version
swi-prolog swi-prolog 6.2.1
swi-prolog swi-prolog 5.8.3
swi-prolog swi-prolog 6.3.4
swi-prolog swi-prolog 5.10.5
swi-prolog swi-prolog 5.10.2
swi-prolog swi-prolog 5.6.62
swi-prolog swi-prolog 6.0.0
swi-prolog swi-prolog 5.6.63
swi-prolog swi-prolog *
swi-prolog swi-prolog 5.6.64
swi-prolog swi-prolog 6.0.1
swi-prolog swi-prolog 6.3.2
swi-prolog swi-prolog 6.0.2
swi-prolog swi-prolog 6.3.3
swi-prolog swi-prolog 5.6.50
swi-prolog swi-prolog 5.6.55
swi-prolog swi-prolog 5.6.51
swi-prolog swi-prolog 5.6.59
swi-prolog swi-prolog 5.8.2
swi-prolog swi-prolog 5.6.54
swi-prolog swi-prolog 6.3.0
swi-prolog swi-prolog 6.3.6
swi-prolog swi-prolog 5.10.0
swi-prolog swi-prolog 5.10.4
swi-prolog swi-prolog 5.8.0
swi-prolog swi-prolog 5.6.52
swi-prolog swi-prolog 5.6.53
swi-prolog swi-prolog 5.6.56
swi-prolog swi-prolog 5.10.3
swi-prolog swi-prolog 5.10.1
swi-prolog swi-prolog 6.2.2
swi-prolog swi-prolog 5.6.61
swi-prolog swi-prolog 6.3.5
swi-prolog swi-prolog 6.3.1
swi-prolog swi-prolog 5.6.57
swi-prolog swi-prolog 5.6.58
swi-prolog swi-prolog 6.2.0
swi-prolog swi-prolog 6.2.3
swi-prolog swi-prolog 5.8.1
CVE-2017-17524 MEDIUM

library/www_browser.pl in SWI-Prolog 7.2.3 does not validate strings before launching the program specified by the BROWSER environment variable, which might allow remote attackers to conduct argument-injection attacks via a crafted URL.

CVSS 2.0

Severity: MEDIUM

Problem Type: CWE-74,

Products Affected

Vendor Product Version
swi-prolog swi-prolog 7.2.3
CVE-2025-63848

Stored cross site scripting (xss) vulnerability in SWISH prolog thru 2.2.0 allowing attackers to execute arbitrary code via crafted web IDE notebook.

CVSS 3.x

Source Score Severity Vector Exploitability Impact
134c704f-9b21-4f2e-91b3-4a467353bcc0 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N 2.8 2.7

Products Affected

Vendor Product Version
swi-prolog swish *