Here is an upper bound:
Suppose $\kappa$ is $2$-fold supercompact. Then the property holds at $\kappa$. (Recall that $2$-fold supcompactness means that for each ordinal $\lambda$, there is $j:V\to M$ with $\mathrm{crit}(j)=\kappa$ and $\lambda<j(\kappa)$ and ${^{j(\lambda)}M}\subseteq M$.) (This property is of course below rank-to-rank.)
So suppose $B$ is a counterexample to the property holding at $\kappa$.
Let $\lambda>\kappa$ be an inaccessible cardinal such that $B\in V_\lambda$. (There is easily a proper class of inaccessibles.)
Using $2$-fold supercompactness at $\lambda$, let $j:V\to M$ with $\mathrm{crit}(j)=\kappa$ and $\lambda<j(\kappa)$ and ${^{j(\lambda)}M}\subseteq M$. It follows that $B\in V_{j(\kappa)}=V_{j(\kappa)}^M$. Note also that because ${^{j(\lambda)}M}\subseteq M$ and $\lambda$ is inaccessible, we have $V_{j(\lambda)+1}^M=V_{j(\lambda)+1}$.
Let $C=j(B)$. We have $C\in V_{j(\lambda)}\subseteq M$. Note that $C$ is a counterexample to $j(\kappa)$ having the property in $M$.
Since $B\in V_{j(\kappa)}^M$, we can fix $x\in C=j(B)$ such that $M\models$"there is no elementary $\ell:B\to C$ with $x\in\mathrm{range}(\ell)$". But since $V_{j(\lambda)}\subseteq M$, therefore in fact ($*$) there is no elementary $\ell:B\to C$ with $x\in\mathrm{range}(\ell)$.
Now applying $j$ to ($*$),
we get that $M\models$"there is no elementary $\ell:j(B)\to j(C)$ with $j(x)\in\mathrm{range}(\ell)$". But letting $\ell=j\upharpoonright j(B)$, we have $\ell\in M$, since ${^{j(\lambda)}M}\subseteq M$. And $x\in j(B)$, so $\ell(x)=j(x)\in\mathrm{range}(\ell)$. This is a contradiction.
Here is a lower bound:
If the property holds at some $\kappa$ then $0^\#$ exists.
For suppose the property holds at $\kappa$.
Let $B$ be a transitive model of ZFC$^-$
with $V_\kappa\subseteq B$.
Let $A$
witness the property with respect to $B,\kappa$, so in particular, $A$ has cardinality ${<\kappa}$.
Let $\alpha=\mathrm{Ord}\cap A$.
Let $\theta=\mathrm{card}(\alpha)$.
If there is any elementary embedding $j:A\to B$
such that $\mathrm{crit}(j)<\theta$,
then $0^\#$ exists (this is standard: letting $k:L_\alpha\to L_{\mathrm{Ord}^B}$
be the restriction of $j$, then
$k$ is elementary, and letting $U_k$
be the normal measure derived from $k$,
then $\mathrm{Ult}(L,U_k)$ is wellfounded,
giving an elementary $\ell:L\to L$).
So we may assume that
every $j:A\to B$ witnessing the property
in question has $\theta\leq\mathrm{crit}(j)$. Now given $X\subseteq\theta$,
we have $X\cup\{\theta\}\in B$, so there is $j_X:A\to B$
with $X,\theta\in\mathrm{rg}(j_X)$.
Since $\theta\leq\mathrm{crit}(j_X)$,
in fact then $\theta<\mathrm{crit}(j_X)$,
and it follows that $X$ is definable from parameters over $A$,
and since $A\models$ ZFC$^-$,
therefore $X\in A$.
But then every wellorder of $\theta$ is in $A$, and again since $A\models$ ZFC$^-$,
it follows that $\theta^{+}\leq\mathrm{Ord}\cap A$, a contradiction.
Added remarks: From Joel's and Andreas's answers, if $\kappa$ has the property then there are partially extendible cardinals ${<\kappa}$, and there is $\lambda<\kappa$ such that $V_\lambda\models$ ZFC + "there are (fully) extendible cardinals". So assuming that there exist both a cardinal $\kappa$ with the property, and a (truly) extendible cardinal $\gamma$, we can ask what is the relative ordering of the least such two cardinals $\kappa_0$ and $\gamma_0$.
Prop 1: Suppose $\kappa_0$ (the least with said property) and $\gamma_0$ (the least extendible) exist. Then $\kappa_0<\gamma_0$.
Proof: First let us show that if $\kappa$ has the property and $\gamma$ is extendible, then $\gamma$ also has the property. If $\kappa\leq\gamma$ this is immediate, so suppose $\gamma<\kappa$.
Let $B$ be given, and let $\alpha$ be such that $B\in V_\alpha$. Let $j:V_\alpha\to V_\beta$ be elementary with $\mathrm{crit}(j)=\gamma$ and $j(\gamma)>\kappa$. Then by the property at $\kappa$ with respect to $j(B)$, there is $A\in V_{\kappa}$ such that $A$ can be embedded into $j(B)$ with any desired $x\in j(B)$ in the range. But $V_\kappa\subseteq V_{j(\gamma)}$, and $j(B)\in V_\beta$, so all the witnessing embeddings are in $V_\beta$, so $V_\beta$ thinks that there is an appropriate $A\in V_{j(\gamma)}$ for $j(B)$. But then $V_\alpha$ thinks there is an appropriate $A\in V_\gamma$ for $B$, and this really works in $V$, as desired.
So we have $\kappa_0\leq\gamma_0$. The rest follows from the following lemma:
Lemma: If $\kappa$ is a superstrong cardinal that has the property, then there there is $\kappa'<\kappa$ with the property.
Proof: Suppose otherwise and let $f:\kappa\to V$ be a function where $f(\kappa')$ is some $B$ witnessing that the property fails at $\kappa'$, with $B$ of minimal rank to achieve this. Then note that by superstrongness (in fact just strongness) of $\kappa$, we have $f(\kappa')\in V_\kappa$ for each $\kappa'<\kappa$. Now let $j:V\to M$ witness the superstrongness of $\kappa$ and let $B=j(f)(\kappa)$. In $M$, $B$ is a counterexample to $\kappa$ having the property. But we have $B\in V_{j(\kappa)}^M=V_{j(\kappa)}$, and since $\kappa$ has the property in $V$, it follows that $B$ is actually not a counterexample in $M$, contradiction.
Prop 2: Let $\kappa_0$ be the least cardinal with the property. Suppose $V_{\kappa_0}\models$ ZFC. Then there is no $\gamma<\kappa_0$ which is $\kappa_0$-extendible (that is, there is no elementary $j:V_{\kappa_0}\to V_\beta$ (for some $\beta$) with $\mathrm{crit}(j)=\gamma<\kappa_0$ and $j(\gamma)>\kappa_0$).
Proof: Suppose otherwise. Then the property holds at $\gamma$ with respect to all $B\in V_{\kappa_0}$. (If $B$ is a counterexample, note that $V_\beta\models$"$j(B)$ is a counterexample to the property holding at $j(\gamma)$", but since $\kappa_0\leq j(\gamma)$ and the property holds at $\kappa_0$, actually $V_\beta\models$"no it's not", contradiction.) But then the property holds at $\gamma$ with respect to all structures $B$: given $B$, let $B'\in V_{\kappa_0}$ witness the property at $\kappa_0$ with respect to $B$, and now let $A\in V_\gamma$ witness it at $\gamma$ with respect to $B'$. Let $x\in B$, and let $k:B'\to B$ with $x\in\mathrm{range}(k)$. Then there is $k':A\to B'$ with $k^{-1}(x)\in\mathrm{range}(k')$. Now $k\circ k':A\to B$ works. So the property holds at $\gamma$, contradicting the minimality of $\kappa_0$.
Some related questions: Let $\kappa_0$ be the least cardinal with the property. Can/does $V_{\kappa_0}\models$ ZFC? Can/does $V_{\kappa_0}\models$"There is an extendible cardinal"?