CVE-2007-0842: Medium severity Microsoft Visual C\+\+ vulnerability

Published Feb 13, 2007
·
Updated

The 64-bit versions of Microsoft Visual C++ 8.0 standard library (MSVCR80.DLL) time functions, including (1) localtime, (2) localtimes, (3) gmtime, (4) gmtimes, (5) ctime, (6) ctimes, (7) wctime, (8) wctimes, 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.

Affected Software

3 affected components
Microsoft Visual C\+\+=2005
Microsoft Visual Studio=2005
Microsoft Visual C\+\+=8.0

Event History

Feb 13, 2007
CVE Published
via NVD·11:28 AM
CVE Published
via MITRE·04:00 PM
Data Sourced
via MITRE·04:00 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2007-0842?

CVE-2007-0842 is classified as a vulnerability that can lead to assertion errors in specific time functions of the Microsoft Visual C++ 8.0 standard library.

2

How do I fix CVE-2007-0842?

To fix CVE-2007-0842, update to a patched version of Microsoft Visual C++ or Visual Studio that addresses this vulnerability.

3

Which versions of Microsoft Visual C++ are affected by CVE-2007-0842?

CVE-2007-0842 affects the 64-bit versions of Microsoft Visual C++ 8.0 and Microsoft Visual Studio 2005.

4

What functions are involved in CVE-2007-0842?

CVE-2007-0842 involves the localtime, localtime_s, gmtime, gmtime_s, ctime, ctime_s, wctime, wctime_s, and fstat functions.

5

What happens when the affected functions are called in CVE-2007-0842?

When the affected functions are called, CVE-2007-0842 triggers an assertion error instead of returning a NULL pointer or EINVAL.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203