Of course, for many casual purposes it's widely ignored and for photos of people used for advertising and marketing, you need a model release anyway.
I think copyright trolling is more prevalent with images, and I think it's generally easier to determine the canonical origin of software. But yes, it's absolutely a risk and a reason why many companies have a legal review process before any new libraries can be used.
https://helpx.adobe.com/stock/contributor/help/known-image-r...
Note: I get that adobe might be wrong here. Whether they are right or wrong on particulars is beside the point. I just linked there because it was clearer than most other search results I found.
Here's another
(So, watch out for CC licenses older than 4.0 for that.)