instruction
string
input
string
output
string
cwe_ids
list
cve_id
string
severity
string
cvss_score
float64
repo_name
string
func_name
string
file_path
string
commit_hash
string
is_vulnerable
int64
Analyze the following code function for security vulnerabilities
private @Nullable WifiConfiguration getInternalConfiguredNetwork(int networkId) { if (networkId == WifiConfiguration.INVALID_NETWORK_ID) { return null; } WifiConfiguration internalConfig = mConfiguredNetworks.getForCurrentUser(networkId); if (internalConfig == null) { ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getInternalConfiguredNetwork File: service/java/com/android/server/wifi/WifiConfigManager.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21242
CRITICAL
9.8
android
getInternalConfiguredNetwork
service/java/com/android/server/wifi/WifiConfigManager.java
72e903f258b5040b8f492cf18edd124b5a1ac770
0
Analyze the following code function for security vulnerabilities
public static String getFileExtension(String fullName) { checkNotNull(fullName); String fileName = new File(fullName).getName(); int dotIndex = fileName.lastIndexOf('.'); return (dotIndex == -1) ? "" : fileName.substring(dotIndex + 1); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getFileExtension File: guava/src/com/google/common/io/Files.java Repository: google/guava The code follows secure coding practices.
[ "CWE-552" ]
CVE-2023-2976
HIGH
7.1
google/guava
getFileExtension
guava/src/com/google/common/io/Files.java
feb83a1c8fd2e7670b244d5afd23cba5aca43284
0
Analyze the following code function for security vulnerabilities
public int getConnectTimeout() { return connectionTimeout; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getConnectTimeout File: samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java Repository: OpenAPITools/openapi-generator The code follows secure coding practices.
[ "CWE-668" ]
CVE-2021-21430
LOW
2.1
OpenAPITools/openapi-generator
getConnectTimeout
samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java
2c576483f26f85b3979c6948a131f585c237109a
0
Analyze the following code function for security vulnerabilities
boolean isDisplayNameUnique(String displayName, String currentJobName) { Collection<TopLevelItem> itemCollection = items.values(); // if there are a lot of projects, we'll have to store their // display names in a HashSet or something for a quick check for(TopLevelItem item : i...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isDisplayNameUnique File: core/src/main/java/jenkins/model/Jenkins.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-79" ]
CVE-2014-2065
MEDIUM
4.3
jenkinsci/jenkins
isDisplayNameUnique
core/src/main/java/jenkins/model/Jenkins.java
a0b00508eeb74d7033dc4100eb382df4e8fa72e7
0
Analyze the following code function for security vulnerabilities
@Override public void registerUserSwitchObserver(IUserSwitchObserver observer) { if (checkCallingPermission(INTERACT_ACROSS_USERS_FULL) != PackageManager.PERMISSION_GRANTED) { String msg = "Permission Denial: registerUserSwitchObserver() from pid=" + Binder.ge...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: registerUserSwitchObserver File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2015-3833
MEDIUM
4.3
android
registerUserSwitchObserver
services/core/java/com/android/server/am/ActivityManagerService.java
aaa0fee0d7a8da347a0c47cef5249c70efee209e
0
Analyze the following code function for security vulnerabilities
@Override public ActionBar getActionBar() { ActionBar ab = super.getActionBar(); if (ab != null) { ab.setHomeActionContentDescription(R.string.back); } return ab; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getActionBar File: PermissionController/src/com/android/permissioncontroller/permission/ui/ManagePermissionsActivity.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21132
MEDIUM
6.8
android
getActionBar
PermissionController/src/com/android/permissioncontroller/permission/ui/ManagePermissionsActivity.java
0679e4f35055729be7276536fe45fe8ec18a0453
0
Analyze the following code function for security vulnerabilities
@Override public ActivityOptions getActivityOptions(IBinder token) { final long origId = Binder.clearCallingIdentity(); try { synchronized (this) { final ActivityRecord r = ActivityRecord.isInStackLocked(token); if (r != null) { final A...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getActivityOptions File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2015-3833
MEDIUM
4.3
android
getActivityOptions
services/core/java/com/android/server/am/ActivityManagerService.java
aaa0fee0d7a8da347a0c47cef5249c70efee209e
0
Analyze the following code function for security vulnerabilities
public Optional<Object> value(String key) { return super.value().map(v -> v.getData().get(asNormalKey(key))); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: value File: web/play-java-forms/src/main/java/play/data/DynamicForm.java Repository: playframework The code follows secure coding practices.
[ "CWE-400" ]
CVE-2022-31018
MEDIUM
5
playframework
value
web/play-java-forms/src/main/java/play/data/DynamicForm.java
15393b736df939e35e275af2347155f296c684f2
0
Analyze the following code function for security vulnerabilities
private void updateProcessMsg(String str) { LOGGER.info(str); sb.append("<p>").append(str).append("</p>"); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: updateProcessMsg File: web/src/main/java/com/zrlog/web/plugin/WarUpdateVersionThread.java Repository: 94fzb/zrlog The code follows secure coding practices.
[ "CWE-79" ]
CVE-2019-16643
LOW
3.5
94fzb/zrlog
updateProcessMsg
web/src/main/java/com/zrlog/web/plugin/WarUpdateVersionThread.java
4a91c83af669e31a22297c14f089d8911d353fa1
0
Analyze the following code function for security vulnerabilities
@Override public void dumpCritical(FileDescriptor fd, PrintWriter pw, String[] args, boolean asProto) { if (asProto) return; if (!DumpUtils.checkDumpAndUsageStatsPermission(mActivityManagerService.mContext, "cpuinfo", pw)) return; ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: dumpCritical File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
dumpCritical
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
public void finishDrawingWindow(Session session, IWindow client) { final long origId = Binder.clearCallingIdentity(); try { synchronized (mWindowMap) { WindowState win = windowForClientLocked(session, client, false); if (win != null && win.mWinAnimator.finishD...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: finishDrawingWindow File: services/core/java/com/android/server/wm/WindowManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3875
HIGH
7.2
android
finishDrawingWindow
services/core/java/com/android/server/wm/WindowManagerService.java
69729fa8b13cadbf3173fe1f389fe4f3b7bd0f9c
0
Analyze the following code function for security vulnerabilities
public UserInfo getCurrentUser() throws RemoteException { Parcel data = Parcel.obtain(); Parcel reply = Parcel.obtain(); data.writeInterfaceToken(IActivityManager.descriptor); mRemote.transact(GET_CURRENT_USER_TRANSACTION, data, reply, 0); reply.readException(); UserInfo ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getCurrentUser File: core/java/android/app/ActivityManagerNative.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3832
HIGH
8.3
android
getCurrentUser
core/java/android/app/ActivityManagerNative.java
e7cf91a198de995c7440b3b64352effd2e309906
0
Analyze the following code function for security vulnerabilities
private PendingAssistExtras enqueueAssistContext(int requestType, Intent intent, String hint, IResultReceiver receiver, Bundle receiverExtras, IBinder activityToken, boolean focused, boolean newSessionId, int userHandle, Bundle args, long timeout) { enforceCallingPermission(android.Manif...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: enqueueAssistContext File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3912
HIGH
9.3
android
enqueueAssistContext
services/core/java/com/android/server/am/ActivityManagerService.java
6c049120c2d749f0c0289d822ec7d0aa692f55c5
0
Analyze the following code function for security vulnerabilities
public CryptoObject getCryptoObject() { return mCryptoObject; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getCryptoObject File: core/java/android/hardware/fingerprint/FingerprintManager.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3917
HIGH
7.2
android
getCryptoObject
core/java/android/hardware/fingerprint/FingerprintManager.java
f5334952131afa835dd3f08601fb3bced7b781cd
0
Analyze the following code function for security vulnerabilities
void extractPkcs12InBackground(final String password) { // show progress bar and extract certs in a background thread showDialog(PROGRESS_BAR_DIALOG); new AsyncTask<Void,Void,Boolean>() { @Override protected Boolean doInBackground(Void... unused) { return mCredential...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: extractPkcs12InBackground File: src/com/android/certinstaller/CertInstaller.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-2422
HIGH
9.3
android
extractPkcs12InBackground
src/com/android/certinstaller/CertInstaller.java
70dde9870e9450e10418a32206ac1bb30f036b2c
0
Analyze the following code function for security vulnerabilities
private boolean hasUsageStatsPermission(String callingPackage) { final int mode = mAppOpsService.noteOperation(AppOpsManager.OP_GET_USAGE_STATS, Binder.getCallingUid(), callingPackage); if (mode == AppOpsManager.MODE_DEFAULT) { return checkCallingPermission(Manifest.permissio...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: hasUsageStatsPermission File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
hasUsageStatsPermission
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
@Deprecated // v2.15 public static ObjectNode parse( final IOContext ioContext, final int options, final Reader reader ) throws IOException { Parser parser = new Parser(new TomlFactory(), ioContext, new TomlStreamReadException.ErrorContext(ioContext.co...
Vulnerability Classification: - CWE: CWE-787 - CVE: CVE-2023-3894 - Severity: HIGH - CVSS Score: 7.5 Description: validate nesting depth goes back tp zero Function: parse File: toml/src/main/java/com/fasterxml/jackson/dataformat/toml/Parser.java Repository: FasterXML/jackson-dataformats-text Fixed Code: @Deprecated ...
[ "CWE-787" ]
CVE-2023-3894
HIGH
7.5
FasterXML/jackson-dataformats-text
parse
toml/src/main/java/com/fasterxml/jackson/dataformat/toml/Parser.java
6f2f87f94d53fe440afd353b74c07ffa97d9888f
1
Analyze the following code function for security vulnerabilities
@Override // Binder call public void authenticate(final IBinder token, final long opId, final int groupId, final IFingerprintServiceReceiver receiver, final int flags, final String opPackageName) { final int callingUid = Binder.getCallingUid(); final int c...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: authenticate File: services/core/java/com/android/server/fingerprint/FingerprintService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3917
HIGH
7.2
android
authenticate
services/core/java/com/android/server/fingerprint/FingerprintService.java
f5334952131afa835dd3f08601fb3bced7b781cd
0
Analyze the following code function for security vulnerabilities
public void dismiss(IKeyguardDismissCallback callback, CharSequence message) { mHandler.obtainMessage(DISMISS, new DismissMessage(callback, message)).sendToTarget(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: dismiss File: packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21267
MEDIUM
5.5
android
dismiss
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java
d18d8b350756b0e89e051736c1f28744ed31e93a
0
Analyze the following code function for security vulnerabilities
@Override protected void restoreFromExtras(Bundle extras) { super.restoreFromExtras(extras); mCallType = extras.getInt(EXTRA_CALL_TYPE); mIsVideo = extras.getBoolean(EXTRA_CALL_IS_VIDEO); mPerson = extras.getParcelable(EXTRA_CALL_PERSON, Person.class); ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: restoreFromExtras File: core/java/android/app/Notification.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21288
MEDIUM
5.5
android
restoreFromExtras
core/java/android/app/Notification.java
726247f4f53e8cc0746175265652fa415a123c0c
0
Analyze the following code function for security vulnerabilities
public Boolean optBooleanObject(String key) { return this.optBooleanObject(key, false); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: optBooleanObject File: src/main/java/org/json/JSONObject.java Repository: stleary/JSON-java The code follows secure coding practices.
[ "CWE-770" ]
CVE-2023-5072
HIGH
7.5
stleary/JSON-java
optBooleanObject
src/main/java/org/json/JSONObject.java
661114c50dcfd53bb041aab66f14bb91e0a87c8a
0
Analyze the following code function for security vulnerabilities
void recordPssSampleLocked(ProcessRecord proc, int procState, long pss, long uss, long swapPss, long rss, int statType, long pssDuration, long now) { EventLogTags.writeAmPss(proc.pid, proc.uid, proc.processName, pss * 1024, uss * 1024, swapPss * 1024, rss * 1024, statType, procState,...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: recordPssSampleLocked File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
recordPssSampleLocked
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
public TList readListBegin() throws TException { return new TList(readByte(), readI32()); }
Vulnerability Classification: - CWE: CWE-770 - CVE: CVE-2019-11938 - Severity: MEDIUM - CVSS Score: 5.0 Description: Java: Check the size of the remaining frame before deserializing collection Summary: In order to avoid over-allocating memory for malformed or truncated frame, we ensure that we have enough data (we on...
[ "CWE-770" ]
CVE-2019-11938
MEDIUM
5
facebook/fbthrift
readListBegin
thrift/lib/java/src/main/java/com/facebook/thrift/protocol/TBinaryProtocol.java
71c97ffdcb61cccf1f8267774e873e21ebd3ebd3
1
Analyze the following code function for security vulnerabilities
@Deprecated public static Object getPrivateField(Object obj, String fieldName) { try { Field field = obj.getClass().getDeclaredField(fieldName); field.setAccessible(true); return field.get(obj); } catch (NoSuchFieldException e) { return null; ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getPrivateField File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-863" ]
CVE-2021-32620
MEDIUM
4
xwiki/xwiki-platform
getPrivateField
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/XWiki.java
f9a677408ffb06f309be46ef9d8df1915d9099a4
0
Analyze the following code function for security vulnerabilities
private BigInteger validate(BigInteger y, DHParameters dhParams) { if (dhParams.getQ() != null) { if (BigInteger.ONE.equals(y.modPow(dhParams.getQ(), dhParams.getP()))) { return y; } throw new IllegalArgumentException("Y value does not...
Vulnerability Classification: - CWE: CWE-320 - CVE: CVE-2016-1000346 - Severity: MEDIUM - CVSS Score: 4.3 Description: Added TLS validation check for DH keys Added further agreement result checks Function: validate File: core/src/main/java/org/bouncycastle/crypto/params/DHPublicKeyParameters.java Repository: bcgit/bc...
[ "CWE-320" ]
CVE-2016-1000346
MEDIUM
4.3
bcgit/bc-java
validate
core/src/main/java/org/bouncycastle/crypto/params/DHPublicKeyParameters.java
1127131c89021612c6eefa26dbe5714c194e7495
1
Analyze the following code function for security vulnerabilities
private BaseClassOutputFilterStream getBaseClassOutputFilterStream() { return (BaseClassOutputFilterStream) this.classFilter; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getBaseClassOutputFilterStream File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/filter/output/XWikiDocumentOutputFilterStream.java Repository: xwiki/xwiki-platform The code follows...
[ "CWE-459" ]
CVE-2023-36468
HIGH
8.8
xwiki/xwiki-platform
getBaseClassOutputFilterStream
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/filter/output/XWikiDocumentOutputFilterStream.java
15a6f845d8206b0ae97f37aa092ca43d4f9d6e59
0
Analyze the following code function for security vulnerabilities
public static Map<String,String> getThreadDump(VirtualChannel channel) throws IOException, InterruptedException { if(channel==null) return Collections.singletonMap("N/A","N/A"); return channel.call(new GetThreadDump()); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getThreadDump File: core/src/main/java/hudson/util/RemotingDiagnostics.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-264" ]
CVE-2014-2068
LOW
3.5
jenkinsci/jenkins
getThreadDump
core/src/main/java/hudson/util/RemotingDiagnostics.java
0530a6645aac10fec005614211660e98db44b5eb
0
Analyze the following code function for security vulnerabilities
void enforceShellRestriction(String restriction, int userHandle) { if (Binder.getCallingUid() == Process.SHELL_UID) { if (userHandle < 0 || mUserController.hasUserRestriction(restriction, userHandle)) { throw new SecurityException("Shell does not have permission to access user " ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: enforceShellRestriction File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3912
HIGH
9.3
android
enforceShellRestriction
services/core/java/com/android/server/am/ActivityManagerService.java
6c049120c2d749f0c0289d822ec7d0aa692f55c5
0
Analyze the following code function for security vulnerabilities
public int getMaximumFailedPasswordsForWipe(int userId) { return getDevicePolicyManager().getMaximumFailedPasswordsForWipe( null /* componentName */, userId); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getMaximumFailedPasswordsForWipe File: core/java/com/android/internal/widget/LockPatternUtils.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3908
MEDIUM
4.3
android
getMaximumFailedPasswordsForWipe
core/java/com/android/internal/widget/LockPatternUtils.java
96daf7d4893f614714761af2d53dfb93214a32e4
0
Analyze the following code function for security vulnerabilities
@Override public void error(TransformerException exception) throws TransformerException { throw exception; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: error File: hazelcast/src/main/java/com/hazelcast/internal/util/XmlUtil.java Repository: hazelcast The code follows secure coding practices.
[ "CWE-611" ]
CVE-2022-0265
HIGH
7.5
hazelcast
error
hazelcast/src/main/java/com/hazelcast/internal/util/XmlUtil.java
4d6b666cd0291abd618c3b95cdbb51aa4208e748
0
Analyze the following code function for security vulnerabilities
public void endAffordanceLaunch() { releaseGestureWakeLock(); mNotificationPanel.onAffordanceLaunchEnded(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: endAffordanceLaunch File: packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2017-0822
HIGH
7.5
android
endAffordanceLaunch
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c574568aaede7f652432deb7707f20ae54bbdf9a
0
Analyze the following code function for security vulnerabilities
@Override public Integer getId() { return appointmentRequestId; //To change body of implemented methods use File | Settings | File Templates. }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getId File: api/src/main/java/org/openmrs/module/appointmentscheduling/AppointmentRequest.java Repository: openmrs/openmrs-module-appointmentscheduling The code follows secure coding practices.
[ "CWE-79" ]
CVE-2022-4727
MEDIUM
6.1
openmrs/openmrs-module-appointmentscheduling
getId
api/src/main/java/org/openmrs/module/appointmentscheduling/AppointmentRequest.java
2ccbe39c020809765de41eeb8ee4c70b5ec49cc8
0
Analyze the following code function for security vulnerabilities
public String displayDocument(XWikiContext context) throws XWikiException { return displayDocument(getOutputSyntax(), context); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: displayDocument File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
displayDocument
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
public boolean isDownloadImageModalVisible() { return downloadImageModalVisible; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isDownloadImageModalVisible File: goobi-viewer-core/src/main/java/io/goobi/viewer/managedbeans/ActiveDocumentBean.java Repository: intranda/goobi-viewer-core The code follows secure coding practices.
[ "CWE-79" ]
CVE-2023-29014
MEDIUM
6.1
intranda/goobi-viewer-core
isDownloadImageModalVisible
goobi-viewer-core/src/main/java/io/goobi/viewer/managedbeans/ActiveDocumentBean.java
c29efe60e745a94d03debc17681c4950f3917455
0
Analyze the following code function for security vulnerabilities
public static void setCurrent(VaadinService service) { CurrentInstance.set(VaadinService.class, service); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setCurrent File: server/src/main/java/com/vaadin/server/VaadinService.java Repository: vaadin/framework The code follows secure coding practices.
[ "CWE-203" ]
CVE-2021-31403
LOW
1.9
vaadin/framework
setCurrent
server/src/main/java/com/vaadin/server/VaadinService.java
d852126ab6f0c43f937239305bd0e9594834fe34
0
Analyze the following code function for security vulnerabilities
private static String descriptorForFieldSignature(String signature) { return signature.replace('.', '/'); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: descriptorForFieldSignature File: luni/src/main/java/java/io/ObjectStreamClass.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2014-7911
HIGH
7.2
android
descriptorForFieldSignature
luni/src/main/java/java/io/ObjectStreamClass.java
738c833d38d41f8f76eb7e77ab39add82b1ae1e2
0
Analyze the following code function for security vulnerabilities
public LabelType[] getLabelTypes() { return labelList.toArray(new LabelType[labelList.size()]); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getLabelTypes File: src/main/java/org/codelibs/fess/util/GsaConfigParser.java Repository: codelibs/fess The code follows secure coding practices.
[ "CWE-611" ]
CVE-2018-1000822
HIGH
7.5
codelibs/fess
getLabelTypes
src/main/java/org/codelibs/fess/util/GsaConfigParser.java
faa265b8d8f1c71e1bf3229fba5f8cc58a5611b7
0
Analyze the following code function for security vulnerabilities
public static SsurgeonEdit parseEditLine(String editLine) { // Extract the operation name first String[] tuples1 = editLine.split("\\s+", 2); if (tuples1.length < 2) { throw new IllegalArgumentException("Error in SsurgeonEdit.parseEditLine: invalid number of arguments"); } String command = tup...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: parseEditLine File: src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/Ssurgeon.java Repository: stanfordnlp/CoreNLP The code follows secure coding practices.
[ "CWE-611" ]
CVE-2021-3878
HIGH
7.5
stanfordnlp/CoreNLP
parseEditLine
src/edu/stanford/nlp/semgraph/semgrex/ssurgeon/Ssurgeon.java
e5bbe135a02a74b952396751ed3015e8b8252e99
0
Analyze the following code function for security vulnerabilities
public void addXObjectsToRemoveFromVersion(XWikiDocument previousVersion) { if (previousVersion == null) { return; } for (List<BaseObject> objects : previousVersion.getXObjects().values()) { for (BaseObject originalObj : objects) { if (originalObj != n...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: addXObjectsToRemoveFromVersion File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-787" ]
CVE-2023-26470
HIGH
7.5
xwiki/xwiki-platform
addXObjectsToRemoveFromVersion
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/doc/XWikiDocument.java
db3d1c62fc5fb59fefcda3b86065d2d362f55164
0
Analyze the following code function for security vulnerabilities
protected String detail(Object id) { Log log = new Log().findByIdOrAlias(id); if (log != null) { Integer logId = log.get("logId"); log.put("lastLog", new Log().findLastLog(logId, I18nUtil.getStringFromRes("noLastLog"))); log.put("nextLog", new Log().findNextLog(logId,...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: detail File: web/src/main/java/com/zrlog/web/controller/blog/ArticleController.java Repository: 94fzb/zrlog The code follows secure coding practices.
[ "CWE-79" ]
CVE-2020-21316
MEDIUM
4.3
94fzb/zrlog
detail
web/src/main/java/com/zrlog/web/controller/blog/ArticleController.java
b921c1ae03b8290f438657803eee05226755c941
0
Analyze the following code function for security vulnerabilities
public synchronized PlatformPluginManager getPluginManager() { if (pluginManager == null) { pluginManager = new PlatformPluginManager(); } return pluginManager; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getPluginManager File: test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java Repository: metersphere The code follows secure coding practices.
[ "CWE-918" ]
CVE-2022-23544
MEDIUM
6.1
metersphere
getPluginManager
test-track/backend/src/main/java/io/metersphere/service/PlatformPluginService.java
d0f95b50737c941b29d507a4cc3545f2dc6ab121
0
Analyze the following code function for security vulnerabilities
@Override protected String determineFailureUrl(HttpServletRequest request, AuthenticationException failed) { Properties excMap = getExceptionMappings(); String failedClassName = failed.getClass().getName(); String whereFrom = request.getParameter("from"); request.getSession().setAttribute("from", wher...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: determineFailureUrl File: core/src/main/java/hudson/security/AuthenticationProcessingFilter2.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-287" ]
CVE-2014-2066
MEDIUM
6.8
jenkinsci/jenkins
determineFailureUrl
core/src/main/java/hudson/security/AuthenticationProcessingFilter2.java
8ac74c350779921598f9d5edfed39dd35de8842a
0
Analyze the following code function for security vulnerabilities
public static String getSearchURL() { List list = Stapler.getCurrentRequest().getAncestors(); for( int i=list.size()-1; i>=0; i-- ) { Ancestor anc = (Ancestor) list.get(i); if(anc.getObject() instanceof SearchableModelObject) return anc.getUrl()+"/search/"; ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getSearchURL File: core/src/main/java/hudson/Functions.java Repository: jenkinsci/jenkins The code follows secure coding practices.
[ "CWE-310" ]
CVE-2014-2061
MEDIUM
5
jenkinsci/jenkins
getSearchURL
core/src/main/java/hudson/Functions.java
bf539198564a1108b7b71a973bf7de963a6213ef
0
Analyze the following code function for security vulnerabilities
@Override public String evaluate(String script, ScriptContext context) { Expression expression = spelExpressionParser.parseExpression(script); StandardEvaluationContext spelContext = new StandardEvaluationContext(context); return expression.getValue(spelContext, String.class); }
Vulnerability Classification: - CWE: CWE-917 - CVE: CVE-2023-27821 - Severity: CRITICAL - CVSS Score: 9.8 Description: Fix spel expression injection vulnerability Function: evaluate File: core/src/main/java/com/databasir/core/domain/mock/script/SpelScriptEvaluator.java Repository: vran-dev/databasir Fixed Code: @Ove...
[ "CWE-917" ]
CVE-2023-27821
CRITICAL
9.8
vran-dev/databasir
evaluate
core/src/main/java/com/databasir/core/domain/mock/script/SpelScriptEvaluator.java
10482aa7819439b0b571b4fd2f1e092f428b7cdc
1
Analyze the following code function for security vulnerabilities
private String getComponent(SilverpeasComponentInstance componentInst) { StringBuilder breadcrumb = new StringBuilder(); if (componentInst != null) { // Display component's label if (!componentInst.isPersonal()) { breadcrumb.append(CONNECTOR); } breadcrumb.append("<a href=\""); ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getComponent File: core-web/src/main/java/org/silverpeas/core/web/util/viewgenerator/html/browsebars/BrowseBarComplete.java Repository: Silverpeas/Silverpeas-Core The code follows secure coding practices.
[ "CWE-79" ]
CVE-2023-47324
MEDIUM
5.4
Silverpeas/Silverpeas-Core
getComponent
core-web/src/main/java/org/silverpeas/core/web/util/viewgenerator/html/browsebars/BrowseBarComplete.java
9a55728729a3b431847045c674b3e883507d1e1a
0
Analyze the following code function for security vulnerabilities
private MutableHttpResponse<Object> forStatus(AnnotationMetadata annotationMetadata) { HttpStatus status = HttpStatus.OK; if (annotationMetadata.hasAnnotation(Status.class)) { status = annotationMetadata.stringValue(Status.class).map(HttpStatus::valueOf).orElse(status); } r...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: forStatus File: http-server-netty/src/main/java/io/micronaut/http/server/netty/RoutingInBoundHandler.java Repository: micronaut-projects/micronaut-core The code follows secure coding practices.
[ "CWE-400" ]
CVE-2022-21700
MEDIUM
5
micronaut-projects/micronaut-core
forStatus
http-server-netty/src/main/java/io/micronaut/http/server/netty/RoutingInBoundHandler.java
b8ec32c311689667c69ae7d9f9c3b3a8abc96fe3
0
Analyze the following code function for security vulnerabilities
@Override public void onBootPhase(int phase) { mService.mBootPhase = phase; if (phase == PHASE_SYSTEM_SERVICES_READY) { mService.mBatteryStatsService.systemServicesReady(); mService.mServices.systemServicesReady(); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: onBootPhase File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-863" ]
CVE-2018-9492
HIGH
7.2
android
onBootPhase
services/core/java/com/android/server/am/ActivityManagerService.java
962fb40991f15be4f688d960aa00073683ebdd20
0
Analyze the following code function for security vulnerabilities
@Override public String getWifiMacAddress(ComponentName admin) { Objects.requireNonNull(admin, "ComponentName is null"); final CallerIdentity caller = getCallerIdentity(admin); Preconditions.checkCallAuthorization( isDefaultDeviceOwner(caller) || isProfileOwnerOfOrganization...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getWifiMacAddress File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
getWifiMacAddress
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
static final void dumpMemItems(ProtoOutputStream proto, long fieldId, String tag, ArrayList<MemItem> items, boolean sort, boolean dumpPss, boolean dumpSwapPss) { if (sort) { sortMemItems(items, dumpPss); } for (int i=0; i<items.size(); i++) { MemItem mi = ite...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: dumpMemItems File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21292
MEDIUM
5.5
android
dumpMemItems
services/core/java/com/android/server/am/ActivityManagerService.java
d10b27e539f7bc91c2360d429b9d05f05274670d
0
Analyze the following code function for security vulnerabilities
void settingsSecurePutString(String name, String value) { Settings.Secure.putString(mContext.getContentResolver(), name, value); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: settingsSecurePutString File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
settingsSecurePutString
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
public String getRedirectUri() { return mRedirectUri; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getRedirectUri File: src/com/android/exchange/eas/EasAutoDiscover.java Repository: android The code follows secure coding practices.
[ "CWE-200" ]
CVE-2016-2415
HIGH
7.1
android
getRedirectUri
src/com/android/exchange/eas/EasAutoDiscover.java
0d1a38b1755efe7ed4e8d7302a24186616bba9b2
0
Analyze the following code function for security vulnerabilities
@Override public void setLaunchPendingIntent(PendingIntent pi) throws RemoteException { mLaunchIntent = pi; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setLaunchPendingIntent File: services/core/java/com/android/server/media/MediaSessionRecord.java Repository: android The code follows secure coding practices.
[ "CWE-400" ]
CVE-2023-21280
MEDIUM
5.5
android
setLaunchPendingIntent
services/core/java/com/android/server/media/MediaSessionRecord.java
06e772e05514af4aa427641784c5eec39a892ed3
0
Analyze the following code function for security vulnerabilities
private boolean optimisticallyRegisterAppId(@NonNull ScanResult result) throws PackageManagerException { if (!result.mExistingSettingCopied || result.needsNewAppId()) { synchronized (mPm.mLock) { // THROWS: when we can't allocate a user id. add call to check if there's ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: optimisticallyRegisterAppId File: services/core/java/com/android/server/pm/InstallPackageHelper.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21257
HIGH
7.8
android
optimisticallyRegisterAppId
services/core/java/com/android/server/pm/InstallPackageHelper.java
1aec7feaf07e6d4568ca75d18158445dbeac10f6
0
Analyze the following code function for security vulnerabilities
@JsonIgnore public Collection<String> getAttributeNames() { return attributes.keySet(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getAttributeNames File: base/common/src/main/java/com/netscape/certsrv/base/RESTMessage.java Repository: dogtagpki/pki The code follows secure coding practices.
[ "CWE-611" ]
CVE-2022-2414
HIGH
7.5
dogtagpki/pki
getAttributeNames
base/common/src/main/java/com/netscape/certsrv/base/RESTMessage.java
16deffdf7548e305507982e246eb9fd1eac414fd
0
Analyze the following code function for security vulnerabilities
void onApplicationUserDataCleared(String packageName, boolean succeeded);
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: onApplicationUserDataCleared File: core/java/android/app/admin/DevicePolicyManager.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-40089
HIGH
7.8
android
onApplicationUserDataCleared
core/java/android/app/admin/DevicePolicyManager.java
e2e05f488da6abc765a62e7faf10cb74e729732e
0
Analyze the following code function for security vulnerabilities
public static boolean areRemoteViewsChanged(Builder first, Builder second) { if (!Objects.equals(first.usesStandardHeader(), second.usesStandardHeader())) { return true; } if (areRemoteViewsChanged(first.mN.contentView, second.mN.contentView)) { return true; } ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: areRemoteViewsChanged File: core/java/android/app/Notification.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-21288
MEDIUM
5.5
android
areRemoteViewsChanged
core/java/android/app/Notification.java
726247f4f53e8cc0746175265652fa415a123c0c
0
Analyze the following code function for security vulnerabilities
public ApiClient setHttpClient(Client httpClient) { this.httpClient = httpClient; return this; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setHttpClient File: samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java Repository: OpenAPITools/openapi-generator The code follows secure coding practices.
[ "CWE-668" ]
CVE-2021-21430
LOW
2.1
OpenAPITools/openapi-generator
setHttpClient
samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/ApiClient.java
2c576483f26f85b3979c6948a131f585c237109a
0
Analyze the following code function for security vulnerabilities
public Set<String> getTags() { return this.tags; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getTags File: clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNode.java Repository: ClickHouse/clickhouse-java The code follows secure coding practices.
[ "CWE-209" ]
CVE-2024-23689
HIGH
8.8
ClickHouse/clickhouse-java
getTags
clickhouse-client/src/main/java/com/clickhouse/client/ClickHouseNode.java
4f8d9303eb991b39ec7e7e34825241efa082238a
0
Analyze the following code function for security vulnerabilities
@Override public Intent createAdminSupportIntent(String restriction) { Objects.requireNonNull(restriction); final CallerIdentity caller = getCallerIdentity(); final int userId = caller.getUserId(); Intent intent = null; if (getEnforcingAdminAndUserDetailsInternal(userId, rest...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: createAdminSupportIntent File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
createAdminSupportIntent
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
@Override public String getFolder() { return folder; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getFolder File: domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java Repository: gocd The code follows secure coding practices.
[ "CWE-668" ]
CVE-2022-39309
MEDIUM
6.5
gocd
getFolder
domain/src/main/java/com/thoughtworks/go/config/materials/ScmMaterial.java
691b479f1310034992da141760e9c5d1f5b60e8a
0
Analyze the following code function for security vulnerabilities
public static <T> T readYamlValue(String contents, Class<T> expectedType) { org.yaml.snakeyaml.Yaml yaml = new org.yaml.snakeyaml.Yaml(); return Json.mapper().convertValue(yaml.load(contents), expectedType); }
Vulnerability Classification: - CWE: CWE-502 - CVE: CVE-2017-1000207 - Severity: MEDIUM - CVSS Score: 6.8 Description: parser change. Function: readYamlValue File: modules/swagger-parser/src/main/java/io/swagger/parser/util/DeserializationUtils.java Repository: swagger-api/swagger-parser Fixed Code: public static <T...
[ "CWE-502" ]
CVE-2017-1000207
MEDIUM
6.8
swagger-api/swagger-parser
readYamlValue
modules/swagger-parser/src/main/java/io/swagger/parser/util/DeserializationUtils.java
4c6584306b40de9b2dfa9065c3a438cd918534af
1
Analyze the following code function for security vulnerabilities
public static CodenameOneActivity getActivity() { return activity; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getActivity File: Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java Repository: codenameone/CodenameOne The code follows secure coding practices.
[ "CWE-668" ]
CVE-2022-4903
MEDIUM
5.1
codenameone/CodenameOne
getActivity
Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java
dad49c9ef26a598619fc48d2697151a02987d478
0
Analyze the following code function for security vulnerabilities
void clearVoiceSessionLocked() { voiceSession = null; pendingVoiceInteractionStart = false; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: clearVoiceSessionLocked File: services/core/java/com/android/server/wm/ActivityRecord.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21145
HIGH
7.8
android
clearVoiceSessionLocked
services/core/java/com/android/server/wm/ActivityRecord.java
44aeef1b82ecf21187d4903c9e3666a118bdeaf3
0
Analyze the following code function for security vulnerabilities
private String buildRedirectAuthnRequest(AuthnRequestType authnRequest, String relayState, boolean sign, PrivateKey key, Algorithm algorithm) throws SAMLException { try { byte[] xml = marshallToBytes(PROTOCOL_OBJECT_FACTORY.createAuthnRequest(authnRequest), AuthnRequ...
Vulnerability Classification: - CWE: CWE-611 - CVE: CVE-2021-27736 - Severity: MEDIUM - CVSS Score: 4.0 Description: Refactor utility methods into SAMLTools, add tests. Function: buildRedirectAuthnRequest File: src/main/java/io/fusionauth/samlv2/service/DefaultSAMLv2Service.java Repository: FusionAuth/fusionauth-saml...
[ "CWE-611" ]
CVE-2021-27736
MEDIUM
4
FusionAuth/fusionauth-samlv2
buildRedirectAuthnRequest
src/main/java/io/fusionauth/samlv2/service/DefaultSAMLv2Service.java
c66fb689d50010662f705d5b585c6388ce555dbd
1
Analyze the following code function for security vulnerabilities
boolean testIsSystemReady();
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: testIsSystemReady File: core/java/android/app/IActivityManager.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-3832
HIGH
8.3
android
testIsSystemReady
core/java/android/app/IActivityManager.java
e7cf91a198de995c7440b3b64352effd2e309906
0
Analyze the following code function for security vulnerabilities
public static File getOutputMediaFile(boolean isVideo,Activity activity) { activity.getComponentName(); return getOutputMediaFile(isVideo, activity, activity.getTitle()); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getOutputMediaFile File: Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java Repository: codenameone/CodenameOne The code follows secure coding practices.
[ "CWE-668" ]
CVE-2022-4903
MEDIUM
5.1
codenameone/CodenameOne
getOutputMediaFile
Ports/Android/src/com/codename1/impl/android/AndroidImplementation.java
dad49c9ef26a598619fc48d2697151a02987d478
0
Analyze the following code function for security vulnerabilities
public static boolean isOtherSessionLocked(VaadinSession session) { VaadinSession otherSession = VaadinSession.getCurrent(); if (otherSession == null || otherSession == session) { return false; } return otherSession.hasLock(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isOtherSessionLocked File: flow-server/src/main/java/com/vaadin/flow/server/VaadinService.java Repository: vaadin/flow The code follows secure coding practices.
[ "CWE-203" ]
CVE-2021-31404
LOW
1.9
vaadin/flow
isOtherSessionLocked
flow-server/src/main/java/com/vaadin/flow/server/VaadinService.java
621ef1b322737d963bee624b2d2e38cd739903d9
0
Analyze the following code function for security vulnerabilities
@SystemApi @NonNull @RequiresPermission(Manifest.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY) public Set<String> getAutoRevokeExemptionRequestedPackages() { try { return CollectionUtils.toSet(mPermissionManager.getAutoRevokeExemptionRequestedPackages( mContext.getUse...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getAutoRevokeExemptionRequestedPackages File: core/java/android/permission/PermissionManager.java Repository: android The code follows secure coding practices.
[ "CWE-281" ]
CVE-2023-21249
MEDIUM
5.5
android
getAutoRevokeExemptionRequestedPackages
core/java/android/permission/PermissionManager.java
c00b7e7dbc1fa30339adef693d02a51254755d7f
0
Analyze the following code function for security vulnerabilities
public String encodeURL(String url) { return url; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: encodeURL File: src/java/winstone/WinstoneResponse.java Repository: jenkinsci/winstone The code follows secure coding practices.
[ "CWE-79" ]
CVE-2011-4344
LOW
2.6
jenkinsci/winstone
encodeURL
src/java/winstone/WinstoneResponse.java
410ed3001d51c689cf59085b7417466caa2ded7b
0
Analyze the following code function for security vulnerabilities
public URL getXWikiProvider() { return getProperty(PROP_XWIKIPROVIDER, URL.class); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getXWikiProvider File: oidc-authenticator/src/main/java/org/xwiki/contrib/oidc/auth/internal/OIDCClientConfiguration.java Repository: xwiki-contrib/oidc The code follows secure coding practices.
[ "CWE-287" ]
CVE-2022-39387
HIGH
7.5
xwiki-contrib/oidc
getXWikiProvider
oidc-authenticator/src/main/java/org/xwiki/contrib/oidc/auth/internal/OIDCClientConfiguration.java
0247af1417925b9734ab106ad7cd934ee870ac89
0
Analyze the following code function for security vulnerabilities
void setProfileApp(ApplicationInfo app, String processName, ProfilerInfo profilerInfo) { synchronized (this) { boolean isDebuggable = "1".equals(SystemProperties.get(SYSTEM_DEBUGGABLE, "0")); if (!isDebuggable) { if ((app.flags&ApplicationInfo.FLAG_DEBUGGABLE) == 0) { ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setProfileApp File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2015-3833
MEDIUM
4.3
android
setProfileApp
services/core/java/com/android/server/am/ActivityManagerService.java
aaa0fee0d7a8da347a0c47cef5249c70efee209e
0
Analyze the following code function for security vulnerabilities
public int read(float[] d, int off, int len) throws IOException { return rawRead(d, off * 4, len * 4); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: read File: src/main/java/org/xerial/snappy/SnappyInputStream.java Repository: xerial/snappy-java The code follows secure coding practices.
[ "CWE-770" ]
CVE-2023-34455
HIGH
7.5
xerial/snappy-java
read
src/main/java/org/xerial/snappy/SnappyInputStream.java
3bf67857fcf70d9eea56eed4af7c925671e8eaea
0
Analyze the following code function for security vulnerabilities
boolean isCrossTask() { return mExitCoordinatorIndex < 0; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isCrossTask File: core/java/android/app/ActivityOptions.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-20918
CRITICAL
9.8
android
isCrossTask
core/java/android/app/ActivityOptions.java
51051de4eb40bb502db448084a83fd6cbfb7d3cf
0
Analyze the following code function for security vulnerabilities
@Override public void listSubscribers(String projectName, String repositoryName, String path, AsyncMethodCallback resultHandler) { unimplemented(resultHandler); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: listSubscribers File: server/src/main/java/com/linecorp/centraldogma/server/internal/thrift/CentralDogmaServiceImpl.java Repository: line/centraldogma The code follows secure coding practices.
[ "CWE-862" ]
CVE-2021-38388
MEDIUM
6.5
line/centraldogma
listSubscribers
server/src/main/java/com/linecorp/centraldogma/server/internal/thrift/CentralDogmaServiceImpl.java
e83b558ef9eaa44f71b7d9236bdec9f68c85b8bd
0
Analyze the following code function for security vulnerabilities
public void setSerializer() throws InvocationTargetException, IllegalArgumentException, InstantiationException, IllegalAccessException { if (this.hasQueryStringParam("serializer")) { final String qs = this.getQueryStringParam("serializer"); Constructor<? extends HttpSerializer> ctor = serial...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setSerializer File: src/tsd/HttpQuery.java Repository: OpenTSDB/opentsdb The code follows secure coding practices.
[ "CWE-79" ]
CVE-2023-25827
MEDIUM
6.1
OpenTSDB/opentsdb
setSerializer
src/tsd/HttpQuery.java
ff02c1e95e60528275f69b31bcbf7b2ac625cea8
0
Analyze the following code function for security vulnerabilities
private static void applyInsets(Region outRegion, Rect frame, Rect inset) { outRegion.set( frame.left + inset.left, frame.top + inset.top, frame.right - inset.right, frame.bottom - inset.bottom); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: applyInsets File: services/core/java/com/android/server/wm/WindowState.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-35674
HIGH
7.8
android
applyInsets
services/core/java/com/android/server/wm/WindowState.java
7428962d3b064ce1122809d87af65099d1129c9e
0
Analyze the following code function for security vulnerabilities
public void removeNotification(String key, RankingMap ranking) { boolean deferRemoval = false; abortExistingInflation(key); if (mHeadsUpManager.isHeadsUp(key)) { // A cancel() in repsonse to a remote input shouldn't be delayed, as it makes the // sending look longer than ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: removeNotification File: packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2017-0822
HIGH
7.5
android
removeNotification
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c574568aaede7f652432deb7707f20ae54bbdf9a
0
Analyze the following code function for security vulnerabilities
public void setWebsite(String website) { this.website = website; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setWebsite File: src/main/java/com/erudika/scoold/core/Profile.java Repository: Erudika/scoold The code follows secure coding practices.
[ "CWE-130" ]
CVE-2022-1543
MEDIUM
6.5
Erudika/scoold
setWebsite
src/main/java/com/erudika/scoold/core/Profile.java
62a0e92e1486ddc17676a7ead2c07ff653d167ce
0
Analyze the following code function for security vulnerabilities
public ContinueNavigationAction getContinueNavigationAction() { return continueNavigationAction; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getContinueNavigationAction File: flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java Repository: vaadin/flow The code follows secure coding practices.
[ "CWE-200" ]
CVE-2023-25499
MEDIUM
6.5
vaadin/flow
getContinueNavigationAction
flow-server/src/main/java/com/vaadin/flow/component/internal/UIInternals.java
428cc97eaa9c89b1124e39f0089bbb741b6b21cc
0
Analyze the following code function for security vulnerabilities
@Override public void setPreferentialNetworkServiceConfigs( List<PreferentialNetworkServiceConfig> preferentialNetworkServiceConfigs) { if (!mHasFeature) { return; } final CallerIdentity caller = getCallerIdentity(); Preconditions.checkCallAuthorization((isPro...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setPreferentialNetworkServiceConfigs File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
setPreferentialNetworkServiceConfigs
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
private Dialog createPkcs12PasswordDialog() { View view = View.inflate(this, R.layout.password_dialog, null); mView.setView(view); if (mView.getHasEmptyError()) { mView.showError(R.string.password_empty_error); mView.setHasEmptyError(false); } String titl...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: createPkcs12PasswordDialog File: src/com/android/certinstaller/CertInstaller.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2016-2422
HIGH
9.3
android
createPkcs12PasswordDialog
src/com/android/certinstaller/CertInstaller.java
70dde9870e9450e10418a32206ac1bb30f036b2c
0
Analyze the following code function for security vulnerabilities
public static Materials gitMaterials(String url) { return gitMaterials(url, null, null); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: gitMaterials File: domain/src/test/java/com/thoughtworks/go/helper/MaterialsMother.java Repository: gocd The code follows secure coding practices.
[ "CWE-668" ]
CVE-2022-39309
MEDIUM
6.5
gocd
gitMaterials
domain/src/test/java/com/thoughtworks/go/helper/MaterialsMother.java
691b479f1310034992da141760e9c5d1f5b60e8a
0
Analyze the following code function for security vulnerabilities
public static String calculateUrlBase(final HttpServletRequest request, final String path) { if (request == null || path == null) { throw new IllegalArgumentException("Cannot take null parameters."); } String tmpl = Vault.getProperty("opennms.web.base-url"); if (tmpl == null) { ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: calculateUrlBase File: opennms-web-api/src/main/java/org/opennms/web/api/Util.java Repository: OpenNMS/opennms The code follows secure coding practices.
[ "CWE-79" ]
CVE-2023-0869
MEDIUM
6.1
OpenNMS/opennms
calculateUrlBase
opennms-web-api/src/main/java/org/opennms/web/api/Util.java
66b4ba96a18b9952f25a350bbccc2a7e206238d1
0
Analyze the following code function for security vulnerabilities
protected String getToken() { return System.getProperty(KieServerConstants.CFG_KIE_TOKEN); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getToken File: kie-server-parent/kie-server-controller/kie-server-controller-impl/src/main/java/org/kie/server/controller/impl/client/RestKieServicesClientProvider.java Repository: kiegroup/droolsjbpm-integration The ...
[ "CWE-260" ]
CVE-2016-7043
MEDIUM
5
kiegroup/droolsjbpm-integration
getToken
kie-server-parent/kie-server-controller/kie-server-controller-impl/src/main/java/org/kie/server/controller/impl/client/RestKieServicesClientProvider.java
e916032edd47aa46d15f3a11909b4804ee20a7e8
0
Analyze the following code function for security vulnerabilities
public void writeRecord(final ORecord iRecord, final String iFetchPlan, String iFormat) throws IOException { if (iFormat == null) { iFormat = JSON_FORMAT; } final String format = iFetchPlan != null ? iFormat + ",fetchPlan:" + iFetchPlan : iFormat; if (iRecord != null) { send(OHttpUtils.STAT...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: writeRecord File: server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponse.java Repository: orientechnologies/orientdb The code follows secure coding practices.
[ "CWE-352" ]
CVE-2015-2912
MEDIUM
6.8
orientechnologies/orientdb
writeRecord
server/src/main/java/com/orientechnologies/orient/server/network/protocol/http/OHttpResponse.java
d5a45e608ba8764fd817c1bdd7cf966564e828e9
0
Analyze the following code function for security vulnerabilities
@Override void setDrawn() { synchronized (mService) { mDrawn = true; setSurfaceIfReadyLocked(); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setDrawn File: services/core/java/com/android/server/am/ActivityStackSupervisor.java Repository: android The code follows secure coding practices.
[ "CWE-284" ]
CVE-2016-3838
MEDIUM
4.3
android
setDrawn
services/core/java/com/android/server/am/ActivityStackSupervisor.java
468651c86a8adb7aa56c708d2348e99022088af3
0
Analyze the following code function for security vulnerabilities
@Override public void setPermissionGrantState(ComponentName admin, String callerPackage, String packageName, String permission, int grantState, RemoteCallback callback) throws RemoteException { Objects.requireNonNull(callback); final CallerIdentity caller = getCallerIdentity...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setPermissionGrantState File: services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-20" ]
CVE-2023-21284
MEDIUM
5.5
android
setPermissionGrantState
services/devicepolicy/java/com/android/server/devicepolicy/DevicePolicyManagerService.java
ed3f25b7222d4cff471f2b7d22d1150348146957
0
Analyze the following code function for security vulnerabilities
public static LongCounter newLongCounter() { if (javaVersion() >= 8) { return new LongAdderCounter(); } else { return new AtomicLongCounter(); } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: newLongCounter File: common/src/main/java/io/netty/util/internal/PlatformDependent.java Repository: netty The code follows secure coding practices.
[ "CWE-668", "CWE-378", "CWE-379" ]
CVE-2022-24823
LOW
1.9
netty
newLongCounter
common/src/main/java/io/netty/util/internal/PlatformDependent.java
185f8b2756a36aaa4f973f1a2a025e7d981823f1
0
Analyze the following code function for security vulnerabilities
@Override // CommandQueue public void setWindowState(int window, int state) { boolean showing = state == WINDOW_STATE_SHOWING; if (mStatusBarWindow != null && window == StatusBarManager.WINDOW_STATUS_BAR && mStatusBarWindowState != state) { mStatusBarWindo...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setWindowState File: packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2017-0822
HIGH
7.5
android
setWindowState
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
c574568aaede7f652432deb7707f20ae54bbdf9a
0
Analyze the following code function for security vulnerabilities
@Nullable public static Element findFirstElement(@Nonnull final Element node, @Nonnull final String elementName) { Element result = null; for (final Element l : Utils.findDirectChildrenForName(node, elementName)) { result = l; break; } return result; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: findFirstElement File: mind-map/mind-map-swing-panel/src/main/java/com/igormaznitsa/mindmap/swing/panel/utils/Utils.java Repository: raydac/netbeans-mmd-plugin The code follows secure coding practices.
[ "CWE-611" ]
CVE-2018-1000542
MEDIUM
6.8
raydac/netbeans-mmd-plugin
findFirstElement
mind-map/mind-map-swing-panel/src/main/java/com/igormaznitsa/mindmap/swing/panel/utils/Utils.java
9fba652bf06e649186b8f9e612d60e9cc15097e9
0
Analyze the following code function for security vulnerabilities
boolean isBooted() { return mAmInternal.isBooted(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isBooted File: services/core/java/com/android/server/wm/ActivityTaskManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-40094
HIGH
7.8
android
isBooted
services/core/java/com/android/server/wm/ActivityTaskManagerService.java
1120bc7e511710b1b774adf29ba47106292365e7
0
Analyze the following code function for security vulnerabilities
public void ensureBootCompleted() { // Locked intentionally not held as it isn't needed for this case. ActivityManagerService.this.ensureBootCompleted(); }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: ensureBootCompleted File: services/core/java/com/android/server/am/ActivityManagerService.java Repository: android The code follows secure coding practices.
[ "CWE-Other" ]
CVE-2023-21292
MEDIUM
5.5
android
ensureBootCompleted
services/core/java/com/android/server/am/ActivityManagerService.java
d10b27e539f7bc91c2360d429b9d05f05274670d
0
Analyze the following code function for security vulnerabilities
public boolean isSynthesized() { return false; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isSynthesized File: src/org/cyberneko/html/HTMLScanner.java Repository: sparklemotion/nekohtml The code follows secure coding practices.
[ "CWE-400" ]
CVE-2022-24839
MEDIUM
5
sparklemotion/nekohtml
isSynthesized
src/org/cyberneko/html/HTMLScanner.java
a800fce3b079def130ed42a408ff1d09f89e773d
0
Analyze the following code function for security vulnerabilities
public void setCustomTheme(String themeName, String themeCSS) { String id = "theme" + Para.getConfig().separator() + "custom"; boolean isCustom = "custom".equalsIgnoreCase(themeName); String css = isCustom ? themeCSS : ""; Sysprop custom = new Sysprop(id); custom.setName(StringUtils.isBlank(css) && isCustom ?...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: setCustomTheme File: src/main/java/com/erudika/scoold/utils/ScooldUtils.java Repository: Erudika/scoold The code follows secure coding practices.
[ "CWE-130" ]
CVE-2022-1543
MEDIUM
6.5
Erudika/scoold
setCustomTheme
src/main/java/com/erudika/scoold/utils/ScooldUtils.java
62a0e92e1486ddc17676a7ead2c07ff653d167ce
0
Analyze the following code function for security vulnerabilities
public String escapeString(String str) { try { return URLEncoder.encode(str, "utf8").replaceAll("\\+", "%20"); } catch (UnsupportedEncodingException e) { return str; } }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: escapeString File: samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java Repository: OpenAPITools/openapi-generator The code follows secure coding practices.
[ "CWE-668" ]
CVE-2021-21430
LOW
2.1
OpenAPITools/openapi-generator
escapeString
samples/client/petstore/java/jersey2-java8-localdatetime/src/main/java/org/openapitools/client/ApiClient.java
2c576483f26f85b3979c6948a131f585c237109a
0
Analyze the following code function for security vulnerabilities
@Override public boolean isZero() { return precision == 0; }
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: isZero File: icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java Repository: unicode-org/icu The code follows secure coding practices.
[ "CWE-190" ]
CVE-2018-18928
HIGH
7.5
unicode-org/icu
isZero
icu4j/main/classes/core/src/com/ibm/icu/impl/number/DecimalQuantity_AbstractBCD.java
53d8c8f3d181d87a6aa925b449b51c4a2c922a51
0
Analyze the following code function for security vulnerabilities
public void initForcedStop() { stopButton.addActionListener(e -> { stop = true; outputTextArea.setText(null); if (LANG == CHINESE) { JOptionPane.showMessageDialog(null, "已强制停止"); } else { JOptionPane.showMessageDialog(null, "Stop Su...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: initForcedStop File: src/main/java/com/chaitin/xray/form/MainForm.java Repository: 4ra1n/super-xray The code follows secure coding practices.
[ "CWE-502" ]
CVE-2022-41958
HIGH
7.8
4ra1n/super-xray
initForcedStop
src/main/java/com/chaitin/xray/form/MainForm.java
4d0d59663596db03f39d7edd2be251d48b52dcfc
0
Analyze the following code function for security vulnerabilities
private List<Class<?>> cacheSuperclassesFor(Class<?> c) { ArrayList<Class<?>> result = new ArrayList<Class<?>>(); Class<?> nextClass = c; while (nextClass != null) { Class<?> testClass = nextClass.getSuperclass(); if (testClass != null) { result.add(0, nex...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: cacheSuperclassesFor File: luni/src/main/java/java/io/ObjectInputStream.java Repository: android The code follows secure coding practices.
[ "CWE-264" ]
CVE-2014-7911
HIGH
7.2
android
cacheSuperclassesFor
luni/src/main/java/java/io/ObjectInputStream.java
738c833d38d41f8f76eb7e77ab39add82b1ae1e2
0
Analyze the following code function for security vulnerabilities
private String getEditorType(XWikiContext context) { String editorType = null; if (context != null && context.getRequest() != null) { editorType = context.getRequest().get("xeditmode"); } if (isEmptyValue(editorType)) { editorType = getEditor(); if...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: getEditorType File: xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/TextAreaClass.java Repository: xwiki/xwiki-platform The code follows secure coding practices.
[ "CWE-862" ]
CVE-2023-41046
MEDIUM
6.3
xwiki/xwiki-platform
getEditorType
xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/objects/classes/TextAreaClass.java
edc52579eeaab1b4514785c134044671a1ecd839
0
Analyze the following code function for security vulnerabilities
@GetMapping("tasks/get") public JSON taskGet(@IdParam(name = "task") ID taskId, HttpServletRequest request) { final ID user = getRequestUser(request); ConfigBean project = ProjectManager.instance.getProjectByX(taskId, user); String where = "taskId = '" + taskId + "'"; JSONArray a = ...
No Vulnerability Detected: This code is secure and does not contain known vulnerabilities. Function: taskGet File: src/main/java/com/rebuild/web/project/ProjectTaskController.java Repository: getrebuild/rebuild The code follows secure coding practices.
[ "CWE-89" ]
CVE-2023-1495
MEDIUM
6.5
getrebuild/rebuild
taskGet
src/main/java/com/rebuild/web/project/ProjectTaskController.java
c9474f84e5f376dd2ade2078e3039961a9425da7
0