CVE-2019-16214

MEDIUMCVSS 5.7/10EPSS 1.32%

Last modified

CVE-2019-16214 is a medium-severity vulnerability rated 5.7/10 on the CVSS scale. Libra Core before 2019-09-03 has an erroneous regular expression for inline comments, which makes it easier for attackers to interfere with code auditing by using a nonstandard line-break character for a comment. For example, a Move module author can enter the // sequence (which introduces a single-line comment), followed by very brief comment text, the \r character, and code that has security-critical functionality. EPSS estimates a 1.32% chance of exploitation in the next 30 days.

Description

Libra Core before 2019-09-03 has an erroneous regular expression for inline comments, which makes it easier for attackers to interfere with code auditing by using a nonstandard line-break character for a comment. For example, a Move module author can enter the // sequence (which introduces a single-line comment), followed by very brief comment text, the \r character, and code that has security-critical functionality. In many popular environments, this code is displayed on a separate line, and thus a reader may infer that the code is executed. However, the code is NOT executed, because language/compiler/ir_to_bytecode/src/parser.rs allows the comment to continue after the \r character.

Metrics

CVSS 3.1
5.7/10

CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N

EPSS Probability
1.32%

67.1th percentile

Probability of exploitation in the next 30 days. Learn more

Affected Software

VendorProductVersions
LibraLibra Core< 2019-09-03

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2019-16214?
Libra Core before 2019-09-03 has an erroneous regular expression for inline comments, which makes it easier for attackers to interfere with code auditing by using a nonstandard line-break character for a comment. For example, a Move module author can enter the // sequence (which introduces a single-line comment), followed by very brief comment text, the \r character, and code that has security-critical functionality. In many popular environments, this code is displayed on a separate line, and thus a reader may infer that the code is executed. However, the code is NOT executed, because language/compiler/ir_to_bytecode/src/parser.rs allows the comment to continue after the \r character.
How severe is CVE-2019-16214?
CVE-2019-16214 has a CVSS score of 5.7/10 (MEDIUM severity). The EPSS model estimates a 1.32% probability of exploitation in the next 30 days.
How do I fix CVE-2019-16214?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2019-16214?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST