CVE-2007-0842Microsoft Visual C++
Medium 5.0 No auth needed
Follow: this CVE · Microsoft · Microsoft Visual C++ We alert you by email or Slack (account required).
- Priority
- 46
- CVSS 2.0
- 5.0
- EPSS
- 5.9% probability of exploitation in 30 days · percentile 94
- Auth required
- No
- Published
- Feb 13, 2007
- Updated
- Jun 16, 2026
- Category
- Application · Windows
- Weakness (CWE)
- CWE-399
- Vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
What happens
The 64-bit versions of Microsoft Visual C++ 8.0 standard library (MSVCR80.DLL) time functions, including (1) localtime, (2) localtime_s, (3) gmtime, (4) gmtime_s, (5) ctime, (6) ctime_s, (7) wctime, (8) wctime_s, and (9) fstat, trigger an assertion error instead of a NULL pointer or EINVAL when processing a time argument later than Jan 1, 3000, which might allow context-dependent attackers to cause a denial of service (application exit) via large time values. NOTE: it could be argued that this is a design limitation of the functions, and the vulnerability lies with any application that does not validate arguments to these functions. However, this behavior is inconsistent with documentation, which does not list assertions as a possible result of an error condition.
What to do
- Apply the vendor's security update for Visual C++.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| microsoft | visual_c++ | 2005 |
Official sources
References
Links published by the sources. Open them with care.
- msdn2.microsoft.com Patch Vendor Advisory
- osvdb.org Broken Link
- securityreason.com Exploit
- www.securityfocus.com Third Party Advisory VDB Entry
- exchange.xforce.ibmcloud.com VDB Entry