
Cloud Vulnerability DB
A community-led vulnerabilities database
Sane 1.2.1 contains a heap bounds overwrite vulnerability in the init_options() function within backend/test.c. The vulnerability is triggered via a long init_mode string in a configuration file. This vulnerability has been assigned CVE-2023-46052 and is currently marked as disputed because there is no expectation that test.c code should be executed with an attacker-controlled configuration file (NVD).
The vulnerability exists in the init_options() function where test_device->val[opt_mode].s buffer is set to the max mode size. However, the init_mode string is read directly from a file without proper length validation, which could be of any length. This leads to a buffer overwrite during the strcpy() operation, corrupting the heap and potentially causing a segmentation fault in subsequent malloc() calls (GitLab Issue).
When exploited, this vulnerability can lead to heap corruption and subsequent program crashes through segmentation faults. However, the practical impact is considered negligible since it requires an attacker to have control over the configuration file, which is not an expected attack scenario (Ubuntu Security).
The exploitability of this vulnerability is limited as it requires an attacker to have access to and ability to modify the configuration file. The vulnerability has been marked as disputed due to the unrealistic attack scenario of an attacker having control over the configuration file (Full Disclosure).
A fix has been implemented and committed to the Sane project repository. The correction is available in commit a92ffb3 (GitLab Issue). For systems where updating is not immediately possible, limiting access to configuration files serves as an effective mitigation strategy.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."