BoofCV
BoofCV copied to clipboard
Arbitrary code may be executed in readObject.
boofcv.io.UtilIO.load
public static <T> T load( String fileName ) { @Nullable URL url = UtilIO.ensureURL(fileName); if (url == null) throw new RuntimeException("Unknown path=" + fileName); try (InputStream fileIn = url.openStream()) { ObjectInputStream in = new ObjectInputStream(fileIn); return (T)in.readObject(); } catch (IOException | ClassNotFoundException e) { throw new RuntimeException(e); } }
https://snyk.io/blog/serialization-and-deserialization-in-java/
@lessthanoptimal How do you want to proceed with this one? This method really needs to go.
Can you apply for a cve number for me, representing my contribution?