readheader in archivereadsupportformatrar.c in libarchive 3.3.2 suffers from an off-by-one error for UTF-16 names in RAR archives, leading to an out-of-bounds read in archivereadformatrarreadheader.
[
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2017-14502-43d54606",
"signature_type": "Line",
"target": {
"file": "libarchive/archive_read_support_format_rar.c"
},
"digest": {
"threshold": 0.9,
"line_hashes": [
"13977532947477693712903437864826558758",
"86887419669346803201298408184209006481",
"230717690568527551977918927376985026289",
"85898820602385202674590415434893583601"
]
},
"source": "https://github.com/libarchive/libarchive/commit/5562545b5562f6d12a4ef991fae158bf4ccf92b6"
},
{
"signature_version": "v1",
"deprecated": false,
"id": "CVE-2017-14502-bce88207",
"signature_type": "Function",
"target": {
"function": "read_header",
"file": "libarchive/archive_read_support_format_rar.c"
},
"digest": {
"function_hash": "24182816260003273507586254840557177990",
"length": 9817.0
},
"source": "https://github.com/libarchive/libarchive/commit/5562545b5562f6d12a4ef991fae158bf4ccf92b6"
}
]