{"api_version":"1","generated_at":"2026-07-24T17:18:43+00:00","cve":"CVE-2019-16214","urls":{"html":"https://cve.report/CVE-2019-16214","api":"https://cve.report/api/cve/CVE-2019-16214.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-16214","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-16214"},"summary":{"title":"CVE-2019-16214","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2019-09-11 04:15:00","updated_at":"2020-08-24 17:37:00"},"problem_types":["NVD-CWE-noinfo"],"metrics":[],"references":[{"url":"https://github.com/libra/libra/commit/7efb0221989f17fdf7f8486730898ed947a1e19e","name":"https://github.com/libra/libra/commit/7efb0221989f17fdf7f8486730898ed947a1e19e","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"[language] Restrict character classes allowed in IR · libra/diem@7efb022 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://blog.openzeppelin.com/libra-vulnerability-summary/","name":"https://blog.openzeppelin.com/libra-vulnerability-summary/","refsource":"MISC","tags":["Exploit","Third Party Advisory"],"title":"Libra’s Move IR Compiler Vulnerability: Technical Description – OpenZeppelin blog","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://blog.openzeppelin.com/libra-vulnerability-release/","name":"https://blog.openzeppelin.com/libra-vulnerability-release/","refsource":"MISC","tags":["Third Party Advisory"],"title":"OpenZeppelin Uncovers Vulnerability in Libra’s Move IR Compiler – OpenZeppelin blog","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-16214","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16214","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"16214","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libra","cpe5":"libra_core","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16214","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"libra","cpe5":"libra_core","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-16214","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://blog.openzeppelin.com/libra-vulnerability-summary/","refsource":"MISC","name":"https://blog.openzeppelin.com/libra-vulnerability-summary/"},{"url":"https://blog.openzeppelin.com/libra-vulnerability-release/","refsource":"MISC","name":"https://blog.openzeppelin.com/libra-vulnerability-release/"},{"url":"https://github.com/libra/libra/commit/7efb0221989f17fdf7f8486730898ed947a1e19e","refsource":"MISC","name":"https://github.com/libra/libra/commit/7efb0221989f17fdf7f8486730898ed947a1e19e"}]}},"nvd":{"publishedDate":"2019-09-11 04:15:00","lastModifiedDate":"2020-08-24 17:37:00","problem_types":["NVD-CWE-noinfo"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":5.7,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.1,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":3.5},"severity":"LOW","exploitabilityScore":6.8,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":true}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:libra:libra_core:*:*:*:*:*:*:*:*","versionEndExcluding":"2019-09-03","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"16214","Ordinal":"155804","Title":"CVE-2019-16214","CVE":"CVE-2019-16214","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"16214","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"16214","Ordinal":"2","NoteData":"2019-09-10","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"16214","Ordinal":"3","NoteData":"2019-09-10","Type":"Other","Title":"Modified"}]}}}