CWE-1077: Floating Point Comparison with Incorrect Operator
Filter
The code performs a comparison such as an equality test between two float (floating point) values, but it uses comparison operators that do not account for the possibility of loss of precision.
What the weakness is: CWE-1077 at MITRE. All weaknesses
Ask an AI about CWE-1077
Show the prompt
Explain CWE-1077: Floating Point Comparison with Incorrect Operator and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/1077.html and https://cve.bz/cve/cwe/1077?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
- 5.5CVE-2025-60496EPSS 0.4%
A Floating-Point Exception (FPE) in the reframer_send_packet function (/filters/reframer.c) of GPAC Project/MP4Box before 2.5 allows attackers to cause a Denial of Service (DoS) via supplying a crafted MP4 file.
- 5.5CVE-2022-4996EPSS 0.6%
A flaw has been found in mruby 3.1.0. Affected is the function udiv of the file bigint.c. Executing a manipulation can lead to floating point comparison with incorrect operator. It is possible to launch the attack remotely. The exploit has…
- 6.5CVE-2025-55658EPSS 0.3%
GPAC MP4Box v2.4 was discovered to contain a floating point exception in the gf_opus_parse_packet_header function (media_tools/av_parsers.c). bThis vulnerability allows attackers to cause a Denial of Service (DoS) via a crafted MP4 file.
- 5.5CVE-2023-4720EPSS 0.3%
Floating Point Comparison with Incorrect Operator in GitHub repository gpac/gpac prior to 2.3-DEV.
- 5.5CVE-2023-32627EPSS 0.3%
A floating point exception vulnerability was found in sox, in the read_samples function at sox/src/voc.c:334:18. This flaw can lead to a denial of service.
- 5.5CVE-2023-26590EPSS 0.2%
A floating point exception vulnerability was found in sox, in the lsx_aiffstartwrite function at sox/src/aiff.c:622:58. This flaw can lead to a denial of service.
- 5.5CVE-2022-4293EPSS 0.5%
Floating Point Comparison with Incorrect Operator in GitHub repository vim/vim prior to 9.0.0804.