{"id":"CVE-2012-6636","published":"2014-03-03T02:00:00Z","modified":"2024-08-06T21:36:01Z","title":"The Android API before 17 does not properly restrict the WebView.addJavascriptInterface method, which allows remote…","vendor":null,"product":null,"tier":"tail","description":{"text":"The Android API before 17 does not properly restrict the WebView.addJavascriptInterface method, which allows remote attackers to execute arbitrary methods of Java objects by using the Java Reflection API within crafted JavaScript code that is loaded into the WebView component in an application targeted to API level 16 or earlier, a related issue to CVE-2013-4710.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.44784,"percentile":0.98803,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.cs.utexas.edu/~shmat/shmat_ndss14nofrak.pdf","tags":["x_refsource_MISC"]},{"url":"http://www.internetsociety.org/ndss2014/programme#session3","tags":["x_refsource_MISC"]},{"url":"http://openwall.com/lists/oss-security/2014/02/07/9","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://support.lenovo.com/us/en/product_security/len_6421","tags":["x_refsource_CONFIRM"]},{"url":"http://50.56.33.56/blog/?p=314","tags":["x_refsource_MISC"]},{"url":"http://developer.android.com/reference/android/os/Build.VERSION_CODES.html#JELLY_BEAN_MR1","tags":["x_refsource_CONFIRM"]},{"url":"http://developer.android.com/reference/android/webkit/WebView.html#addJavascriptInterface%28java.lang.Object%2C%20java.lang.String%29","tags":["x_refsource_CONFIRM"]},{"url":"http://jvn.jp/en/jp/JVN62161191/index.html","tags":["third-party-advisory","x_refsource_JVN"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":19.76},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2012-12-21"},"pocGithub":{"count":2,"skipped":0,"earliest":"2019-02-19","earliestUrl":"https://github.com/xckevin/AndroidWebviewInjectDemo","repos":[{"name":"xckevin/AndroidWebviewInjectDemo","url":"https://github.com/xckevin/AndroidWebviewInjectDemo","stars":1,"created":"2019-02-19"},{"name":"Snip3R69/CVE-2013-4710-WebView-RCE-Vulnerability","url":"https://github.com/Snip3R69/CVE-2013-4710-WebView-RCE-Vulnerability","stars":1,"created":"2022-05-11"}]},"metasploit":[{"name":"Android Browser and WebView addJavascriptInterface Code Execution","module":"exploit/android/browser/webview_addjavascriptinterface","type":"exploit","disclosureDate":"2012-12-21","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/android/browser/webview_addjavascriptinterface.rb"}],"first":{"date":"2012-12-21","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/41675"},"provenance":"source"},"summary":{"text":"The Android API before 17 fails to properly restrict the WebView.addJavascriptInterface method, affecting the WebView component in Android. An attacker can execute arbitrary methods of Java objects via the Java Reflection API within crafted JavaScript loaded into a WebView, in an application targeting API level 16 or earlier.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:43:10Z"},"euvd":{"id":"EUVD-2012-6482","exploited":false,"provenance":"source"},"exploits":[{"id":41675,"url":"https://www.exploit-db.com/exploits/41675","title":"Google Android 4.2 Browser and WebView - 'addJavascriptInterface' Code Execution (Metasploit)","date":"2012-12-21","verified":true,"provenance":"source"}],"lineage":{"children":[{"from":"CVE-2012-6636","to":"CVE-2013-4710","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"…hich allows remote attackers to execute arbitrary methods of Java objects or cause a denial of service (reboot) via a crafted web page, as demonstrated by use of the WebView.addJavascriptInterface method, a related issue to CVE-2012-6636.","from":"CVE.org","in":"CVE-2013-4710"},{"kind":"text","provenance":"source","relation":"related","quote":"…o execute arbitrary methods of Java objects by using the Java Reflection API within crafted JavaScript code that is loaded into the WebView component in an application targeted to API level 16 or earlier, a related issue to CVE-2013-4710.","from":"CVE.org","in":"CVE-2012-6636"}]},{"from":"CVE-2012-6636","to":"CVE-2014-0514","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"The Adobe Reader Mobile application before 11.2 for Android does not properly restrict use of JavaScript, which allows remote attackers to execute arbitrary code via a crafted PDF document, a related issue to CVE-2012-6636.","from":"CVE.org","in":"CVE-2014-0514"}]},{"from":"CVE-2012-6636","to":"CVE-2014-4968","relation":"related","confidence":"low","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"related","quote":"The WebView class and use of the WebView.addJavascriptInterface method in the Boat Browser application 8.0 and 8.0.1 for Android allow remote attackers to execute arbitrary code via a crafted web site, a related issue to CVE-2012-6636.","from":"CVE.org","in":"CVE-2014-4968"}]}]}}