CVE-2018-12321

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-12321
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-12321.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-12321
Downstream
Published
2018-06-13T16:29:01Z
Modified
2025-10-31T04:02:46.658880Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

There is a heap out of bounds read in radare2 2.6.0 in javaswitchop() in libr/anal/p/anal_java.c via a crafted Java binary file.

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

Other

radare2-windows-nightly
termux

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/radareorg/radare2/commit/224e6bc13fa353dd3b7f7a2334588f1c4229e58d",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2018-12321-5a98cc76",
        "target": {
            "function": "java_switch_op",
            "file": "libr/anal/p/anal_java.c"
        },
        "digest": {
            "length": 1060.0,
            "function_hash": "15528339261126572565891708415209782515"
        },
        "signature_type": "Function"
    },
    {
        "source": "https://github.com/radareorg/radare2/commit/224e6bc13fa353dd3b7f7a2334588f1c4229e58d",
        "signature_version": "v1",
        "deprecated": false,
        "id": "CVE-2018-12321-7e3b986d",
        "target": {
            "file": "libr/anal/p/anal_java.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "11347164457415002568317789577850001708",
                "96782647240921708976954185013161249743",
                "106943443544325360594415232942224371242",
                "60274435335811049431342599766293769602",
                "72692582669977181218845025718624051804",
                "59808701922365157621815631450304092662",
                "215157068334786450552424370924927330218",
                "304330423206222384392878343796989878421"
            ]
        },
        "signature_type": "Line"
    }
]