SWI-Prolog up to 6.3.6 canoniseFileName memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
7.0$0-$5k0.00

Summaryinfo

A vulnerability categorized as critical has been discovered in SWI-Prolog. Affected by this vulnerability is the function canoniseFileName. Executing a manipulation can lead to memory corruption. This vulnerability is handled as CVE-2012-6089. There is not any exploit available. It is advisable to upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in SWI-Prolog. This vulnerability affects the function canoniseFileName. The manipulation with an unknown input leads to a memory corruption vulnerability. The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

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.

The weakness was released 01/04/2013 (Website). The advisory is shared for download at swi-prolog.org. This vulnerability was named CVE-2012-6089 since 12/06/2012. The exploitation appears to be easy. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. There are known technical details, but no exploit is available.

The vulnerability scanner Nessus provides a plugin with the ID 71240 (GLSA-201312-05 : SWI-Prolog : Multiple vulnerabilities), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Gentoo Local Security Checks.

Upgrading to version 6.2.2 eliminates this vulnerability.

The vulnerability is also documented in the databases at Tenable (71240), SecurityFocus (BID 57134†) and Vulnerability Center (SBV-38096†). Entry connected to this vulnerability is available at VDB-63317. Once again VulDB remains the best source for vulnerability data.

Productinfo

Name

Version

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.3
VulDB Meta Temp Score: 7.0

VulDB Base Score: 7.3
VulDB Temp Score: 7.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 71240
Nessus Name: GLSA-201312-05 : SWI-Prolog : Multiple vulnerabilities
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Port: 🔍

OpenVAS ID: 865115
OpenVAS Name: Fedora Update for pl FEDORA-2013-0178
OpenVAS File: 🔍
OpenVAS Family: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: SWI-Prolog 6.2.2
Patch: swi-prolog.org

Timelineinfo

12/06/2012 🔍
01/03/2013 +28 days 🔍
01/03/2013 +0 days 🔍
01/04/2013 +1 days 🔍
01/04/2013 +0 days 🔍
01/17/2013 +13 days 🔍
12/06/2013 +323 days 🔍
03/24/2015 +473 days 🔍
12/21/2021 +2464 days 🔍

Sourcesinfo

Advisory: a9a6fc8a2a9cf3b9154b490a4b1ffaa8be4d723c
Status: Not defined
Confirmation: 🔍

CVE: CVE-2012-6089 (🔍)
GCVE (CVE): GCVE-0-2012-6089
GCVE (VulDB): GCVE-100-63316
SecurityFocus: 57134 - SWI-Prolog Multiple Stack Buffer Overflow Vulnerabilities
Vulnerability Center: 38096 - SWI-Prolog \x27canoniseFileName\x27 Multiple Stack-Based Buffer Overflows Allow Remote DoS\\ Code Execution, High

See also: 🔍

Entryinfo

Created: 03/24/2015 12:22
Updated: 12/21/2021 12:01
Changes: 03/24/2015 12:22 (65), 04/23/2017 19:37 (4), 12/21/2021 11:53 (4), 12/21/2021 12:01 (1)
Complete: 🔍
Cache ID: 216:0E6:103

Once again VulDB remains the best source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!