In radare2 before 3.9.0, a command injection vulnerability exists in bin_symbols() in libr/core/cbin.c. By using a crafted executable file, it's possible to execute arbitrary shell commands with the permissions of the victim. This vulnerability is due to an insufficient fix for CVE-2019-14745 and improper handling of symbol names embedded in executables.
[
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/dd739f5a45b3af3d1f65f00fe19af1dbfec7aea7",
"id": "CVE-2019-16718-0dbcfed0",
"target": {
"file": "libr/core/cmd.c"
},
"digest": {
"line_hashes": [
"317488810962902592344445819136674902120",
"169866625871224724731512073221137884551",
"4269117821693612179544431679224963110",
"308241161931991606418629548940286326638",
"79127311771833399253728706101542289220",
"319637933649273731419112936991263528851",
"240612269648064862329691030475401667251",
"73085386569639581779180237792861462308",
"318526371614887852207008864056085256664",
"161557941339607733122696389635182555867",
"129292445152825761405057048662039317246",
"124133692657181207236947679391067088514",
"38530343760799359787036718555853910305",
"137443136584897030363067418202734259661"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/5411543a310a470b1257fb93273cdd6e8dfcb3af",
"id": "CVE-2019-16718-62e7dcb3",
"target": {
"file": "libr/core/cbin.c",
"function": "__filterShell"
},
"digest": {
"function_hash": "280743037490226055905725479237311853190",
"length": 366.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/5411543a310a470b1257fb93273cdd6e8dfcb3af",
"id": "CVE-2019-16718-82a12b35",
"target": {
"file": "libr/core/cbin.c",
"function": "__filterQuotedShell"
},
"digest": {
"function_hash": "260034411749770638762262674626475980159",
"length": 356.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/dd739f5a45b3af3d1f65f00fe19af1dbfec7aea7",
"id": "CVE-2019-16718-dbd63f19",
"target": {
"file": "libr/core/cmd.c",
"function": "r_core_cmd_subst_i"
},
"digest": {
"function_hash": "243284532810005839889338553972637709995",
"length": 21772.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/5411543a310a470b1257fb93273cdd6e8dfcb3af",
"id": "CVE-2019-16718-f23e17fe",
"target": {
"file": "libr/core/cbin.c",
"function": "bin_symbols"
},
"digest": {
"function_hash": "2673704822781323976305842750783050620",
"length": 6729.0
},
"signature_type": "Function",
"signature_version": "v1"
},
{
"deprecated": false,
"source": "https://github.com/radareorg/radare2/commit/5411543a310a470b1257fb93273cdd6e8dfcb3af",
"id": "CVE-2019-16718-f58cef60",
"target": {
"file": "libr/core/cbin.c"
},
"digest": {
"line_hashes": [
"26629979593913050824136394948263581958",
"265363944661202372784511328726447108520",
"196087913314792962461625103550267854487",
"221735703426535949197927758456269034458",
"36931061305904637821137331584243097313",
"95044129979965714679564635027021774328",
"102117031119003826815596448875140707537",
"192042764460574034996692861831520396425",
"254190525944088301019561908631374612763",
"210439594222495300614012499021717015591",
"319074680812911121623032214433013011111",
"227287562667788158347355795966419938344",
"179217010051314134020445369876468483115",
"20609959487657234431763969435635951488",
"256558726414972598923909558971908050903",
"75579071210590032179963523880660791748",
"79050911796625798115967659306742871012",
"61114614083136717713550040186406438590",
"177401642275492397547073737766579230139",
"121437004344586728614784867182446446135",
"180897627712744405325692611054485545100",
"306971051652392862994389404070278176331",
"134901848439852684576396063726356710277"
],
"threshold": 0.9
},
"signature_type": "Line",
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16718.json"