CVE-2018-20457

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-20457
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-20457.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-20457
Downstream
Published
2018-12-25T19:29:00Z
Modified
2025-11-07T15:02:40.209674Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In radare2 through 3.1.3, the assemble function inside libr/asm/p/asmarmcs.c allows attackers to cause a denial-of-service (application crash via an rnumcalc out-of-bounds read) by crafting an arm assembly input because a loop uses an incorrect index in armass.c and certain length validation is missing in armass64.c, a related issue to CVE-2018-20459.

References

Affected packages

Git / github.com/radare/radare2

Affected ranges

Type
GIT
Repo
https://github.com/radare/radare2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected

Git / github.com/radareorg/radare2

Affected ranges

Type
GIT
Repo
https://github.com/radareorg/radare2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.10.0
0.10.1
0.10.2
0.10.3
0.10.4
0.10.4-termux4
0.10.5
0.10.6
0.8.6
0.8.8
0.9
0.9.2
0.9.4
0.9.6
0.9.7
0.9.8
0.9.8-rc1
0.9.8-rc2
0.9.8-rc3
0.9.8-rc4
0.9.9

1.*

1.0
1.0.0
1.0.1
1.0.2
1.1.0
1.2.0
1.2.0-git
1.3.0
1.3.0-git
1.4.0
1.5.0
1.6.0

2.*

2.0.0
2.0.1
2.1.0
2.2.0
2.4.0
2.5.0
2.6.0
2.6.9
2.7.0
2.8.0
2.9.0

3.*

3.0.0
3.0.1
3.1.0
3.1.1
3.1.2
3.1.3

Other

radare2-windows-nightly
termux

Database specific

vanir_signatures

[
    {
        "id": "CVE-2018-20457-65313591",
        "source": "https://github.com/radareorg/radare2/commit/e5c14c167b0dcf0a53d76bd50bacbbcc0dfc1ae7",
        "signature_type": "Line",
        "target": {
            "file": "libr/asm/arch/arm/armass64.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "234972124300723021303519189872586181159",
                "64855739719150176419708370774937598661",
                "126982576917966750042234182581912397903",
                "2465101767988780529990207923766591025"
            ],
            "threshold": 0.9
        }
    },
    {
        "id": "CVE-2018-20457-81cc582b",
        "source": "https://github.com/radareorg/radare2/commit/e5c14c167b0dcf0a53d76bd50bacbbcc0dfc1ae7",
        "signature_type": "Line",
        "target": {
            "file": "libr/asm/arch/arm/armass.c"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "320504459856674577202378585621657567447",
                "241052845637009396674950399335434319279",
                "92424657880786021492995607119010819530",
                "217390376035072865716445880018909325770"
            ],
            "threshold": 0.9
        }
    },
    {
        "id": "CVE-2018-20457-84106391",
        "source": "https://github.com/radareorg/radare2/commit/e5c14c167b0dcf0a53d76bd50bacbbcc0dfc1ae7",
        "signature_type": "Function",
        "target": {
            "file": "libr/asm/arch/arm/armass64.c",
            "function": "parseOperands"
        },
        "deprecated": false,
        "signature_version": "v1",
        "digest": {
            "length": 3280.0,
            "function_hash": "159900584179997407881165760870783466648"
        }
    }
]