CVE-2007-0842
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 5.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 5.9% in the next 30 days (EPSS).
- Severity: 5.0 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 5.9% · EPSS, next 30 days
- Weakness
- CWE-399
- Record status
- Modified
Affected
- Microsoft Visual c\+\+ 2005
Attack profile CVSS 2.0 · 5.0
- Attack vector
- Network
- Complexity
- Low
- Authentication
- None
- Confidentiality
- None
- Integrity
- None
- Availability
- Partial
Raw vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-0842.md and follow it. Check whether this project is affected by CVE-2007-0842. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://msdn2.microsoft.com/en-us/library/a442x3ye%28VS.80%29.aspx
- http://msdn2.microsoft.com/en-us/library/a442x3ye%28VS.80%29.aspx
References
- http://msdn2.microsoft.com/en-us/library/a442x3ye%28VS.80%29.aspx
- http://osvdb.org/33626
- http://securityreason.com/securityalert/2237
- http://www.securityfocus.com/archive/1/459847/100/0/threaded
- https://exchange.xforce.ibmcloud.com/vulnerabilities/32454
- http://msdn2.microsoft.com/en-us/library/a442x3ye%28VS.80%29.aspx
- http://osvdb.org/33626
- http://securityreason.com/securityalert/2237
- http://www.securityfocus.com/archive/1/459847/100/0/threaded
- https://exchange.xforce.ibmcloud.com/vulnerabilities/32454