Heap-buffer-overflow in msyylex in mapserver
Summary
OSV-2022-1041: Heap-buffer-overflow in msyylex. Affects mapserver versions >= 3b0aa0d2757512fdaa72c6856ce4cf58ff57f8b4, < b062947e3122a7f3dfc5812a230ede71b5bc7664. Fixed in b062947e3122a7f3dfc5812a230ede71b5bc7664. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
MapServer is an open-source platform for publishing spatial data and interactive mapping applications on the web. It provides a wide range of functionality for creating and serving maps, including support for various data formats, rendering styles, and spatial analysis. However, a vulnerability has been discovered in the msyylex component of MapServer, which can lead to a heap-buffer-overflow issue.
Vulnerability Detail
The vulnerability in msyylex can be triggered by a heap-buffer-overflow write operation. This can potentially allow an attacker to overwrite adjacent memory locations, leading to a crash or potential code execution. The vulnerability was reported through the OSS-Fuzz project, and more details can be found in the associated bug report (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52305). The affected versions of MapServer are those introduced after commit 3b0aa0d2757512fdaa72c6856ce4cf58ff57f8b4 and before commit b062947e3122a7f3dfc5812a230ede71b5bc7664.
How To Fix
Minimum fixed version
b062947e3122a7f3dfc5812a230ede71b5bc7664
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is currently no known workaround for this vulnerability. It is advised to update to a fixed version of MapServer as soon as possible.
Conclusion
In conclusion, a heap-buffer-overflow vulnerability has been discovered in the msyylex component of MapServer. This vulnerability can potentially be exploited to crash the application or execute arbitrary code. It is crucial to update to a fixed version of MapServer to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for mapserver →
FAQ
MapServer is an open-source platform for publishing spatial data and interactive mapping applications on the web.
msyylex is a component of MapServer that is responsible for lexical analysis of map files.
This vulnerability can be exploited by crafting a malicious map file that triggers the heap-buffer-overflow in msyylex, potentially leading to a crash or code execution.
Yes, this vulnerability has been fixed in MapServer commit b062947e3122a7f3dfc5812a230ede71b5bc7664 and later versions.
No, there are currently no known workarounds for this vulnerability. Updating to a fixed version is recommended.
References
Related vulnerabilities
Recent vulnerabilities recorded for mapserver.